diff --git a/doc/languages-frameworks/ocaml.section.md b/doc/languages-frameworks/ocaml.section.md index 2e392b20c3d6..b70dca6b528e 100644 --- a/doc/languages-frameworks/ocaml.section.md +++ b/doc/languages-frameworks/ocaml.section.md @@ -31,7 +31,7 @@ pkgs.mkShell { ## Packaging guide {#sec-language-ocaml-packaging} -OCaml libraries should be installed in `$(out)/lib/ocaml/${ocaml.version}/site-lib/`. Such directories are automatically added to the `$OCAMLPATH` environment variable when building another package that depends on them or when opening a `nix-shell`. +OCaml libraries are installed in `$out/lib/ocaml/${ocaml.version}/site-lib/`, or in the same directory of the `dev` output (see `buildDunePackage` below). Such directories are automatically added to the `$OCAMLPATH` environment variable when building another package that depends on them or when opening a `nix-shell`. Given that most of the OCaml ecosystem is now built with dune, nixpkgs includes a convenience build support function called `buildDunePackage` that will build an OCaml package using dune, OCaml and findlib and any additional dependencies provided as `buildInputs` or `propagatedBuildInputs`. @@ -139,6 +139,29 @@ buildDunePackage (finalAttrs: { }) ``` +Unless the package sets `outputs`, `buildDunePackage` builds separate outputs, +and points `$OCAMLFIND_DESTDIR` to `dev`: + +- `out` contains what the package produces for use at runtime, such as + executables. +- `dev` contains the OCaml libraries and the propagated dependencies needed to + build other packages against them. It is selected automatically when the + package is used as a build input. +- `man` contains the man pages. Like `out`, it is installed by default. +- `doc` contains the documentation, such as the README and license files. + +This keeps build-time only OCaml dependencies out of the runtime closure of +executables. Code that refers to the library directory of such a package must +use its `dev` output, for example `${lib.getDev menhirLib}/lib/ocaml` or +`lib.makeSearchPathOutput "dev" "lib/ocaml/${ocaml.version}/site-lib"`. +Likewise, installing the library into a profile or environment requires its +`dev` output, e.g. `ocamlPackages.menhirLib.dev`. + +Toplevels and programs that load plugins need their own OCaml library at +runtime, and the two outputs would refer to each other. Set +`outputs = [ "out" ];` for such packages, and for packages whose custom +`installPhase` installs everything into `$out`. + The build will automatically fail if two distinct versions of the same library are added to `buildInputs` (which usually happens transitively because of `propagatedBuildInputs`). Set `dontDetectOcamlConflicts` to true to disable this diff --git a/doc/languages-frameworks/swift.section.md b/doc/languages-frameworks/swift.section.md index d1e0d8496ee6..d0caef99fc56 100644 --- a/doc/languages-frameworks/swift.section.md +++ b/doc/languages-frameworks/swift.section.md @@ -246,6 +246,46 @@ To disable the SwiftPM install phase, include the following in your derivation: { dontUseSwiftpmInstall = true; } ``` +## Swift Macros {#ssec-swift-macros} + +Nixpkgs includes the stdlib macros (ObservationMacros and SwiftMacros) and FoundationMacros in the toolchain. +Packages that need macros for Apple frameworks on Darwin have two options: +- `open-apple-macros` provides open-source implementations of FoundationModelsMacros and SwiftUIMacros; or +- `darwin.xcode-macros` provides macro libraries from Xcode not otherwise included in the toolchain, but they are unfree. + +Add the appropriate package to `depsBuildBuild` (because they are compiler plugins that run on the build platform). +If you need to manually specify the path for a package because it or its build system invokes `swiftc` directly: + +### `open-apple-macros` {#ssec-swift-macros-open-apple-macros} +```nix +{ + buildPhase = '' + runHook preBuild + swiftc \ + -external-plugin-path ${open-apple-macros}/lib/swift/host/plugins#${open-apple-macros}/libexec/swift/plugins/OpenAppleMacrosServer \ + -disable-sandbox \ + *.swift \ + -o the_binary + runHook postBuild + ''; +} +``` + +### `darwin.xcode-macros` {#ssec-swift-macros-xcode-macros} +```nix +{ + # For `darwin.xcode-macros` + buildPhase = '' + runHook preBuild + swiftc \ + -plugin-path ${darwin.xcode-macros}/lib/swift/host/plugins \ + *.swift \ + -o the_binary + runHook postBuild + ''; +} +``` + ## Hooks {#ssec-swift-hooks} Swift provides the following hooks to automate builds and unpack dependencies: diff --git a/doc/redirects.json b/doc/redirects.json index 198b530e723a..67a01bbf7073 100644 --- a/doc/redirects.json +++ b/doc/redirects.json @@ -4660,6 +4660,15 @@ "ssec-swiftpm-install-phase": [ "index.html#ssec-swiftpm-install-phase" ], + "ssec-swift-macros": [ + "index.html#ssec-swift-macros" + ], + "ssec-swift-macros-open-apple-macros": [ + "index.html#ssec-swift-macros-open-apple-macros" + ], + "ssec-swift-macros-xcode-macros": [ + "index.html#ssec-swift-macros-xcode-macros" + ], "ssec-swift-hooks": [ "index.html#ssec-swift-hooks" ], diff --git a/doc/release-notes/rl-2611.section.md b/doc/release-notes/rl-2611.section.md index 7fb9fd8bf314..125dfd690f99 100644 --- a/doc/release-notes/rl-2611.section.md +++ b/doc/release-notes/rl-2611.section.md @@ -59,6 +59,11 @@ - `paperless-manage` now uses `runuser` instead of automatically calling `sudo` to set user/group before running. Invoke the script with `sudo paperless-manage` or an equivalent elevation tool of your choice +- OpenSSL now prefers the system CA bundle at `/etc/ssl/certs/ca-certificates.crt` on both Linux and Darwin, falling back to `/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt` only when the system bundle is absent. + Previously, Darwin used the default Nix profile bundle directly. + An existing but unreadable or invalid system bundle does not trigger the fallback. + Explicit `NIX_SSL_CERT_FILE` and `SSL_CERT_FILE` overrides still take precedence. + - `hyperfine` has been updated from 1.21.0 to 2.0.0, which contains several breaking changes: - Benchmarked commands are now executed directly instead of through an intermediate shell. Pass `-S`/`--shell=default` to restore the previous behavior. - The `--export-json` format has changed (schema version 2); tools consuming the exported JSON must be updated. @@ -101,6 +106,13 @@ By the time of this release, Homebrew will offer only limited [Tier 3](https://docs.brew.sh/Support-Tiers#tier-3) support for the platform, but MacPorts will likely continue to support it for a long time. We also recommend users consider installing NixOS, which should continue to run on essentially all Intel Macs, especially after Apple stops security support for macOS 26 in 2028. +- `ocamlPackages.buildDunePackage` now builds packages with `out`, `dev`, `man` and `doc` outputs by default, unless they set `outputs`. + The OCaml libraries are installed into `dev`, man pages into `man`, documentation into `doc`, and `out` only contains what is needed at runtime, such as executables. This removes build-time only OCaml dependencies from the closure of tools like `patdiff`. + Code that refers to `${ocamlPackages.foo}/lib/ocaml` must use `${lib.getDev ocamlPackages.foo}/lib/ocaml` instead. + Installing such a library into a profile or environment (for example with `home.packages`, `environment.systemPackages` or `nix profile add`) no longer provides its `lib/ocaml` directory; install `ocamlPackages.foo.dev` instead. + +- The `bin` and `lib` outputs of `ocamlPackages.odoc`, `ocamlPackages.crunch`, `ocamlPackages.mdx` and `ocamlPackages.tw` were removed. Use the package itself for the executables, and its `dev` output for the OCaml library. + - `bundlerApp` now sets `__structuredAttrs = true` for its result package. Out-of-tree packages passing `postBuild` to `bundlerApp` should examine if their `postBuild` commands are compatible with structured attributes. @@ -204,6 +216,10 @@ - `zerofs` has been updated from `1.x` to `2.x` which is a breaking change. Volumes created by earlier releases are refused at open with a clear error. There is no migration tool; older volumes remain readable and writable by the release that created them. +- `python3Packages.buildPythonPackage` and `python3Packages.buildPythonApplication` now warn in the presence of `unittestFlagsArray`. + Please use [`unittestFlags`](#using-unittestcheckhook) instead. + If modifying the Nix expression is not feasible, users can remediate the warning by overriding `unittestFlagsArray` with `null` or `[ ]`. + - `keycloak.plugins.keycloak-metrics-spi` has been removed. Keycloak exposes Prometheus metrics natively on its management interface; enable them with the `metrics-enabled` setting (and `event-metrics-user-enabled` for login and event counters). See [Gaining insights with metrics](https://www.keycloak.org/observability/configuration-metrics). - `alps` has been rewritten upstream, see [upstream repository](https://github.com/migadu/alps) for documentation. @@ -265,6 +281,8 @@ - `tcl.mkTclDerivation` now enables `strictDeps` and `__structuredAttrs`. +- `rustPlatform.cargoSetupHook` now forces several common C libraries to be linked to the Nixpkgs library rather than the vendored library. These include: aws-lc, openssl, libz, libsqlite3, zstd, libgit2, sodium, rustonig, libssh2, nginx, duckdb, and jemalloc. Set `dontCargoUseSystemLibs = true;` to opt out. + - `rssguard` 5.x uses a new database layer. Regenerate your database after upgrading, following the [RSS Guard migration notes](https://rssguard.readthedocs.io/en/stable/contrib/migrate.html). - `pdns` has been updated from `5.0.x` to `5.1.x`. Please be sure to review the [Upgrade Notes](https://doc.powerdns.com/authoritative/upgrading.html#to-5-1-0) before upgrading. Namely LUA record updates are no longer allowed by default, and the embedded webserver no longer includes a `access-control-allow-origin: *` header by default. @@ -481,7 +499,7 @@ SingularityCE 4.6.0 was the last release. Use Apptainer (`apptainer`) instead. -- Swift has been upgraded to Swift 6.3.3 from Swift 5.10.1. +- Swift has been upgraded to Swift 6.4.0 from Swift 5.10.1. The Swift packaging has been rewritten. ## Nixpkgs Library {#sec-nixpkgs-release-26.11-lib} diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 0f190eee9daa..24ebe31d45f4 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1198,6 +1198,9 @@ They cannot be overridden without rebuilding the package. If dependencies should be resolved at runtime, use `--suffix` to append fallback values to `PATH`. +`makeBinaryWrapper` refuses a `--prefix` or `--suffix` value that would introduce an empty segment (an empty value, or a leading, trailing or doubled separator), because many `PATH`-like variables interpret an empty segment as the current directory. +For variables where an empty segment is useful and safe, such as `LUA_PATH` where `;;` stands for the default search path, use `--prefix-unchecked` or `--suffix-unchecked` instead. + There’s many more kinds of arguments, they are documented in `nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh` for the `makeWrapper` implementation and in `nixpkgs/pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh` for the `makeBinaryWrapper` implementation. `wrapProgram` is a convenience function you probably want to use most of the time, implemented by both `makeWrapper` and `makeBinaryWrapper`. diff --git a/nixos/doc/manual/release-notes/rl-2611.section.md b/nixos/doc/manual/release-notes/rl-2611.section.md index 493391297898..d7c6ac19e708 100644 --- a/nixos/doc/manual/release-notes/rl-2611.section.md +++ b/nixos/doc/manual/release-notes/rl-2611.section.md @@ -18,6 +18,8 @@ +nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst"; ``` +- GNOME has been updated to version 51. Refer to the [GNOME release notes](https://release.gnome.org/51/) for more details. + - `sing-box` now supports NaïveProxy outbounds. ## New Modules {#sec-release-26.11-new-modules} diff --git a/nixos/lib/make-system-tarball.sh b/nixos/lib/make-system-tarball.sh index ea24dcf9842d..b76a38bb8c9b 100644 --- a/nixos/lib/make-system-tarball.sh +++ b/nixos/lib/make-system-tarball.sh @@ -41,7 +41,8 @@ mkdir -p $out/tarball rm env-vars -time tar --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner -c * $extraArgs | $compressCommand > $out/tarball/$fileName.tar${extension} +# Store optimization can change hardlink topology without changing input NARs. +time tar --hard-dereference --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner -c * $extraArgs | $compressCommand > $out/tarball/$fileName.tar${extension} mkdir -p $out/nix-support echo $system > $out/nix-support/system diff --git a/nixos/lib/test-driver/default.nix b/nixos/lib/test-driver/default.nix index 2c06392d065a..fdb946e28dc5 100644 --- a/nixos/lib/test-driver/default.nix +++ b/nixos/lib/test-driver/default.nix @@ -10,6 +10,7 @@ junit-xml, ptpython, pydantic, + pytest, python, ovmfvartool, remote-pdb, @@ -80,11 +81,14 @@ buildPythonApplication { doCheck = true; nativeCheckInputs = [ + pytest ruff ty ]; checkPhase = '' + echo -e "\x1b[32m## run doctests\x1b[0m" + pytest --doctest-modules -p no:cacheprovider test_driver echo -e "\x1b[32m## run ty\x1b[0m" # Installation adds the driver to PYTHONPATH; keep ty imports in the source tree. PYTHONPATH=".:$PYTHONPATH" ty check --error-on-warning test_driver extract-docstrings.py diff --git a/nixos/lib/test-driver/src/test_driver/driver.py b/nixos/lib/test-driver/src/test_driver/driver.py index a586ad79af65..8160b2356751 100644 --- a/nixos/lib/test-driver/src/test_driver/driver.py +++ b/nixos/lib/test-driver/src/test_driver/driver.py @@ -87,6 +87,30 @@ def get_tmp_dir() -> Path: def pythonize_name(name: str) -> str: + """Turn a machine name into a valid Python identifier. + + Names that already are valid identifiers stay the same: + + >>> pythonize_name("node_1") + 'node_1' + + Every character that is not allowed in an identifier becomes "_": + + >>> pythonize_name("my-vm") + 'my_vm' + >>> pythonize_name("web.example.org") + 'web_example_org' + >>> pythonize_name("münchen") + 'm_nchen' + + A leading digit is replaced rather than prefixed, so it gets lost, while + digits later in the name are kept: + + >>> pythonize_name("1node") + '_node' + >>> pythonize_name("12node") + '_2node' + """ return re.sub(r"^[^A-Za-z_]|[^A-Za-z0-9_]", "_", name) diff --git a/nixos/lib/test-driver/src/test_driver/duration.py b/nixos/lib/test-driver/src/test_driver/duration.py index ce085fbfa8a5..87c4d7be7fbd 100644 --- a/nixos/lib/test-driver/src/test_driver/duration.py +++ b/nixos/lib/test-driver/src/test_driver/duration.py @@ -14,6 +14,22 @@ def as_timedelta(duration: Duration) -> dt.timedelta: Bare numbers are interpreted as seconds. This keeps existing test scripts that pass plain integers working while `datetime.timedelta` becomes the preferred way to express durations. + + >>> as_timedelta(dt.timedelta(minutes=1)) + datetime.timedelta(seconds=60) + >>> as_timedelta(90) + datetime.timedelta(seconds=90) + >>> as_timedelta(1.5) + datetime.timedelta(seconds=1, microseconds=500000) + + A `bool` is an `int` in Python, but it is never a valid duration: + + >>> as_timedelta(True) + Traceback (most recent call last): + TypeError: expected a duration, got bool: True + >>> as_timedelta("1") + Traceback (most recent call last): + TypeError: expected a timedelta, int, or float duration, got str """ if isinstance(duration, dt.timedelta): return duration @@ -27,7 +43,13 @@ def as_timedelta(duration: Duration) -> dt.timedelta: def as_seconds(duration: Duration) -> float: - """Coerce a `Duration` into a floating-point number of seconds.""" + """Coerce a `Duration` into a floating-point number of seconds. + + >>> as_seconds(90) + 90.0 + >>> as_seconds(dt.timedelta(minutes=1, milliseconds=500)) + 60.5 + """ return as_timedelta(duration).total_seconds() diff --git a/nixos/lib/test-driver/src/test_driver/logger.py b/nixos/lib/test-driver/src/test_driver/logger.py index 64cb7e512a34..c27971fd4ff3 100644 --- a/nixos/lib/test-driver/src/test_driver/logger.py +++ b/nixos/lib/test-driver/src/test_driver/logger.py @@ -242,7 +242,7 @@ class TerminalLogger(AbstractLogger): elapsed = time.monotonic() - self._start_time if "machine" in attributes: message = f"{attributes['machine']}: {message}" - return f"[{elapsed:.2f}s] {message}" + return Style.DIM + f"[{elapsed:.2f}s]" + Style.RESET_ALL + f" {message}" # ty: ignore[unsupported-operator] @staticmethod def _eprint(*args: object, **kwargs: Any) -> None: @@ -322,10 +322,27 @@ class XMLLogger(AbstractLogger): self.xml.endDocument() self.logfile_handle.close() - def sanitise(self, message: str) -> str: + @staticmethod + def sanitise(message: str) -> str: + r"""Remove the characters of Unicode's "Other" categories, such as + control characters, from serial output before it is written to XML. + + >>> XMLLogger.sanitise("booting\x00...\x07") + 'booting...' + >>> XMLLogger.sanitise("Grüße") + 'Grüße' + """ return "".join(ch for ch in message if unicodedata.category(ch)[0] != "C") - def maybe_prefix(self, message: str, attributes: dict[str, str]) -> str: + @staticmethod + def maybe_prefix(message: str, attributes: dict[str, str]) -> str: + """Prefix the message with the name of the machine, if there is one. + + >>> XMLLogger.maybe_prefix("booting", {"machine": "server"}) + 'server: booting' + >>> XMLLogger.maybe_prefix("booting", {}) + 'booting' + """ if "machine" in attributes: return f"{attributes['machine']}: {message}" return message diff --git a/nixos/lib/test-driver/src/test_driver/machine/__init__.py b/nixos/lib/test-driver/src/test_driver/machine/__init__.py index e5c953a0fd58..b0a0ea1ac100 100644 --- a/nixos/lib/test-driver/src/test_driver/machine/__init__.py +++ b/nixos/lib/test-driver/src/test_driver/machine/__init__.py @@ -5,7 +5,7 @@ import os import platform import queue import re -import select +import selectors import shlex import shutil import socket @@ -139,7 +139,22 @@ XDOTOOL_MODIFIER_ALIASES = { def xdotool_key_sequence(key: str) -> str: """Translate a QEMU-style key chord to xdotool syntax. - For example, "ctrl-alt-ret" becomes "ctrl+alt+Return". + >>> xdotool_key_sequence("ctrl-alt-ret") + 'ctrl+alt+Return' + >>> xdotool_key_sequence("meta_l-x") + 'super+x' + >>> xdotool_key_sequence("alt-f4") + 'alt+F4' + + A modifier on its own is a regular key: + + >>> xdotool_key_sequence("shift") + 'Shift_L' + + A "-" that follows a modifier is the key itself, not a separator: + + >>> xdotool_key_sequence("ctrl--") + 'ctrl+-' """ parts = key.split("-") modifiers = [] @@ -154,9 +169,42 @@ def xdotool_key_sequence(key: str) -> str: def make_command(args: list) -> str: + """Join arguments into a shell command, quoting each one as a single word. + + >>> make_command(["echo", "a b", 1]) + "echo 'a b' 1" + >>> make_command(["ls", "*"]) + "ls '*'" + """ return " ".join(map(shlex.quote, (map(str, args)))) +def parse_systemctl_property(line: str) -> tuple[str, str] | None: + """Split a line of `systemctl show` output into its property and value. + + >>> parse_systemctl_property("Id=foo.service") + ('Id', 'foo.service') + + Only the first "=" separates the two, and values can be empty: + + >>> parse_systemctl_property("Environment=A=1 B=2") + ('Environment', 'A=1 B=2') + >>> parse_systemctl_property("Description=") + ('Description', '') + + Lines that aren't properties yield `None`: + + >>> parse_systemctl_property("") is None + True + >>> parse_systemctl_property("no property") is None + True + """ + match = re.match(r"^([^=]+)=(.*)$", line) + if match is None: + return None + return match[1], match[2] + + def retry( fn: Callable, timeout_seconds: int | dt.timedelta | None = None, @@ -217,6 +265,13 @@ class QemuStartCommand: These Nix commands have the particular characteristic that the machine name can be extracted out of them via a regex match. (Admittedly a _very_ implicit contract, TODO fix this eventually.) + + >>> QemuStartCommand("/nix/store/hash-nixos-vm/bin/run-foo-vm").machine_name + 'foo' + >>> QemuStartCommand("run-foo-bar-vm").machine_name + 'foo-bar' + >>> QemuStartCommand("/some/script").machine_name + 'machine' """ match = re.search("run-(.+)-vm$", self._cmd) name = "machine" @@ -397,6 +452,29 @@ class BaseMachine(ABC): """Shutdown the machine gracefully, waiting for it to exit.""" ... + @staticmethod + def _systemctl_command(q: str, user: str | None = None) -> str: + r"""Build a `systemctl` command, or a `systemctl --user` one for `user`. + + >>> print(BaseMachine._systemctl_command("list-jobs --no-pager")) + systemctl list-jobs --no-pager + >>> print(BaseMachine._systemctl_command("list-jobs --no-pager", "alice")) + su -l alice --shell /bin/sh -c $'XDG_RUNTIME_DIR=/run/user/`id -u` systemctl --user list-jobs --no-pager' + + Single quotes survive the surrounding `$'...'`: + + >>> print(BaseMachine._systemctl_command("show 'foo bar'", "alice")) + su -l alice --shell /bin/sh -c $'XDG_RUNTIME_DIR=/run/user/`id -u` systemctl --user show \'foo bar\'' + """ + if user is None: + return f"systemctl {q}" + escaped = q.replace("'", "\\'") + return ( + f"su -l {user} --shell /bin/sh -c " + "$'XDG_RUNTIME_DIR=/run/user/`id -u` " + f"systemctl --user {escaped}'" + ) + def systemctl(self, q: str, user: str | None = None) -> tuple[int, str]: """ Runs `systemctl` commands with optional support for @@ -411,14 +489,7 @@ class BaseMachine(ABC): machine.systemctl("list-jobs --no-pager", "any-user") ``` """ - if user is not None: - q = q.replace("'", "\\'") - return self.execute( - f"su -l {user} --shell /bin/sh -c " - "$'XDG_RUNTIME_DIR=/run/user/`id -u` " - f"systemctl --user {q}'" - ) - return self.execute(f"systemctl {q}") + return self.execute(self._systemctl_command(q, user)) def wait_for_unit( self, @@ -467,17 +538,10 @@ class BaseMachine(ABC): + f" failed with exit code {status}" ) - line_pattern = re.compile(r"^([^=]+)=(.*)$") - - def tuple_from_line(line: str) -> tuple[str, str]: - match = line_pattern.match(line) - assert match is not None - return match[1], match[2] - return dict( - tuple_from_line(line) + parsed for line in lines.split("\n") - if line_pattern.match(line) + if (parsed := parse_systemctl_property(line)) is not None ) def get_unit_property( @@ -505,12 +569,12 @@ class BaseMachine(ABC): f"produced invalid output: {lines}" ) - line_pattern = re.compile(r"^([^=]+)=(.*)$") - match = line_pattern.match(lines) - assert match is not None, invalid_output_message + parsed = parse_systemctl_property(lines) + assert parsed is not None, invalid_output_message - assert match[1] == property, invalid_output_message - return match[2] + name, value = parsed + assert name == property, invalid_output_message + return value def require_unit_state(self, unit: str, require_state: str = "active") -> None: """ @@ -742,7 +806,7 @@ class BaseMachine(ABC): ) if ret.returncode != 0: raise MachineError( - f"Cannot convert screenshot (pnmtopng returned code {ret.returncode})" + f"{self.name}: Cannot convert screenshot (pnmtopng returned code {ret.returncode})" ) def get_screen_text_variants(self) -> list[str]: @@ -1178,15 +1242,18 @@ class QemuMachine(BaseMachine): """Debugging: Dump the contents of the TTY""" self.execute(f"fold -w 80 /dev/vcs{tty} | systemd-cat") - def _execute( - self, - command: str, - check_return: bool = True, - check_output: bool = True, - timeout: dt.timedelta | None = dt.timedelta(minutes=15), - ) -> tuple[int, str]: - self.connect() + @staticmethod + def _shell_command(command: str, timeout: dt.timedelta | None) -> str: + """Build the line that runs `command` over the shell of the machine. + The command runs with strict shell options, and its output gets + base64-encoded so that it can be read back as a single line: + + >>> print(QemuMachine._shell_command("echo 'hi'", dt.timedelta(seconds=10))) + timeout 10.0 bash -c 'set -euo pipefail; echo '"'"'hi'"'"'' | (base64 -w 0; echo) + >>> print(QemuMachine._shell_command("true", None).strip()) + bash -c 'set -euo pipefail; true' | (base64 -w 0; echo) + """ # Always run command with shell opts command = f"set -euo pipefail; {command}" @@ -1196,12 +1263,19 @@ class QemuMachine(BaseMachine): # While sh is bash on NixOS, this is not the case for every distro. # We explicitly call bash here to allow for the driver to boot other distros as well. - out_command = ( - f"{timeout_str} bash -c {shlex.quote(command)} | (base64 -w 0; echo)\n" - ) + return f"{timeout_str} bash -c {shlex.quote(command)} | (base64 -w 0; echo)" + + def _execute( + self, + command: str, + check_return: bool = True, + check_output: bool = True, + timeout: dt.timedelta | None = dt.timedelta(minutes=15), + ) -> tuple[int, str]: + self.connect() assert self.shell - self.shell.send(out_command.encode()) + self.shell.send(f"{self._shell_command(command, timeout)}\n".encode()) if not check_output: return (-2, "") @@ -1335,16 +1409,6 @@ class QemuMachine(BaseMachine): Wait for a connection to the guest root shell """ - def shell_ready(timeout: dt.timedelta) -> bool: - """We sent some data from the backdoor service running on the guest - to indicate that the backdoor shell is ready. - As soon as we read some data from the socket here, we assume that - our root shell is operational. - """ - assert self.shell - (ready, _, _) = select.select([self.shell], [], [], timeout.total_seconds()) - return bool(ready) - if self.connected: return @@ -1354,9 +1418,15 @@ class QemuMachine(BaseMachine): assert self.shell tic = time.monotonic() + sel = selectors.DefaultSelector() + sel.register(self.shell, selectors.EVENT_READ) for _ in range(10): - if shell_ready(timeout=dt.timedelta(seconds=30)): + # We sent some data from the backdoor service running on the guest + # to indicate that the backdoor shell is ready. + # As soon as we read some data from the socket here, we assume that + # our root shell is operational. + if sel.select(timeout=30): break self.log("Guest root shell did not produce any data yet...") self.log( @@ -1477,6 +1547,7 @@ class QemuMachine(BaseMachine): s = socket.socket(family=socket.AF_UNIX, type=socket.SOCK_STREAM) s.bind(str(path)) s.listen(1) + s.setblocking(False) return s monitor_socket = create_socket(clear(self.monitor_path)) @@ -1498,8 +1569,10 @@ class QemuMachine(BaseMachine): would block forever if QEMU exits before connecting. """ assert self.process - while True: - readable, _, _ = select.select([sock], [], [], 1.0) + sel = selectors.DefaultSelector() + sel.register(sock, selectors.EVENT_READ) + for _ in range(60): + readable = sel.select(1) if readable: conn, _ = sock.accept() return conn @@ -1509,8 +1582,11 @@ class QemuMachine(BaseMachine): if self.process.stdout: output = self.process.stdout.read().decode(errors="ignore") raise MachineError( - f"QEMU process exited with code {rc} before connecting to {name} socket.\n{output}" + f"{self.name}: QEMU process exited with code {rc} before connecting to {name} socket.\n{output}" ) + raise MachineError( + f"{self.name}: Timed out waiting for QEMU connection on {name} socket" + ) self.monitor = accept_or_fail(monitor_socket, "monitor") self.shell = accept_or_fail(shell_socket, "shell") @@ -1690,7 +1766,19 @@ class NspawnMachine(BaseMachine): vnc: NspawnVnc | None @staticmethod - def machine_name_from_start_command(start_command: str) -> str: + def _machine_name_from_start_command(start_command: str) -> str: + """Extract the machine name from a start script of a container. + + >>> NspawnMachine._machine_name_from_start_command( + ... "/nix/store/hash-container/bin/run-foo-nspawn" + ... ) + 'foo' + >>> NspawnMachine._machine_name_from_start_command("run-foo-bar-nspawn") + 'foo-bar' + >>> NspawnMachine._machine_name_from_start_command("/some/script") + Traceback (most recent call last): + AssertionError: Could not extract node name from /some/script + """ match = re.search("run-(.+)-nspawn", os.path.basename(start_command)) assert match is not None, f"Could not extract node name from {start_command}" return match.group(1) @@ -1710,7 +1798,7 @@ class NspawnMachine(BaseMachine): # See analogous TODO in `QemuStartCommand::machine_name`. super().__init__( out_dir=out_dir, - name=name or self.machine_name_from_start_command(start_command), + name=name or self._machine_name_from_start_command(start_command), logger=logger, callbacks=callbacks, tmp_dir=tmp_dir, @@ -1743,6 +1831,33 @@ class NspawnMachine(BaseMachine): with self.nested("waiting for the X11 server"): retry(check_x, as_timedelta(timeout)) + @staticmethod + def _xdotool_command(key: str) -> str: + """Build the xdotool command that presses a QEMU-style key. + + Literal characters get typed to avoid key syntax, e.g. "+" as a chord + separator: + + >>> print(NspawnMachine._xdotool_command("a")) + xdotool type --clearmodifiers --delay 0 -- a + >>> print(NspawnMachine._xdotool_command("+")) + xdotool type --clearmodifiers --delay 0 -- + + + Everything else is a key chord: + + >>> print(NspawnMachine._xdotool_command("ctrl-alt-ret")) + xdotool key --clearmodifiers ctrl+alt+Return + >>> print(NspawnMachine._xdotool_command("\\n")) + xdotool key --clearmodifiers Return + """ + if len(key) == 1 and key.isprintable(): + return make_command( + ["xdotool", "type", "--clearmodifiers", "--delay", 0, "--", key] + ) + return make_command( + ["xdotool", "key", "--clearmodifiers", xdotool_key_sequence(key)] + ) + def send_key( self, key: str, @@ -1752,25 +1867,7 @@ class NspawnMachine(BaseMachine): _warn_if_numeric_duration(delay, "send_key") context = self.nested(f"sending key {repr(key)}") if log else nullcontext() with context: - # Type literal characters to avoid key syntax, e.g. "+" as a chord separator. - if len(key) == 1 and key.isprintable(): - command = [ - "xdotool", - "type", - "--clearmodifiers", - "--delay", - 0, - "--", - key, - ] - else: - command = [ - "xdotool", - "key", - "--clearmodifiers", - xdotool_key_sequence(key), - ] - self.succeed(make_command(command)) + self.succeed(self._xdotool_command(key)) if delay is not None: time.sleep(as_seconds(delay)) @@ -1799,7 +1896,7 @@ class NspawnMachine(BaseMachine): ret = subprocess.run(["xwdtopnm", xwd_path], stdout=ppm) if ret.returncode != 0: raise MachineError( - f"Cannot convert screenshot (xwdtopnm returned code {ret.returncode})" + f"{self.name}: Cannot convert screenshot (xwdtopnm returned code {ret.returncode})" ) yield ppm_path @@ -1836,6 +1933,28 @@ class NspawnMachine(BaseMachine): def is_up(self) -> bool: return self.process is not None + @staticmethod + def _parse_sd_notify(data: bytes) -> tuple[bool, int | None]: + """Extract readiness and the leader PID from an `sd_notify` datagram. + + >>> NspawnMachine._parse_sd_notify(b"READY=1\\n") + (True, None) + >>> NspawnMachine._parse_sd_notify(b"X_NSPAWN_LEADER_PID=42\\n") + (False, 42) + >>> NspawnMachine._parse_sd_notify(b"X_NSPAWN_LEADER_PID=42\\nREADY=1\\n") + (True, 42) + >>> NspawnMachine._parse_sd_notify(b"STATUS=Starting up\\n") + (False, None) + """ + ready = False + leader_pid = None + for line in data.decode(errors="replace").splitlines(): + if line == "READY=1": + ready = True + if line.startswith("X_NSPAWN_LEADER_PID="): + leader_pid = int(line.split("=")[1]) + return ready, leader_pid + def _drain_notify_socket(self) -> None: """Continuously drain the container's `sd_notify` socket (NOTIFY_SOCKET) for the whole lifetime of the container, recording readiness and the @@ -1866,13 +1985,7 @@ class NspawnMachine(BaseMachine): continue except OSError: break - ready = False - leader_pid = None - for line in data.decode(errors="replace").splitlines(): - if line == "READY=1": - ready = True - if line.startswith("X_NSPAWN_LEADER_PID="): - leader_pid = int(line.split("=")[1]) + ready, leader_pid = self._parse_sd_notify(data) if ready or leader_pid is not None: with self._notify_lock: if ready: @@ -1898,7 +2011,9 @@ class NspawnMachine(BaseMachine): # Poll the socket until we have the container leader PID while True: if self.process.poll() is not None: - raise MachineError("systemd-nspawn process exited unexpectedly") + raise MachineError( + f"{self.name}: systemd-nspawn process exited unexpectedly" + ) with self._notify_lock: is_ready = self._notify_ready diff --git a/nixos/lib/test-driver/src/test_driver/machine/qmp.py b/nixos/lib/test-driver/src/test_driver/machine/qmp.py index 6a5612e8a0c4..999589c4571b 100644 --- a/nixos/lib/test-driver/src/test_driver/machine/qmp.py +++ b/nixos/lib/test-driver/src/test_driver/machine/qmp.py @@ -12,6 +12,23 @@ logger = logging.getLogger(__name__) class QMPAPIError(RuntimeError): + """An error response from the QMP API. + + >>> error = {"class": "GenericError", "desc": "boom"} + >>> print(QMPAPIError({"error": error, "id": 3})) + + + The transaction id is absent from errors that the server hits before it + could read the id: + + >>> print(QMPAPIError({"error": error})) + + + >>> QMPAPIError({"error": {"class": "GenericError"}}) + Traceback (most recent call last): + RuntimeError: Malformed QMP API error response + """ + def __init__(self, message: dict[str, Any]): assert "error" in message, "Not an error message!" error = message["error"] diff --git a/nixos/lib/test-driver/src/test_driver/polling_condition.py b/nixos/lib/test-driver/src/test_driver/polling_condition.py index 0cf18bd9fe54..f3746dc012e7 100644 --- a/nixos/lib/test-driver/src/test_driver/polling_condition.py +++ b/nixos/lib/test-driver/src/test_driver/polling_condition.py @@ -13,6 +13,35 @@ class PollingConditionError(Exception): class PollingCondition: + """A condition that gets checked periodically while a test runs. + + The description comes from the `description` argument. Without one, it + falls back to the docstring of the condition, and then to its name: + + >>> from test_driver.logger import CompositeLogger + >>> logger = CompositeLogger([]) + >>> def service_runs(): + ... "The service is running" + >>> def no_docstring(): + ... pass + >>> PollingCondition(service_runs, logger, description="custom").description + 'custom' + >>> PollingCondition(service_runs, logger).description + 'The service is running' + >>> PollingCondition(no_docstring, logger).description + 'no_docstring' + + Log messages include the description: + + >>> condition = PollingCondition(service_runs, logger) + >>> condition.nested_message + "Checking polling condition 'The service is running'" + >>> condition.status_message(True) + 'Polling condition succeeded: The service is running' + >>> condition.status_message(False) + 'Polling condition failed: The service is running' + """ + condition: Callable[[], bool] interval: dt.timedelta description: str | None diff --git a/nixos/modules/config/fonts/fontconfig.nix b/nixos/modules/config/fonts/fontconfig.nix index 16b22841ac14..af165c744dab 100644 --- a/nixos/modules/config/fonts/fontconfig.nix +++ b/nixos/modules/config/fonts/fontconfig.nix @@ -30,7 +30,6 @@ let cfg = config.fonts.fontconfig; fcBool = x: "" + (lib.boolToString x) + ""; - pkg = pkgs.fontconfig; # configuration file to read fontconfig cache # priority 0 @@ -49,7 +48,7 @@ let inherit fontconfig; fontDirectories = config.fonts.packages; }; - cache = makeCache pkgs.fontconfig; + cache = makeCache cfg.package; cache32 = makeCache pkgs.pkgsi686Linux.fontconfig; in pkgs.writeText "fc-00-nixos-cache.conf" '' @@ -209,7 +208,7 @@ let # Replace default linked config with a different variant replaceDefaultConfig = defaultConfig: newConfig: '' rm $dst/${defaultConfig} - ln -s ${pkg.out}/share/fontconfig/conf.avail/${newConfig} \ + ln -s ${cfg.package.out}/share/fontconfig/conf.avail/${newConfig} \ $dst/ ''; @@ -224,7 +223,7 @@ let mkdir -p $dst # fonts.conf - ln -s ${pkg.out}/etc/fonts/fonts.conf \ + ln -s ${cfg.package.out}/etc/fonts/fonts.conf \ $dst/../fonts.conf # TODO: remove this legacy symlink once people stop using packages built before #95358 was merged mkdir -p $out/etc/fonts/2.11 @@ -232,7 +231,7 @@ let $out/etc/fonts/2.11/fonts.conf # fontconfig default config files - ln -s ${pkg.out}/etc/fonts/conf.d/*.conf \ + ln -s ${cfg.package.out}/etc/fonts/conf.d/*.conf \ $dst/ ${lib.optionalString (!cfg.antialias) ( @@ -352,6 +351,8 @@ in ''; }; + package = lib.mkPackageOption pkgs "fontconfig" { }; + confPackages = lib.mkOption { internal = true; type = with lib.types; listOf path; @@ -627,14 +628,14 @@ in }; config = lib.mkMerge [ (lib.mkIf cfg.enable { - environment.systemPackages = [ pkgs.fontconfig ]; + environment.systemPackages = [ cfg.package ]; environment.etc.fonts.source = "${fontconfigEtc}/etc/fonts/"; security.apparmor.includes."abstractions/fonts" = '' # fonts.conf - r ${pkg.out}/etc/fonts/fonts.conf, + r ${cfg.package.out}/etc/fonts/fonts.conf, # fontconfig default config files - r ${pkg.out}/etc/fonts/conf.d/*.conf, + r ${cfg.package.out}/etc/fonts/conf.d/*.conf, # 00-nixos-cache.conf r ${cacheConf}, @@ -644,7 +645,7 @@ in # 50-user.conf ${lib.optionalString cfg.includeUserConf '' - r ${pkg.out}/etc/fonts/conf.d.bak/50-user.conf, + r ${cfg.package.out}/etc/fonts/conf.d.bak/50-user.conf, ''} # local.conf (indirect priority 51) diff --git a/nixos/modules/services/desktop-managers/gnome.nix b/nixos/modules/services/desktop-managers/gnome.nix index d6537622102f..15e95b8346ef 100644 --- a/nixos/modules/services/desktop-managers/gnome.nix +++ b/nixos/modules/services/desktop-managers/gnome.nix @@ -461,35 +461,38 @@ in pkgs.gtk3.out # for gtk-launch program pkgs.xdg-user-dirs # Update user dirs as described in https://freedesktop.org/wiki/Software/xdg-user-dirs/ pkgs.xdg-user-dirs-gtk # Used to create the default bookmarks + pkgs.gnome-extensions-app + pkgs.gnome-tecla ]; in mandatoryPackages ++ removeExcluded optionalPackages; }) - # Adapt from https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/gnome-48/elements/core/meta-gnome-core-apps.bst + # Adapt from https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/gnome-51/elements/core/meta-gnome-core-apps.bst (lib.mkIf serviceCfg.core-apps.enable { environment.systemPackages = removeExcluded [ pkgs.baobab pkgs.decibels pkgs.epiphany - pkgs.gnome-text-editor pkgs.gnome-calculator pkgs.gnome-calendar pkgs.gnome-characters pkgs.gnome-clocks + pkgs.gnome-connections pkgs.gnome-console pkgs.gnome-contacts + # gnome-disk-utility is controlled below via `programs.gnome-disks` pkgs.gnome-font-viewer pkgs.gnome-logs pkgs.gnome-maps pkgs.gnome-music + # gnome-software is controlled below via `services.gnome.gnome-software` pkgs.gnome-system-monitor - pkgs.gnome-tecla + pkgs.gnome-text-editor pkgs.gnome-weather pkgs.loupe pkgs.nautilus pkgs.papers - pkgs.gnome-connections pkgs.showtime pkgs.simple-scan pkgs.snapshot @@ -526,6 +529,7 @@ in ]; }) + # Note: This is an arbitrary list of packages, there is no "official" list of GNOME games. (lib.mkIf serviceCfg.games.enable { environment.systemPackages = removeExcluded [ pkgs.aisleriot @@ -551,18 +555,13 @@ in ]; }) - # Adapt from https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/gnome-48/elements/core/meta-gnome-core-developer-tools.bst + # Adapt from https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/gnome-51/elements/core/meta-gnome-core-developer-tools.bst (lib.mkIf serviceCfg.core-developer-tools.enable { environment.systemPackages = removeExcluded [ pkgs.dconf-editor pkgs.devhelp pkgs.d-spy pkgs.gnome-builder - # boxes would make sense in this option, however - # it doesn't function well enough to be included - # in default configurations. - # https://github.com/NixOS/nixpkgs/issues/60908 - # pkgs.gnome-boxes pkgs.sysprof ]; diff --git a/nixos/modules/services/display-managers/gdm.nix b/nixos/modules/services/display-managers/gdm.nix index 3f8501f1ece5..8d1b901a2427 100644 --- a/nixos/modules/services/display-managers/gdm.nix +++ b/nixos/modules/services/display-managers/gdm.nix @@ -353,8 +353,26 @@ in }; } ] + ++ lib.optionals (!config.security.pam.p11.enable) [ + { + settings."org/gnome/login-screen" = { + enable-smartcard-authentication = false; + }; + } + ] ++ [ "${gdm}/share/gdm/greeter-dconf-defaults" ]; + programs.dconf.profiles.user.databases = [ + { + settings."org/gnome/login-screen" = { + enable-smartcard-authentication = config.security.pam.p11.enable; + + # We currently don't provide a `gdm-switchable-auth` PAM service. + enable-switchable-authentication = false; + }; + } + ]; + # Use AutomaticLogin if delay is zero, because it's immediate. # Otherwise with TimedLogin with zero seconds the prompt is still # presented and there's a little delay. @@ -671,6 +689,85 @@ in ]; }; }; + + # Do not attempt to authenticate via smartcard when the login option + # "Password" is selected (gdm-password). + login.p11Auth = lib.mkIf config.security.pam.p11.enable false; + + gdm-smartcard = lib.mkIf config.security.pam.p11.enable { + useDefaultRules = false; + rules = { + auth = utils.pam.autoOrderRules [ + { + name = "nologin"; + control = "requisite"; + modulePath = "${config.security.pam.package}/lib/security/pam_nologin.so"; + } + { + name = "faillock"; + control = "requisite"; + modulePath = "${config.security.pam.package}/lib/security/pam_faillock.so"; + settings.preauth = true; + } + { + name = "p11"; + control = "required"; + modulePath = "${pkgs.pam_p11}/lib/security/pam_p11.so"; + args = [ + "${pkgs.opensc}/lib/opensc-pkcs11.so" + ]; + } + { + name = "shells"; + control = "required"; + modulePath = "${config.security.pam.package}/lib/security/pam_shells.so"; + } + { + name = "env"; + control = "required"; + modulePath = "${config.security.pam.package}/lib/security/pam_env.so"; + settings.conffile = "/etc/pam/environment"; + settings.readenv = 0; + } + { + name = "gdm"; + enable = pamLogin.enable && pamLogin.enableGnomeKeyring; + control = "[success=ok default=1]"; + modulePath = "${gdm}/lib/security/pam_gdm.so"; + } + { + name = "gnome_keyring"; + enable = pamLogin.enable && pamLogin.enableGnomeKeyring; + control = "optional"; + modulePath = "${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so"; + } + ]; + + account = utils.pam.autoOrderRules [ + { + name = "login"; + control = "include"; + modulePath = "login"; + } + ]; + + password = utils.pam.autoOrderRules [ + { + name = "deny"; + control = "required"; + modulePath = "${config.security.pam.package}/lib/security/pam_deny.so"; + } + ]; + + session = utils.pam.autoOrderRules [ + { + name = "login"; + control = "include"; + modulePath = "login"; + } + ]; + }; + }; }; }; diff --git a/nixos/modules/services/misc/tabby.nix b/nixos/modules/services/misc/tabby.nix index dce695d6fd2e..8b9cbcfb9832 100644 --- a/nixos/modules/services/misc/tabby.nix +++ b/nixos/modules/services/misc/tabby.nix @@ -98,7 +98,7 @@ in - nixpkgs.config.cudaSupport - nixpkgs.config.rocmSupport - - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 + - if stdenv.hostPlatform.isDarwin IFF multiple acceleration methods are found to be enabled or if you haven't set either `cudaSupport or rocmSupport` you will have to diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 87c35abcc554..5ff5b16a2cf2 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -89,6 +89,7 @@ let "systemd-fsck-root.service" "systemd-growfs@.service" "systemd-growfs-root.service" + "systemd-loop@.service" "systemd-remount-fs.service" "systemd-pstore.service" "local-fs.target" diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index 0ef8c6dabd39..b8ba4626a292 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -97,6 +97,7 @@ let "systemd-factory-reset-complete.service" "factory-reset-now.target" "systemd-fsck@.service" + "systemd-loop@.service" "systemd-halt.service" "systemd-hibernate-resume.service" "systemd-journald-audit.socket" @@ -613,6 +614,7 @@ in "${cfg.package}/lib/systemd/systemd-bsod" "${cfg.package}/lib/systemd/systemd-sysroot-fstab-check" "${cfg.package}/lib/systemd/systemd-factory-reset" + "${cfg.package}/bin/systemd-dissect" # generators "${cfg.package}/lib/systemd/system-generators/systemd-debug-generator" diff --git a/nixos/modules/system/boot/systemd/tpm2.nix b/nixos/modules/system/boot/systemd/tpm2.nix index 9adbb885fffd..f50d77924882 100644 --- a/nixos/modules/system/boot/systemd/tpm2.nix +++ b/nixos/modules/system/boot/systemd/tpm2.nix @@ -60,6 +60,10 @@ # NixOS. systemd.services."systemd-pcrlogin@".unitConfig.ConditionPathExists = "/run/systemd/nvpcr/login.auth"; + + systemd.sockets."systemd-pcrextend" = { + wantedBy = [ "sockets.target" ]; + }; } ) ( @@ -101,6 +105,10 @@ "${cfg.package}/lib/systemd/system-generators/systemd-tpm2-generator" "${cfg.package}/lib/systemd/systemd-pcrextend" ]; + + boot.initrd.systemd.sockets."systemd-pcrextend" = { + wantedBy = [ "sockets.target" ]; + }; } ) ( diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 40f9db9b7107..e62202c57065 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -25,9 +25,12 @@ let hostPkgs = cfg.host.pkgs; useVirtiofs = hostPkgs.stdenv.hostPlatform.isLinux; + needsVirtiofs = useVirtiofs && cfg.sharedDirectories != { }; consoles = lib.concatMapStringsSep " " (c: "console=${c}") cfg.qemu.consoles; + runScript = hostPkgs.callPackage ./run-virtiofsd-qemu { }; + driveOptions = { ... }: { @@ -326,33 +329,29 @@ let '' )} - ${lib.optionalString useVirtiofs '' - echo "Starting virtiofs daemons..." - NIX_VIRTIOFS_DIR=$(mktemp -d) - ${lib.concatLines ( - lib.mapAttrsToList (tag: share: '' - ${lib.getExe hostPkgs.virtiofsd} \ - --socket-path="$NIX_VIRTIOFS_DIR"/"${tag}" \ - --shared-dir="$(readlink -f "${share.source}")" \ - ${if share.writable then "--writeback" else "--readonly"} \ - --sandbox=none \ - --seccomp=none \ - --cache=${share.cache} \ - --no-announce-submounts \ - --translate-uid=host:65534:0:1 \ - --translate-gid=host:65534:0:1 \ - & - '') cfg.sharedDirectories - )} + ${lib.optionalString needsVirtiofs '' + export NIX_VIRTIOFS_DIR=$(mktemp -d) ''} # Start QEMU. - exec ${ - qemu-common.qemuBinaryWith { - qemuPkg = qemu; - forceAccel = cfg.qemu.forceAccel; - } - } \ + exec ${lib.optionalString needsVirtiofs '' + ${lib.getExe runScript} \ + --virtiofs-paths ${ + lib.concatStringsSep " " ( + lib.mapAttrsToList ( + tag: share: + "${tag}:${share.source}:${share.cache}:${if share.writable then "writeback" else "readonly"}" + ) cfg.sharedDirectories + ) + } \ + -- \ + ''} \ + ${ + qemu-common.qemuBinaryWith { + qemuPkg = qemu; + forceAccel = cfg.qemu.forceAccel; + } + } \ -name ${config.system.name} \ -m ${toString config.virtualisation.memorySize} \ -smp ${toString config.virtualisation.cores} \ diff --git a/nixos/modules/virtualisation/run-virtiofsd-qemu/default.nix b/nixos/modules/virtualisation/run-virtiofsd-qemu/default.nix new file mode 100644 index 000000000000..eb843221e7a7 --- /dev/null +++ b/nixos/modules/virtualisation/run-virtiofsd-qemu/default.nix @@ -0,0 +1,3 @@ +{ python3Packages }: + +python3Packages.callPackage ./package.nix { } diff --git a/nixos/modules/virtualisation/run-virtiofsd-qemu/package.nix b/nixos/modules/virtualisation/run-virtiofsd-qemu/package.nix new file mode 100644 index 000000000000..1353cca38f5f --- /dev/null +++ b/nixos/modules/virtualisation/run-virtiofsd-qemu/package.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonApplication, + virtiofsd, + ruff, + setuptools, + ty, +}: + +buildPythonApplication { + pname = "run-virtiofsd-qemu"; + version = "1.0"; + pyproject = true; + + src = ./.; + + postPatch = '' + substituteInPlace ./run_virtiofsd_qemu/__init__.py \ + --replace-fail "@virtiofsd@" "${lib.getExe virtiofsd}" + ''; + + build-system = [ + setuptools + ]; + + propagatedBuildInputs = [ + virtiofsd + ]; + + doCheck = true; + + nativeCheckInputs = [ + ruff + ty + ]; + + checkPhase = '' + echo -e "\x1b[32m## run ty\x1b[0m" + ty check --error-on-warning run_virtiofsd_qemu + echo -e "\x1b[32m## run ruff check\x1b[0m" + ruff check . + echo -e "\x1b[32m## run ruff format\x1b[0m" + ruff format --check --diff . + ''; + + meta = { + mainProgram = "run-virtiofsd-qemu"; + }; +} diff --git a/nixos/modules/virtualisation/run-virtiofsd-qemu/pyproject.toml b/nixos/modules/virtualisation/run-virtiofsd-qemu/pyproject.toml new file mode 100644 index 000000000000..cec74d22667c --- /dev/null +++ b/nixos/modules/virtualisation/run-virtiofsd-qemu/pyproject.toml @@ -0,0 +1,13 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "run-virtiofsd-qemu" +version = "1.0" + +[project.scripts] +run-virtiofsd-qemu = "run_virtiofsd_qemu:main" + +[tool.setuptools.packages] +find = {} diff --git a/nixos/modules/virtualisation/run-virtiofsd-qemu/run_virtiofsd_qemu/__init__.py b/nixos/modules/virtualisation/run-virtiofsd-qemu/run_virtiofsd_qemu/__init__.py new file mode 100644 index 000000000000..74177acbd5a4 --- /dev/null +++ b/nixos/modules/virtualisation/run-virtiofsd-qemu/run_virtiofsd_qemu/__init__.py @@ -0,0 +1,122 @@ +import argparse +import asyncio +import logging +import signal +from contextlib import AsyncExitStack, asynccontextmanager +from os import environ +from pathlib import Path +from sys import exit + +logger = logging.getLogger(__name__) + + +def fatal_error(msg: str): + logger.error(msg) + exit(1) + + +@asynccontextmanager +async def virtiofsd(virtiofs_dir: Path, tag: str, source: Path, cache: str, flag: str): + socket_path = virtiofs_dir / tag + proc = await asyncio.create_subprocess_exec( + "@virtiofsd@", + f"--socket-path={socket_path}", + f"--shared-dir={source.resolve()}", + f"--{flag}", + "--sandbox=none", + "--seccomp=none", + f"--cache={cache}", + "--no-announce-submounts", + "--translate-uid=host:65534:0:1", + "--translate-gid=host:65534:0:1", + ) + + try: + loop = asyncio.get_running_loop() + while not await loop.run_in_executor(None, lambda: socket_path.exists()): + if proc.returncode is not None: + fatal_error(f"virtiofsd process for '{tag}' failed to start. Aborting.") + await asyncio.sleep(1) + + yield + finally: + try: + proc.terminate() + async with asyncio.timeout(2): + await proc.communicate() + except ProcessLookupError: + pass + except TimeoutError: + logger.warning( + f"virtiofsd process for '{tag}' still running after SIGTERM. Killing." + ) + proc.kill() + await proc.communicate() + + +def extract_arguments() -> tuple[list[tuple[str, Path, str, str]], list[str]]: + parser = argparse.ArgumentParser() + parser.add_argument( + "--virtiofs-paths", + nargs="+", + help="Paths to be exposed with virtiofsd in the format 'tag:source:cache:mode'", + ) + + args, qemu_args = parser.parse_known_args() + if not qemu_args: + logger.warning("No command to run specified, exiting") + exit(0) + + if qemu_args[0] != "--": + fatal_error( + "Usage error: expected command to run separated with '--' from the args passed to this program!" + ) + qemu_args.pop(0) + if not qemu_args: + logger.warning("No command to run specified, exiting") + exit(0) + + defs = [] + for defin in args.virtiofs_paths: + args = defin.split(":") + if len(args) != 4: + fatal_error( + f"--virtiofs-paths definition '{defin}' doesn't have four params separated by ':'!" + ) + defs.append((args[0], Path(args[1]), args[2], args[3])) + + return defs, qemu_args + + +async def amain(): + logging.basicConfig(format="%(levelname)s: %(funcName)s: %(message)s") + args, qemu_args = extract_arguments() + + try: + virtiofs_dir = Path(environ["NIX_VIRTIOFS_DIR"]) + except KeyError: + fatal_error("NIX_VIRTIOFS_DIR is unset!") + + async with AsyncExitStack() as virtiofsds: + await asyncio.gather( + *( + virtiofsds.enter_async_context(virtiofsd(virtiofs_dir, *defin)) + for defin in args + ) + ) + + proc = await asyncio.create_subprocess_exec(*qemu_args) + loop = asyncio.get_running_loop() + loop.add_signal_handler(signal.SIGTERM, lambda: proc.terminate()) + loop.add_signal_handler(signal.SIGINT, lambda: proc.terminate()) + await proc.communicate() + + return proc.returncode + + +def main(): + return asyncio.run(amain()) + + +if __name__ == "__main__": + exit(main()) diff --git a/nixos/modules/virtualisation/run-virtiofsd-qemu/shell.nix b/nixos/modules/virtualisation/run-virtiofsd-qemu/shell.nix new file mode 100644 index 000000000000..2befa77d0f5a --- /dev/null +++ b/nixos/modules/virtualisation/run-virtiofsd-qemu/shell.nix @@ -0,0 +1,4 @@ +{ + pkgs ? import ../../../.. { }, +}: +pkgs.callPackage ./default.nix { } diff --git a/nixos/tests/common/x11.nix b/nixos/tests/common/x11.nix index b5a8dee683a1..2082ff00e1c8 100644 --- a/nixos/tests/common/x11.nix +++ b/nixos/tests/common/x11.nix @@ -31,6 +31,12 @@ in displayManager.lightdm.extraConfig = '' logind-check-graphical = false ''; + + # `wait_for_x()` establishing a connection that is being teared down + # before having any other connection to X11 causes the X server to reset + # itself. This flag prevents that behavior. + # Context: https://github.com/NixOS/nixpkgs/pull/578540#issuecomment-6593586095 + displayManager.xserverArgs = lib.mkAfter [ "-noreset" ]; }) ]; diff --git a/nixos/tests/systemd-initrd-luks-tpm2.nix b/nixos/tests/systemd-initrd-luks-tpm2.nix index 3d1661564547..624caf276415 100644 --- a/nixos/tests/systemd-initrd-luks-tpm2.nix +++ b/nixos/tests/systemd-initrd-luks-tpm2.nix @@ -19,15 +19,25 @@ boot.initrd.availableKernelModules = [ "tpm_tis" ]; - environment.systemPackages = with pkgs; [ cryptsetup ]; + environment.systemPackages = with pkgs; [ + cryptsetup + tpm2-tools + ]; specialisation.boot-luks.configuration = { boot.initrd.luks.devices = lib.mkVMOverride { cryptroot = { device = "/dev/vdb"; - crypttabExtraOpts = [ "tpm2-device=auto" ]; + crypttabExtraOpts = [ + "tpm2-device=auto" + "tpm2-measure-pcr=yes" + ]; }; }; + # The volume key measurement is only performed when the OS is explicitly + # marked as measured (or booted through a measuring kernel stub). + boot.kernelParams = [ "systemd.tpm2_measured_os=1" ]; + virtualisation.rootDevice = "/dev/mapper/cryptroot"; }; }; @@ -54,5 +64,11 @@ # Boot and decrypt the disk machine.wait_for_unit("multi-user.target") assert "/dev/mapper/cryptroot on / type ext4" in machine.succeed("mount") + + # The volume key has to be measured into PCR 15 through the + # io.systemd.PCRExtend socket during initrd. + machine.succeed("grep -q volume-key /run/log/systemd/tpm2-measure.log") + pcr = machine.succeed("tpm2_pcrread sha256:15") + assert "15: 0x0000000000000000000000000000000000000000000000000000000000000000" not in pcr, pcr ''; } diff --git a/nixos/tests/terminal-emulators.nix b/nixos/tests/terminal-emulators.nix index 7a9489c58fbd..eda29be5e5c1 100644 --- a/nixos/tests/terminal-emulators.nix +++ b/nixos/tests/terminal-emulators.nix @@ -41,6 +41,11 @@ let ghostty.pkg = p: p.ghostty; ghostty.cmd = "ghostty -e $command"; + gnome-console.pkg = p: p.gnome-console; + gnome-console.executable = "kgx"; + gnome-console.cmd = "kgx -e $command"; + gnome-console.kill = true; + gnome-terminal.pkg = p: p.gnome-terminal; guake.pkg = p: p.guake; @@ -51,10 +56,6 @@ let kermit.pkg = p: p.kermit-terminal; - kgx.pkg = p: p.kgx; - kgx.cmd = "kgx -e $command"; - kgx.kill = true; - kitty.pkg = p: p.kitty; kitty.cmd = "kitty $command"; diff --git a/pkgs/applications/editors/vim/common.nix b/pkgs/applications/editors/vim/common.nix index 5ea25e9b77a8..fcf1ebcab064 100644 --- a/pkgs/applications/editors/vim/common.nix +++ b/pkgs/applications/editors/vim/common.nix @@ -4,7 +4,7 @@ stdenv, }: rec { - version = "9.2.1164"; + version = "9.2.1252"; outputs = [ "out" @@ -15,7 +15,7 @@ rec { owner = "vim"; repo = "vim"; rev = "v${version}"; - hash = "sha256-Ymtq7+egq8OydTdzHP/q14MK6p+crKlQwduJ27oDbNU="; + hash = "sha256-k5Na69KYXb7kxajpJFv9+vBymApaio7TwHrETudAGrk="; }; enableParallelBuilding = true; diff --git a/pkgs/applications/science/logic/coq/with-packages.nix b/pkgs/applications/science/logic/coq/with-packages.nix index 64a85328b15a..8e8df9d762ea 100644 --- a/pkgs/applications/science/logic/coq/with-packages.nix +++ b/pkgs/applications/science/logic/coq/with-packages.nix @@ -24,9 +24,9 @@ let coqPath = lib.makeSearchPath "/lib/coq/${rocq-version}/user-contrib" allPackages; - ocamlPath = lib.makeSearchPath "/lib/ocaml/${coq.ocamlPackages.ocaml.version}/site-lib" ( - [ coq.ocamlPackages.findlib ] ++ allPackages - ); + ocamlPath = + lib.makeSearchPathOutput "dev" "/lib/ocaml/${coq.ocamlPackages.ocaml.version}/site-lib" + ([ coq.ocamlPackages.findlib ] ++ allPackages); pathEnvVar = if isRocq then "ROCQPATH" else "COQPATH"; in diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 6ba63d857529..a7ab66d673e5 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -64,8 +64,6 @@ let versionCheckHook, }: let - systemdLibs' = systemdLibs.override { withCompression = true; }; - docker-meta = { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ @@ -192,7 +190,7 @@ let ++ lib.optionals (lib.versionAtLeast version "29.0.0") [ nftables ] ++ lib.optionals withLvm [ lvm2 ] ++ lib.optionals withBtrfs [ btrfs-progs ] - ++ lib.optionals withSystemd [ systemdLibs' ] + ++ lib.optionals withSystemd [ systemdLibs ] ++ lib.optionals withSeccomp [ libseccomp ]; postPatch = '' diff --git a/pkgs/build-support/bintools-wrapper/ld-wrapper.sh b/pkgs/build-support/bintools-wrapper/ld-wrapper.sh index ae76e7a223f7..dd751666a1c9 100644 --- a/pkgs/build-support/bintools-wrapper/ld-wrapper.sh +++ b/pkgs/build-support/bintools-wrapper/ld-wrapper.sh @@ -200,37 +200,30 @@ if [[ "$NIX_DONT_SET_RPATH_@suffixSalt@" != 1 && "$linkType" != static-pie ]]; t # so, add the directory to the rpath. # It's important to add the rpath in the order of -L..., so # the link time chosen objects will be those of runtime linking. - declare -A rpaths + declare -A rpaths seenLibDirs for dir in ${libDirs+"${libDirs[@]}"}; do - # If the path is in the store, do not resolve any symlinks and add it to the rpath. - # Resolving symlinks in the store breaks bootstrapping, see issue #454199. - # If it is outside the store, resolve symlinks step by step until it falls - # into the store or it becomes not a symlink. - # Always canonicalize the path before checking it is in the store or not. - if dir2=$(realpath -s "$dir"); then - dir="$dir2" - else + # The same directory is often passed many times, such as from + # NIX_LDFLAGS; it would give the same result each time. + if [ -n "${seenLibDirs[$dir]:-}" ]; then continue fi - while [ -z "${rpaths[$dir]:-}" ] && [[ "$dir" != "${NIX_STORE:-}"/* ]] && [ -L "$dir" ]; do - if dir2=$(readlink "$dir"); then - dir="dir2" - else - break - fi - if dir2=$(realpath -s "$dir"); then - dir="dir2" - else - break - fi - done + seenLibDirs["$dir"]=1 + # Find where the directory is, following symlinks outside the store, + # and in it only where needed; see resolveLibDir. Skip directories + # that do not exist, in which the linker cannot find libraries either. + if ! [ -d "$dir" ] || ! resolveLibDir "$dir"; then + continue + fi + dir="$resolvedPath" # If the path turns out to be outside the store, we do not add it to rpath. # This typically happens for libraries in /tmp that are later # copied to $out/lib. If not, we're screwed. if [ -n "${rpaths[$dir]:-}" ] || [[ "$dir" != "${NIX_STORE:-}"/* ]]; then continue fi - for path in "$dir"/*; do + # Every name in libs is that of a shared library, ending in .so or + # containing .so., so the rest of the directory can be skipped. + for path in "$dir"/*.so*; do file="${path##*/}" if [ "${libs[$file]:-}" ]; then # This library may have been provided by a previous directory, diff --git a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix index efa20e5343ad..f730e517d5fd 100644 --- a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix +++ b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix @@ -129,6 +129,8 @@ lib.makeOverridable ( "pki" # Custom dconf profiles "dconf" + # EGL platform definitions (required by nvidia-x11) + "egl" ]; in map (path: "/etc/${path}") files; diff --git a/pkgs/build-support/go/module.nix b/pkgs/build-support/go/module.nix index bbe918684a0f..2fa7f24e5906 100644 --- a/pkgs/build-support/go/module.nix +++ b/pkgs/build-support/go/module.nix @@ -302,7 +302,7 @@ lib.extendMkDerivation { if [ "$cmd" = "test" ]; then flags+=(-vet=off) - flags+=($checkFlags) + concatTo flags checkFlags fi local OUT diff --git a/pkgs/build-support/kernel/make-initrd-ng/src/main.rs b/pkgs/build-support/kernel/make-initrd-ng/src/main.rs index b04e546d388a..4994da4033d8 100644 --- a/pkgs/build-support/kernel/make-initrd-ng/src/main.rs +++ b/pkgs/build-support/kernel/make-initrd-ng/src/main.rs @@ -109,7 +109,7 @@ fn add_dependencies + AsRef + std::fmt::Debug>( .position(|x| *x == 0) .unwrap_or(note.desc.len())]; let parsed = serde_json::from_slice::>(payload)?; - for mut parsed_note in parsed { + for parsed_note in parsed { if dlopen.use_priority >= parsed_note.priority.unwrap_or(DLOpenPriority::Recommended) || parsed_note @@ -117,7 +117,9 @@ fn add_dependencies + AsRef + std::fmt::Debug>( .map(|f| dlopen.features.contains(&f)) .unwrap_or(false) { - dlopen_libraries.append(&mut parsed_note.soname); + // SONAMEs in one note are ordered alternatives, not + // independent dependencies. + dlopen_libraries.push(parsed_note.soname); } } } @@ -137,39 +139,38 @@ fn add_dependencies + AsRef + std::fmt::Debug>( .map(|p| Box::::from(Path::new(p))) .collect::>(); - for line in elf + for sonames in elf .libraries .into_iter() - .map(|s| s.to_string()) + .map(|s| vec![s.to_string()]) .chain(dlopen_libraries) { - let mut found = false; - for path in &rpaths_as_path { - let lib = path.join(&line); - if lib.exists() { - // No need to recurse. The queue will bring it back round. - queue.push_back(StorePath { - path: Box::from(lib.as_path()), - dlopen: dlopen.clone(), - }); - found = true; - break; - } - } - if !found { + let library = sonames + .iter() + .flat_map(|soname| rpaths_as_path.iter().map(move |path| path.join(soname))) + .find(|lib| lib.exists()); + if let Some(lib) = library { + // No need to recurse. The queue will bring it back round. + queue.push_back(StorePath { + path: lib.into_boxed_path(), + dlopen: dlopen.clone(), + }); + } else { // In Nix, glibc's own libraries lack rpath entries pointing to // themselves, so the dynamic linker (ld-linux-*.so.*) and libc.so.* // can never be resolved through rpath alone. They are always present // in the initrd: the linker via elf.interpreter above, and libc via // at least one binary's rpath. Suppress these known-benign cases. // See also: the ld*.so.? skip in stage-1.nix findLibs. - let is_glibc_runtime = (line.starts_with("ld-") && line.contains(".so")) - || line.starts_with("libc.so"); + let is_glibc_runtime = matches!( + sonames.as_slice(), + [s] if (s.starts_with("ld-") && s.contains(".so")) || s.starts_with("libc.so") + ); if !is_glibc_runtime { eprintln!( "Warning: Couldn't satisfy dependency {} for {:?}", - line, + sonames.join(" or "), OsStr::new(&source) ); } @@ -314,13 +315,10 @@ fn main() -> eyre::Result<()> { let args: Vec = env::args().collect(); let contents = fs::read(&args[1]).wrap_err_with(|| format!("failed to open file {:?}", &args[1]))?; - let input = serde_json::from_slice::>(&contents) - .wrap_err_with(|| { - let text = String::from_utf8_lossy(&contents); - format!("failed to parse JSON '{}' in {:?}", - text, - &args[1]) - })?; + let input = serde_json::from_slice::>(&contents).wrap_err_with(|| { + let text = String::from_utf8_lossy(&contents); + format!("failed to parse JSON '{}' in {:?}", text, &args[1]) + })?; let output = &args[2]; let out_path = Path::new(output); diff --git a/pkgs/build-support/node/prefetch-npm-deps/default.nix b/pkgs/build-support/node/prefetch-npm-deps/default.nix index 2875c9291dec..ff0b4e73bd03 100644 --- a/pkgs/build-support/node/prefetch-npm-deps/default.nix +++ b/pkgs/build-support/node/prefetch-npm-deps/default.nix @@ -20,6 +20,8 @@ pname = "prefetch-npm-deps"; version = (lib.importTOML ./Cargo.toml).package.version; + __structuredAttrs = true; + src = lib.cleanSourceWith { src = ./.; filter = diff --git a/pkgs/build-support/ocaml/dune.nix b/pkgs/build-support/ocaml/dune.nix index db74d1de3731..18fb515b619b 100644 --- a/pkgs/build-support/ocaml/dune.nix +++ b/pkgs/build-support/ocaml/dune.nix @@ -45,6 +45,26 @@ lib.extendMkDerivation { strictDeps = true; + # OCaml libraries, and the dependencies they propagate, are only needed + # to build other packages. Unless the package chooses its outputs, + # those are installed into "dev", rather than "out", to minimize the + # "out" runtime closure. Man pages and documentation go to "man" and + # "doc". + outputs = + args.outputs or [ + "out" + "dev" + "man" + "doc" + ]; + + # The findlib setup hook always points OCAMLFIND_DESTDIR at $out, so + # override it after all setup hooks have run. + postHook = '' + export OCAMLFIND_DESTDIR="''${!outputDev}/lib/ocaml/${ocaml.version}/site-lib/" + '' + + args.postHook or ""; + inherit enableParallelBuilding; dontAddStaticConfigureFlags = true; configurePlatforms = [ ]; @@ -67,12 +87,15 @@ lib.extendMkDerivation { args.installPhase or '' runHook preInstall dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${lib.concatStringsSep " " dunePackages} \ - ${ - if lib.versionAtLeast Dune.version "2.9" then - "--docdir $out/share/doc --mandir $out/share/man" - else - "" - } + ${lib.optionalString (lib.versionAtLeast Dune.version "2.9") '' + --docdir "''${!outputDoc}/share/doc" --mandir "''${!outputMan}/share/man" --etcdir "$out/etc" \ + ''} ${lib.optionalString (lib.versionAtLeast Dune.version "3.0") '' + --bindir "''${!outputBin}/bin" --datadir "$out/share" + ''} + # Not every package installs something into each output. + for output in $(getAllOutputNames); do + mkdir -p "''${!output}" + done runHook postInstall ''; @@ -83,8 +106,22 @@ lib.extendMkDerivation { runHook postCheck ''; - meta = (args.meta or { }) // { - platforms = args.meta.platforms or ocaml.meta.platforms; - }; + # With several outputs, multiple-outputs.sh passes autoconf-style + # --bindir/--libdir/--mandir/... flags to ./configure. The configure + # scripts shipped by dune packages are hand-written and reject them. + setOutputFlags = args.setOutputFlags or false; + + meta = + let + meta = args.meta or { }; + # meta is often copied from another package, which may have other + # outputs. Keep the default if none of them are left. + outputsToInstall = lib.intersectLists finalAttrs.outputs (meta.outputsToInstall or [ ]); + in + removeAttrs meta [ "outputsToInstall" ] + // { + platforms = meta.platforms or ocaml.meta.platforms; + } + // lib.optionalAttrs (outputsToInstall != [ ]) { inherit outputsToInstall; }; }; } diff --git a/pkgs/build-support/rust/fetch-cargo-vendor-util.py b/pkgs/build-support/rust/fetch-cargo-vendor-util.py index 825f07b175ee..9102f3f2de1a 100644 --- a/pkgs/build-support/rust/fetch-cargo-vendor-util.py +++ b/pkgs/build-support/rust/fetch-cargo-vendor-util.py @@ -1,57 +1,223 @@ import functools import hashlib import json -import multiprocessing as mp +import os import re import shutil import subprocess import sys +import tempfile +import threading import tomllib +from concurrent.futures import FIRST_EXCEPTION, Future, ThreadPoolExecutor, wait +from dataclasses import dataclass, field from os.path import islink, realpath from pathlib import Path -from typing import Any, TypedDict, cast +from typing import Any, cast from urllib.parse import unquote -import requests import tomli_w +from requests import Session from requests.adapters import HTTPAdapter, Retry +# Constants for controlling how the crates are downloaded from the registries via `requests` +# These do not affect the fetching of git dependencies +MAX_WORKERS = min(5, os.cpu_count() or 1) # number of workers in the ThreadPoolExecutor +CONNECT_TIMEOUT = 2 # max seconds for establishing initial connection +READ_TIMEOUT = 10 # max seconds between receiving data packets +TIMEOUT = (CONNECT_TIMEOUT, READ_TIMEOUT) +RETRY_COUNT = 3 # number of retries for fetching an url +BACKOFF_FACTOR = 0.5 # seconds to wait between retries (gets multiplied by 2 after every retry) + +# If for some reason our custom User-Agent value starts getting rejected, we could +# set the User-Agent to the value that cargo uses, e.g.: "cargo/1.95.0 (f2d3ce0bd 2026-03-21)" +USER_AGENT = "nixpkgs-fetchCargoVendor/2 (https://github.com/NixOS/nixpkgs)" + eprint = functools.partial(print, file=sys.stderr) -def load_toml(path: Path) -> dict[str, Any]: - with open(path, "rb") as f: - return tomllib.load(f) +@dataclass +class RegistrySource: + raw: str + url: str + is_sparse: bool + ind: int = field(init=False) -def get_lockfile_version(cargo_lock_toml: dict[str, Any]) -> int: - # lockfile v1 and v2 don't have the `version` key, so assume v2 - version = cargo_lock_toml.get("version", 2) - - # TODO: add logic for differentiating between v1 and v2 - - return version +@dataclass +class RegistryPackage: + name: str + version: str + source: RegistrySource + checksum: str -def create_http_session() -> requests.Session: +GIT_SOURCE_REGEX = re.compile(r"git\+(?P[^?]+)(\?(?Prev|tag|branch)=(?P.*))?#(?P.*)") + + +@dataclass +class GitSource: + raw: str + url: str + type: str | None + value: str | None + git_sha_rev: str + ind: int = field(init=False) + + +@dataclass +class GitPackage: + name: str + version: str + source: GitSource + + +Source = RegistrySource | GitSource +Package = RegistryPackage | GitPackage + + +@dataclass +class Lockfile: + version: int + sources: list[Source] + packages: list[Package] + + +def parse_git_source(raw_source: str, lockfile_version: int) -> GitSource: + match = GIT_SOURCE_REGEX.match(raw_source) + if match is None: + raise Exception(f"Unable to process git source: {raw_source}.") + + parsed_dict = match.groupdict(default=None) + url = cast(str, parsed_dict["url"]) + git_sha_rev = cast(str, parsed_dict["git_sha_rev"]) + + source = GitSource(raw_source, url, parsed_dict["type"], parsed_dict["value"], git_sha_rev) + + # the source URL is URL-encoded in lockfile_version >=4 + # since we just used regex to parse it we have to manually decode the escaped branch/tag name + if lockfile_version >= 4 and source.value is not None: + source.value = unquote(source.value) + + return source + + +def parse_source(raw_source: str, lockfile_version: int) -> Source: + if raw_source.startswith("git+"): + return parse_git_source(raw_source, lockfile_version) + elif raw_source.startswith("registry+"): + return RegistrySource(raw=raw_source, url=raw_source[9:], is_sparse=False) + elif raw_source.startswith("sparse+"): + return RegistrySource(raw=raw_source, url=raw_source[7:].rstrip("/"), is_sparse=True) + raise Exception(f"Cannot process source: {raw_source}") + + +def load_lockfile(path: Path) -> Lockfile: + with path.open("rb") as f: + cargo_lock_toml = tomllib.load(f) + + # The `version` key missing means either lockfile v1 or v2. We assume v2 for now. + lockfile_version = cargo_lock_toml.get("version", 2) + + raw_packages: list[dict[str, str]] = cargo_lock_toml["package"] + + sources: list[Source] = [] + raw_source_to_source: dict[str, Source] = {} + + # we'll mark every source with an index in order of appearance + # both git and registry sources have a different incrementing index + # we reserve registry index 0 for both of the default crates-io registries + + for raw_source in ["registry+https://github.com/rust-lang/crates.io-index", "sparse+https://index.crates.io/"]: + source = parse_source(raw_source, lockfile_version) + source.ind = 0 + sources.append(source) + raw_source_to_source[source.raw] = source + + next_registry_ind = 1 + next_git_ind = 0 + + git_selector_tuple_to_git_ind: dict[tuple[str, str | None, str | None], int] = {} + + for raw_pkg in raw_packages: + raw_source = raw_pkg.get("source", None) + if raw_source is None: # Skip local dependencies + continue + if raw_source in raw_source_to_source: + continue + + source = parse_source(raw_source, lockfile_version) + match source: + case RegistrySource(): + source.ind = next_registry_ind + next_registry_ind += 1 + case GitSource(): + # git sources may get the same `ind` value if their selectors match + tup = (source.url, source.type, source.value) + if tup not in git_selector_tuple_to_git_ind: + git_selector_tuple_to_git_ind[tup] = next_git_ind + next_git_ind += 1 + source.ind = git_selector_tuple_to_git_ind[tup] + + sources.append(source) + raw_source_to_source[source.raw] = source + + packages: list[Package] = [] + + for raw_pkg in raw_packages: + name = raw_pkg["name"] + version = raw_pkg["version"] + raw_source = raw_pkg.get("source", None) + if raw_source is None: # Skip local dependencies + continue + source = raw_source_to_source[raw_source] + + match source: + case RegistrySource(): + checksum = raw_pkg.get("checksum", None) + + # lockfile v1 has the checksum values in a separate metadata table + if checksum is None: + lockfile_version = 1 + checksum_key = f"checksum {name} {version} ({source.raw})" + checksum = cargo_lock_toml["metadata"][checksum_key] + + pkg = RegistryPackage(name, version, source, checksum) + case GitSource(): + pkg = GitPackage(name, version, source) + + packages.append(pkg) + + return Lockfile(lockfile_version, sources, packages) + + +_local = threading.local() + + +def get_session() -> Session: + if hasattr(_local, "session"): + return _local.session + retries = Retry( - total=5, - backoff_factor=0.5, + total=RETRY_COUNT, + backoff_factor=BACKOFF_FACTOR, status_forcelist=[500, 502, 503, 504] ) - session = requests.Session() - session.headers["User-Agent"] = "nixpkgs-fetchCargoVendor/2 (https://github.com/NixOS/nixpkgs)" + session = Session() + session.headers["User-Agent"] = USER_AGENT session.mount('http://', HTTPAdapter(max_retries=retries)) session.mount('https://', HTTPAdapter(max_retries=retries)) + + _local.session = session return session -def download_file_with_checksum(session: requests.Session, url: str, destination_path: Path) -> str: +def download_file_with_checksum(url: str, destination_path: Path) -> str: + session = get_session() sha256_hash = hashlib.sha256() - with session.get(url, stream=True) as response: - if not response.ok: - raise Exception(f"Failed to fetch file from {url}. Status code: {response.status_code}") - with open(destination_path, "wb") as file: + with session.get(url, stream=True, timeout=TIMEOUT) as response: + response.raise_for_status() + with destination_path.open("wb") as file: for chunk in response.iter_content(1024): # Download in chunks if chunk: # Filter out keep-alive chunks file.write(chunk) @@ -62,117 +228,157 @@ def download_file_with_checksum(session: requests.Session, url: str, destination return checksum -def get_download_url_for_tarball(pkg: dict[str, Any]) -> str: - # TODO: support other registries - # maybe fetch config.json from the registry root and get the dl key - # See: https://doc.rust-lang.org/cargo/reference/registry-index.html#index-configuration - if pkg["source"] != "registry+https://github.com/rust-lang/crates.io-index": - raise Exception("Only the default crates.io registry is supported.") +# Fetch the config.json file and get the .dl key from it +# See: https://doc.rust-lang.org/cargo/reference/registry-index.html#index-configuration +def fetch_dl_for_registry_source(source: RegistrySource) -> str: + # We hardcode the .dl value for crates-io registries to avoid having to clone the git repo, saving a few seconds + if source.ind == 0: + return "https://static.crates.io/crates" - # Use static.crates.io (CDN) instead of crates.io/api to avoid the 1 req/sec - # rate limit on the API servers. - return f"https://static.crates.io/crates/{pkg["name"]}/{pkg["version"]}/download" + eprint(f'Fetching .dl value for registry "{source.url}"') + if source.is_sparse: + url = source.url + "/config.json" + + # https://doc.rust-lang.org/cargo/reference/registry-web-api.html#web-api + headers = { + "Content-Type": "application/json", + "Accept": "application/json", + } + + session = get_session() + with session.get(url, headers=headers, timeout=TIMEOUT) as response: + response.raise_for_status() + registry_config: dict[str, str] = response.json() + else: + tmp_dir = Path(tempfile.mkdtemp()) + # use spare-checkout to only get the config.json file from the registry's git repo + # --quiet is deliberately not used to be able to debug if something goes wrong + cmd = ["nix-prefetch-git", "--builder", "--url", source.url, "--rev", "HEAD", "--sparse-checkout", "config.json", "--out", str(tmp_dir)] + subprocess.check_output(cmd) + with (tmp_dir / "config.json").open("rb") as f: + registry_config: dict[str, str] = json.load(f) + + dl = registry_config["dl"] + + auth_required = registry_config.get("auth-required", False) + if auth_required: + raise Exception(f'Registry "{source.url}" requires authentication, but it is not yet implemented!') + + return dl -def download_tarball(session: requests.Session, pkg: dict[str, Any], out_dir: Path) -> None: +# See: https://doc.rust-lang.org/cargo/reference/registry-index.html#index-files +def name_to_prefix(name: str) -> str: + nl = len(name) + if nl <= 2: + return str(nl) + if nl == 3: + return "3/" + name[0] + return name[0:2] + "/" + name[2:4] - url = get_download_url_for_tarball(pkg) - filename = f"{pkg["name"]}-{pkg["version"]}.tar.gz" - # TODO: allow legacy checksum specification, see importCargoLock for example - # also, don't forget about the other usage of the checksum - expected_checksum = pkg["checksum"] +# See: https://doc.rust-lang.org/cargo/reference/registry-index.html#index-configuration +def make_download_url_for_tarball(pkg: RegistryPackage, dl: str) -> str: + # Assume default substitutions if no substitutions are specified + url = dl if "}" in dl else dl + "/{crate}/{version}/download" - tarball_out_dir = out_dir / "tarballs" / filename - eprint(f"Fetching {url} -> tarballs/{filename}") + prefix = name_to_prefix(pkg.name) + url = url.replace("{crate}", pkg.name) + url = url.replace("{version}", pkg.version) + url = url.replace("{prefix}", prefix) + url = url.replace("{lowerprefix}", prefix.lower()) + url = url.replace("{sha256-checksum}", pkg.checksum) + return url - calculated_checksum = download_file_with_checksum(session, url, tarball_out_dir) + +def download_crate_tarball(url: str, out_path: Path, expected_checksum: str) -> None: + out_path.parent.mkdir(parents=True, exist_ok=True) + + eprint(f"Fetching {url} -> {out_path}") + calculated_checksum = download_file_with_checksum(url, out_path) if calculated_checksum != expected_checksum: raise Exception(f"Hash mismatch! File fetched from {url} had checksum {calculated_checksum}, expected {expected_checksum}.") def download_git_tree(url: str, git_sha_rev: str, out_dir: Path) -> None: - tree_out_dir = out_dir / "git" / git_sha_rev + + # This could happen if different selectors point to the same git_sha_rev + if tree_out_dir.exists(): + eprint(f"Skipping fetching {url}#{git_sha_rev} as it has already been downloaded") + return + + tree_out_dir.mkdir(parents=True) + eprint(f"Fetching {url}#{git_sha_rev} -> git/{git_sha_rev}") cmd = ["nix-prefetch-git", "--builder", "--quiet", "--fetch-submodules", "--url", url, "--rev", git_sha_rev, "--out", str(tree_out_dir)] subprocess.check_output(cmd) -GIT_SOURCE_REGEX = re.compile("git\\+(?P[^?]+)(\\?(?Prev|tag|branch)=(?P.*))?#(?P.*)") +def make_tarball_relpath(pkg: RegistryPackage) -> Path: + # Instead of .tar.gz we could have used the .crate extension + # But we keep using .tar.gz for backwards compat + filename = f'{pkg.name}-{pkg.version}.tar.gz' + # For backwards compat, all crates.io crates (where source.ind == 0) + # are stored directly in tarballs/ + # Crates from other registries are stored in tarballs/registry-{ind}/ + if pkg.source.ind == 0: + reldir = Path("tarballs") + else: + reldir = Path("tarballs") / f"registry-{pkg.source.ind}" -class GitSourceInfo(TypedDict): - url: str - type: str | None - value: str | None - git_sha_rev: str - - -def parse_git_source(source: str, lockfile_version: int) -> GitSourceInfo: - match = GIT_SOURCE_REGEX.match(source) - if match is None: - raise Exception(f"Unable to process git source: {source}.") - - source_info = cast(GitSourceInfo, match.groupdict(default=None)) - - # the source URL is URL-encoded in lockfile_version >=4 - # since we just used regex to parse it we have to manually decode the escaped branch/tag name - if lockfile_version >= 4 and source_info["value"] is not None: - source_info["value"] = unquote(source_info["value"]) - - return source_info + return reldir / filename def create_vendor_staging(lockfile_path: Path, out_dir: Path) -> None: - cargo_lock_toml = load_toml(lockfile_path) - lockfile_version = get_lockfile_version(cargo_lock_toml) - - git_packages: list[dict[str, Any]] = [] - registry_packages: list[dict[str, Any]] = [] - - for pkg in cargo_lock_toml["package"]: - # ignore local dependenices - if "source" not in pkg.keys(): - eprint(f"Skipping local dependency: {pkg["name"]}") - continue - source = pkg["source"] - - if source.startswith("git+"): - git_packages.append(pkg) - elif source.startswith("registry+"): - registry_packages.append(pkg) - else: - raise Exception(f"Can't process source: {source}.") - - git_sha_rev_to_url: dict[str, str] = {} - for pkg in git_packages: - source_info = parse_git_source(pkg["source"], lockfile_version) - git_sha_rev_to_url[source_info["git_sha_rev"]] = source_info["url"] + lockfile = load_lockfile(lockfile_path) out_dir.mkdir(exist_ok=True) shutil.copy(lockfile_path, out_dir / "Cargo.lock") - # fetch git trees sequentially, since fetching concurrently leads to flaky behaviour - if len(git_packages) != 0: - (out_dir / "git").mkdir() - for git_sha_rev, url in git_sha_rev_to_url.items(): - download_git_tree(url, git_sha_rev, out_dir) + git_sources = [source for source in lockfile.sources if isinstance(source, GitSource)] + registry_sources = [source for source in lockfile.sources if isinstance(source, RegistrySource)] + registry_packages = [pkg for pkg in lockfile.packages if isinstance(pkg, RegistryPackage)] - # run tarball download jobs in parallel, with at most 5 concurrent download jobs - with mp.Pool(min(5, mp.cpu_count())) as pool: - if len(registry_packages) != 0: - (out_dir / "tarballs").mkdir() - session = create_http_session() - tarball_args_gen = ((session, pkg, out_dir) for pkg in registry_packages) - pool.starmap(download_tarball, tarball_args_gen) + # We fetch git trees sequentially because fetching concurrently seemed to cause flaky behaviour + for source in git_sources: + download_git_tree(source.url, source.git_sha_rev, out_dir) + + raw_registry_source_to_dl: dict[str, str] = {} + for source in registry_sources: + dl = fetch_dl_for_registry_source(source) + eprint(f'Using .dl value of "{dl}" for registry "{source.raw}"') + raw_registry_source_to_dl[source.raw] = dl + + eprint(f"Downloading crate tarballs with {MAX_WORKERS} workers...") + with ThreadPoolExecutor(max_workers=MAX_WORKERS) as executor: + futures: list[Future[None]] = [] + + for pkg in registry_packages: + dl = raw_registry_source_to_dl[pkg.source.raw] + url = make_download_url_for_tarball(pkg, dl) + + out_path = out_dir / make_tarball_relpath(pkg) + + future = executor.submit(download_crate_tarball, url, out_path, pkg.checksum) + futures.append(future) + + # fail early if a worker raises an exception + done, _ = wait(futures, return_when=FIRST_EXCEPTION) + for f in done: + e = f.exception() + if e is None: + continue + executor.shutdown(cancel_futures=True) + raise Exception(f"Failed to download tarball: {e}") def get_manifest_metadata(manifest_path: Path) -> dict[str, Any]: cmd = ["cargo", "metadata", "--format-version", "1", "--no-deps", "--manifest-path", str(manifest_path)] - output = subprocess.check_output(cmd) + output = subprocess.check_output(cmd, cwd=manifest_path.parent) return json.loads(output) @@ -244,8 +450,7 @@ def copy_and_patch_git_crate_subtree(git_tree: Path, crate_name: str, crate_out_ shutil.copytree(crate_tree, crate_out_dir, ignore=ignore_func) crate_out_dir.chmod(0o755) - with open(crate_manifest_path, "r") as f: - manifest_data = f.read() + manifest_data = crate_manifest_path.read_text() if "workspace" in manifest_data: crate_manifest_metadata = get_manifest_metadata(crate_manifest_path) @@ -268,16 +473,16 @@ def extract_crate_tarball_contents(tarball_path: Path, crate_out_dir: Path) -> N subprocess.check_output(cmd) -def make_git_source_selector(source_info: GitSourceInfo) -> dict[str, str]: +def make_git_source_selector(source: GitSource) -> dict[str, str]: selector = {} - selector["git"] = source_info["url"] - if source_info["type"] is not None: - selector[source_info["type"]] = source_info["value"] + selector["git"] = source.url + if source.type is not None: + selector[source.type] = source.value return selector -def make_registry_source_selector(source: str) -> dict[str, str]: - registry = source[9:] if source.startswith("registry+") else source +def make_registry_source_selector(source: RegistrySource) -> dict[str, str]: + registry = source.raw if source.is_sparse else source.url selector = {} selector["registry"] = registry return selector @@ -288,14 +493,9 @@ def create_vendor(vendor_staging_dir: Path, out_dir: Path) -> None: out_dir.mkdir(exist_ok=True) shutil.copy(lockfile_path, out_dir / "Cargo.lock") - cargo_lock_toml = load_toml(lockfile_path) - lockfile_version = get_lockfile_version(cargo_lock_toml) + lockfile = load_lockfile(lockfile_path) - source_to_ind: dict[str, str] = {} - selector_to_ind: dict[tuple, str] = {} source_config = {} - next_registry_ind = 0 - next_git_ind = 0 def add_source_replacement( orig_key: str, @@ -308,112 +508,96 @@ def create_vendor(vendor_staging_dir: Path, out_dir: Path) -> None: source_config[orig_key] = orig_selector source_config[orig_key]["replace-with"] = vendored_key - # we reserve registry index 0 for crates-io - source_to_ind["registry+https://github.com/rust-lang/crates.io-index"] = "registry-0" - source_to_ind["sparse+https://index.crates.io/"] = "registry-0" add_source_replacement( orig_key="crates-io", orig_selector={}, # there is an internal selector defined for the `crates-io` source vendored_key="vendored-source-registry-0", vendored_dir="@vendor@/source-registry-0" ) - next_registry_ind += 1 - for pkg in cargo_lock_toml["package"]: - # ignore local dependencies - if "source" not in pkg.keys(): - continue - source: str = pkg["source"] - if source in source_to_ind: - continue + processed_git_inds = set() - if source.startswith("git+"): - source_info = parse_git_source(source, lockfile_version) - selector = make_git_source_selector(source_info) - selector_key = (source_info["url"], source_info["type"], source_info["value"]) - if selector_key in selector_to_ind: - ind = selector_to_ind[selector_key] - else: - ind = f"git-{next_git_ind}" - next_git_ind += 1 - selector_to_ind[selector_key] = ind + for source in lockfile.sources: + match source: + case RegistrySource(): + if source.ind == 0: # crates-io already handled separately above + continue add_source_replacement( - orig_key=f"original-source-{ind}", - orig_selector=selector, - vendored_key=f"vendored-source-{ind}", - vendored_dir=f"@vendor@/source-{ind}" + orig_key=f"original-source-registry-{source.ind}", + orig_selector=make_registry_source_selector(source), + vendored_key=f"vendored-source-registry-{source.ind}", + vendored_dir=f"@vendor@/source-registry-{source.ind}" ) - elif source.startswith("registry+") or source.startswith("sparse+"): - ind = f"registry-{next_registry_ind}" - next_registry_ind += 1 - selector = make_registry_source_selector(source) - add_source_replacement( - orig_key=f"original-source-{ind}", - orig_selector=selector, - vendored_key=f"vendored-source-{ind}", - vendored_dir=f"@vendor@/source-{ind}" - ) - else: - raise Exception(f"Can't process source: {source}.") + case GitSource(): + # In some cases multiple git sources can have the same selector, thus the same git ind + # but source replacements can't be made for the same selector multiple times + if source.ind in processed_git_inds: + continue + processed_git_inds.add(source.ind) - source_to_ind[source] = ind + add_source_replacement( + orig_key=f"original-source-git-{source.ind}", + orig_selector=make_git_source_selector(source), + vendored_key=f"vendored-source-git-{source.ind}", + vendored_dir=f"@vendor@/source-git-{source.ind}" + ) config_path = out_dir / ".cargo" / "config.toml" config_path.parent.mkdir() - with open(config_path, "wb") as config_file: + with config_path.open("wb") as config_file: tomli_w.dump({"source": source_config}, config_file) - for pkg in cargo_lock_toml["package"]: + for pkg in lockfile.packages: + match pkg: + case RegistryPackage(): + crate_out_dir = out_dir / f"source-registry-{pkg.source.ind}" / f"{pkg.name}-{pkg.version}" + crate_out_dir.parent.mkdir(exist_ok=True) - # ignore local dependenices - if "source" not in pkg.keys(): - continue + tarball_path = vendor_staging_dir / make_tarball_relpath(pkg) - source: str = pkg["source"] - source_ind = source_to_ind[source] - crate_dir_name = f"{pkg["name"]}-{pkg["version"]}" - source_dir_name = f"source-{source_ind}" - crate_out_dir = out_dir / source_dir_name / crate_dir_name - crate_out_dir.parent.mkdir(exist_ok=True) + extract_crate_tarball_contents(tarball_path, crate_out_dir) - if source.startswith("git+"): + # non-git based crates need the package checksum at minimum + with (crate_out_dir / ".cargo-checksum.json").open("w") as f: + json.dump({"files": {}, "package": pkg.checksum}, f) - source_info = parse_git_source(source, lockfile_version) + case GitPackage(): + crate_out_dir = out_dir / f"source-git-{pkg.source.ind}" / f"{pkg.name}-{pkg.version}" + crate_out_dir.parent.mkdir(exist_ok=True) - git_sha_rev = source_info["git_sha_rev"] - git_tree = vendor_staging_dir / "git" / git_sha_rev + if crate_out_dir.exists(): + raise Exception( + f"{crate_out_dir} already exists!\n" + "This likely due to multiple packages having the same name, version and git selector, but not the same locked git revision\n" + "As a workaround, change all conflicting packages to have different git selectors\n" + "e.g. specifying an exact rev= selector for each affected package in both Cargo.toml and Cargo.lock\n" + "If it is not possible or difficult to do so (e.g. it's a transient dependency), as a hack, you could also consider keeping\n" + "the package with the most up-to-date revision and removing all other duplicated entries from Cargo.lock" + ) - copy_and_patch_git_crate_subtree(git_tree, pkg["name"], crate_out_dir) + git_sha_rev = pkg.source.git_sha_rev + git_tree = vendor_staging_dir / "git" / git_sha_rev - # git based crates allow having no checksum information - with open(crate_out_dir / ".cargo-checksum.json", "w") as f: - json.dump({"files": {}}, f) + copy_and_patch_git_crate_subtree(git_tree, pkg.name, crate_out_dir) - elif source.startswith("registry+") or source.startswith("sparse+"): - filename = f"{pkg["name"]}-{pkg["version"]}.tar.gz" - - # TODO: change this when non-crates-io registries are supported - dir_name = "tarballs" - - tarball_path = vendor_staging_dir / dir_name / filename - - extract_crate_tarball_contents(tarball_path, crate_out_dir) - - # non-git based crates need the package checksum at minimum - with open(crate_out_dir / ".cargo-checksum.json", "w") as f: - json.dump({"files": {}, "package": pkg["checksum"]}, f) - - else: - raise Exception(f"Can't process source: {source}.") + # git based crates allow having no checksum information + with (crate_out_dir / ".cargo-checksum.json").open("w") as f: + json.dump({"files": {}}, f) def main() -> None: subcommand = sys.argv[1] subcommand_func_dict = { - "create-vendor-staging": lambda: create_vendor_staging(lockfile_path=Path(sys.argv[2]), out_dir=Path(sys.argv[3])), - "create-vendor": lambda: create_vendor(vendor_staging_dir=Path(sys.argv[2]), out_dir=Path(sys.argv[3])) + "create-vendor-staging": lambda: create_vendor_staging( + lockfile_path=Path(sys.argv[2]), + out_dir=Path(sys.argv[3]) + ), + "create-vendor": lambda: create_vendor( + vendor_staging_dir=Path(sys.argv[2]), + out_dir=Path(sys.argv[3]) + ) } subcommand_func = subcommand_func_dict.get(subcommand) diff --git a/pkgs/build-support/rust/hooks/cargo-setup-hook.sh b/pkgs/build-support/rust/hooks/cargo-setup-hook.sh index 4ba6760a1a23..6cafeef0e3d1 100644 --- a/pkgs/build-support/rust/hooks/cargo-setup-hook.sh +++ b/pkgs/build-support/rust/hooks/cargo-setup-hook.sh @@ -8,6 +8,11 @@ cargoSetupPostUnpackHook() { # it writable. If we're using a tarball, the unpackFile hook already handles # this for us automatically. if [ -z $cargoVendorDir ]; then + if [ -z "$cargoDeps" ]; then + echo "ERROR: Missing cargoDeps" + exit 1 + fi + if [ -d "$cargoDeps" ]; then local dest=$(stripHash "$cargoDeps") cp -Lr --reflink=auto -- "$cargoDeps" "$dest" @@ -86,6 +91,77 @@ cargoSetupPostPatchHook() { echo "Finished cargoSetupPostPatchHook" } +cargoUseSystemLibs() { + # Sentinel directory that doesn't exist. For packages + # Where you tell it directories, but can't force it to only + # use system libraries + # + # Note that this isn't perfect, as some have fallbacks if their probing fails. + local -r sentinel_dir="$(mktemp -du nixpkgs.XXXX)/use/system/library" + + # https://docs.rs/system-deps/8.0.0/system_deps/#internally-build-system-libraries + export SYSTEM_DEPS_BUILD_INTERNAL="never" + + # https://github.com/aws/aws-lc-rs/blob/741dbf573a64b6a1e1e6b7c1131a0f8153a28441/aws-lc-sys/README.md#automatic-detection + export AWS_LC_SYS_USE_SYSTEM="1" + + # https://github.com/rust-openssl/rust-openssl/blob/b46d5ec06144795e8f9e118c44bebd392956917a/openssl-sys/build/main.rs#L53 + export OPENSSL_NO_VENDOR="1" + + # 1 = Links statically to the vendored one + # 0 = Use pkg-config + # https://github.com/rust-lang/libz-sys/blob/2ce3271849d85329b668e0bac9f21427ecf8aef9/build.rs#L256 + export LIBZ_SYS_STATIC="0" + + # https://github.com/rusqlite/rusqlite/blob/db83b9b08d9cab73f912501eefb8df7b100acd7d/libsqlite3-sys/build.rs#L53 + export LIBSQLITE3_SYS_USE_PKG_CONFIG="1" + + # https://github.com/gyscos/zstd-rs/blob/ad18ca4e275aed9acc3087d7c1c65d03ab67ad6e/zstd-safe/zstd-sys/build.rs#L279 + export ZSTD_SYS_USE_PKG_CONFIG="1" + + # https://github.com/rust-lang/git2-rs/blob/a00922bcdf0f78419aa5dd0d3643e73ce01672a8/libgit2-sys/build.rs#L95 + export LIBGIT2_NO_VENDOR="1" + + # https://github.com/sodiumoxide/sodiumoxide/blob/3057acb1a030ad86ed8892a223d64036ab5e8523/libsodium-sys/build.rs#L34 + export SODIUM_USE_PKG_CONFIG="1" + + # https://github.com/rust-onig/rust-onig/blob/73e63eb3eea6d93d24a4aadf7fea580287750c7d/onig_sys/build.rs#L250 + export RUSTONIG_SYSTEM_LIBONIG="1" + + # https://github.com/rust-lang/ssh2-rs/blob/0a11bdd4eecf4525e540c30f14b15ab1c07194b7/libssh2-sys/build.rs#L23 + export LIBSSH2_SYS_USE_PKG_CONFIG="1" + + # We can only supply the src dir. + # https://github.com/nginx/ngx-rust/tree/main/nginx-sys#input-variables + # Since we don't want to pull it in for every build, we set it to a dummy value + # in all builds, but lets the user set it via `env.NGINX_SOURCE_DIR = nginx.src` + export NGINX_SOURCE_DIR="${NGINX_SOURCE_DIR:-"$sentinel_dir/nginx/src"}" + + # We can only supply the lib and include dirs + # https://github.com/duckdb/duckdb-rs/blob/ea700a79534c8e8c22a9ac685135f15c31de91d3/crates/libduckdb-sys/build.rs#L203 + # Set to sentinel by default again + # There is also a DUCKDB_LIB_DIR var, but I think only one needs to be set. + export DUCKDB_DOWNLOAD_LIB="0" + export DUCKDB_INCLUDE_DIR="${DUCKDB_INCLUDE_DIR:-"$sentinel_dir/duckdb/include"}" + + # https://github.com/tikv/jemallocator/blob/a181911517adff5331e43dfd9804086f7c392a25/jemalloc-sys/build.rs#L132 + export JEMALLOC_OVERRIDE="${JEMALLOC_OVERRIDE:-"$sentinel_dir/lib/libjemalloc"}" +} + +# Cargo defaults to one job per host CPU. Limit builds that invoke Cargo +# directly (e.g. through Meson or Make) to NIX_BUILD_CORES, like cargoBuildHook. +# This runs in a phase because stdenv normalizes NIX_BUILD_CORES after +# sourcing setup hooks. +cargoSetupBuildJobs() { + export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-$NIX_BUILD_CORES}" +} + +postUnpackHooks+=(cargoSetupBuildJobs) + +if [[ -z "${dontCargoUseSystemLibs-}" ]]; then + preConfigureHooks+=(cargoUseSystemLibs) +fi + if [ -z "${dontCargoSetupPostUnpack-}" ]; then postUnpackHooks+=(cargoSetupPostUnpackHook) fi diff --git a/pkgs/build-support/rust/import-cargo-lock.nix b/pkgs/build-support/rust/import-cargo-lock.nix index 28588cd54ed0..206732840ac4 100644 --- a/pkgs/build-support/rust/import-cargo-lock.nix +++ b/pkgs/build-support/rust/import-cargo-lock.nix @@ -187,13 +187,18 @@ let let crateTarball = fetchCrate pkg registries.${registryIndexUrl}; in - runCommand "${pkg.name}-${pkg.version}" { } '' - mkdir $out - tar xf "${crateTarball}" -C $out --strip-components=1 + runCommand "${pkg.name}-${pkg.version}" + { + strictDeps = true; + __structuredAttrs = true; + } + '' + mkdir $out + tar xf "${crateTarball}" -C $out --strip-components=1 - # Cargo is happy with largely empty metadata. - printf '{"files":{},"package":"${crateTarball.outputHash}"}' > "$out/.cargo-checksum.json" - '' + # Cargo is happy with largely empty metadata. + printf '{"files":{},"package":"${crateTarball.outputHash}"}' > "$out/.cargo-checksum.json" + '' else if gitParts != null then let missingHash = throw '' @@ -224,66 +229,71 @@ let else missingHash; in - runCommand "${pkg.name}-${pkg.version}" { } '' - tree=${tree} + runCommand "${pkg.name}-${pkg.version}" + { + strictDeps = true; + __structuredAttrs = true; + } + '' + tree=${tree} - # If the target package is in a workspace, or if it's the top-level - # crate, we should find the crate path using `cargo metadata`. - # Some packages do not have a Cargo.toml at the top-level, - # but only in nested directories. - # Only check the top-level Cargo.toml, if it actually exists - if [[ -f $tree/Cargo.toml ]]; then - crateCargoTOML=$(${cargo}/bin/cargo metadata --format-version 1 --no-deps --manifest-path $tree/Cargo.toml | \ - ${jq}/bin/jq -r '.packages[] | select(.name == "${pkg.name}") | .manifest_path') - fi - - # If the repository is not a workspace the package might be in a subdirectory. - if [[ -z $crateCargoTOML ]]; then - for manifest in $(find $tree -name "Cargo.toml"); do - echo Looking at $manifest - crateCargoTOML=$(${cargo}/bin/cargo metadata --format-version 1 --no-deps --manifest-path "$manifest" | ${jq}/bin/jq -r '.packages[] | select(.name == "${pkg.name}") | .manifest_path' || :) - if [[ ! -z $crateCargoTOML ]]; then - break - fi - done - - if [[ -z $crateCargoTOML ]]; then - >&2 echo "Cannot find path for crate '${pkg.name}-${pkg.version}' in the tree in: $tree" - exit 1 + # If the target package is in a workspace, or if it's the top-level + # crate, we should find the crate path using `cargo metadata`. + # Some packages do not have a Cargo.toml at the top-level, + # but only in nested directories. + # Only check the top-level Cargo.toml, if it actually exists + if [[ -f $tree/Cargo.toml ]]; then + crateCargoTOML=$(cd "$tree" && ${cargo}/bin/cargo metadata --format-version 1 --no-deps --manifest-path $tree/Cargo.toml | \ + ${jq}/bin/jq -r '.packages[] | select(.name == "${pkg.name}") | .manifest_path') fi - fi - echo Found crate ${pkg.name} at $crateCargoTOML - tree=$(dirname $crateCargoTOML) + # If the repository is not a workspace the package might be in a subdirectory. + if [[ -z $crateCargoTOML ]]; then + for manifest in $(find $tree -name "Cargo.toml"); do + echo Looking at $manifest + crateCargoTOML=$(cd "$(dirname "$manifest")" && ${cargo}/bin/cargo metadata --format-version 1 --no-deps --manifest-path "$manifest" | ${jq}/bin/jq -r '.packages[] | select(.name == "${pkg.name}") | .manifest_path' || :) + if [[ ! -z $crateCargoTOML ]]; then + break + fi + done - cp -prvL "$tree" "$out" || echo "Warning: certain files couldn't be copied!" >&2 - chmod u+w $out + if [[ -z $crateCargoTOML ]]; then + >&2 echo "Cannot find path for crate '${pkg.name}-${pkg.version}' in the tree in: $tree" + exit 1 + fi + fi - if grep -q workspace "$out/Cargo.toml"; then - chmod u+w "$out/Cargo.toml" - ${replaceWorkspaceValues} "$out/Cargo.toml" "$(${cargo}/bin/cargo metadata --format-version 1 --no-deps --manifest-path $crateCargoTOML | ${jq}/bin/jq -r .workspace_root)/Cargo.toml" - fi + echo Found crate ${pkg.name} at $crateCargoTOML + tree=$(dirname $crateCargoTOML) - # Cargo is happy with empty metadata. - printf '{"files":{},"package":null}' > "$out/.cargo-checksum.json" + cp -prvL "$tree" "$out" || echo "Warning: certain files couldn't be copied!" >&2 + chmod u+w $out - ${optionalString (gitParts ? type) '' - gitPartsValue=${escapeShellArg gitParts.value} - # starting with lockfile version v4 the git source url contains encoded query parameters - # our regex parser does not know how to unescape them to get the actual value, so we do it here - ${optionalString (lockFileVersion >= 4) '' - gitPartsValue=$(${getExe python3Packages.python} -c "import sys, urllib.parse; print(urllib.parse.unquote(sys.argv[1]))" "$gitPartsValue") + if grep -q workspace "$out/Cargo.toml"; then + chmod u+w "$out/Cargo.toml" + ${replaceWorkspaceValues} "$out/Cargo.toml" "$(cd "$tree" && ${cargo}/bin/cargo metadata --format-version 1 --no-deps --manifest-path $crateCargoTOML | ${jq}/bin/jq -r .workspace_root)/Cargo.toml" + fi + + # Cargo is happy with empty metadata. + printf '{"files":{},"package":null}' > "$out/.cargo-checksum.json" + + ${optionalString (gitParts ? type) '' + gitPartsValue=${escapeShellArg gitParts.value} + # starting with lockfile version v4 the git source url contains encoded query parameters + # our regex parser does not know how to unescape them to get the actual value, so we do it here + ${optionalString (lockFileVersion >= 4) '' + gitPartsValue=$(${getExe python3Packages.python} -c "import sys, urllib.parse; print(urllib.parse.unquote(sys.argv[1]))" "$gitPartsValue") + ''} ''} - ''} - # Set up configuration for the vendor directory. - cat > $out/.cargo-config < $out/.cargo-config <> "$wrapper" - elif [[ ("$p" == "--suffix") || ("$p" == "--prefix") ]]; then + elif [[ ("$p" == "--suffix") || ("$p" == "--prefix") || ("$p" == "--suffix-unchecked") || ("$p" == "--prefix-unchecked") ]]; then varName="${params[$((n + 1))]}" separator="${params[$((n + 2))]}" value="${params[$((n + 3))]}" diff --git a/pkgs/build-support/wrapper-common/utils.bash b/pkgs/build-support/wrapper-common/utils.bash index c9870d1b4d41..0d3864a9c664 100644 --- a/pkgs/build-support/wrapper-common/utils.bash +++ b/pkgs/build-support/wrapper-common/utils.bash @@ -150,6 +150,67 @@ expandResponseParams() { done } +# Resolve the path $1 of a library directory, which like the linker +# takes a relative path from the working directory, to the directory the +# linker searches, as far as needed to tell whether it is in the store, +# and where. Like the kernel, follow each symlink before going on to the +# next component, so that symlinks in ancestor directories count, and `..` +# applies to the target of a symlink rather than removing it. But in the +# store, keep symlinks that are not followed by `..` as they are, since +# resolving symlinks between store paths would refer to their targets +# instead (see issue #454199). The result is stored in resolvedPath. +# Fails if there are too many symlinks. +resolveLibDir() { + local rest="$1/" component link target links=0 + # The common case: a path in the store with no `.`, `..` or empty + # components is already resolved, since it has no symlink to follow. + if [[ "$1" == "${NIX_STORE:-}"/* && "$1/" != */./* && "$1/" != */../* && "$1/" != *//* ]]; then + resolvedPath="$1" + return + fi + if [[ "$rest" != /* ]]; then + rest="$PWD/$rest" + fi + resolvedPath= + while [[ -n "$rest" ]]; do + component="${rest%%/*}" + rest="${rest#*/}" + case "$component" in + "" | .) continue ;; + ..) + if [[ -L "$resolvedPath" ]]; then + # Follow it, then apply this `..` to its target. + link="$resolvedPath" + resolvedPath="${resolvedPath%/*}" + rest="../$rest" + else + resolvedPath="${resolvedPath%/*}" + continue + fi + ;; + *) + link="$resolvedPath/$component" + # Keep a symlink in the store unless `..` follows it, and + # never resolve the store or its ancestors, which may be + # symlinks (NIX_IGNORE_SYMLINK_STORE). + if [[ "$link" == "${NIX_STORE:-}"/* || "${NIX_STORE:-}/" == "$link"/* || ! -L "$link" ]]; then + resolvedPath="$link" + continue + fi + ;; + esac + (( ++links <= 40 )) || return 1 + target=$(readlink "$link") || return 1 + # A relative target is relative to the directory containing the + # link, which is now resolvedPath. + if [[ "$target" == /* ]]; then + resolvedPath= + fi + rest="$target/$rest" + done + resolvedPath="${resolvedPath:-/}" +} + checkLinkType() { local arg type="dynamic" diff --git a/pkgs/by-name/_7/_7kaa/package.nix b/pkgs/by-name/_7/_7kaa/package.nix index cad0e77f4535..01484e610084 100644 --- a/pkgs/by-name/_7/_7kaa/package.nix +++ b/pkgs/by-name/_7/_7kaa/package.nix @@ -66,7 +66,7 @@ gccStdenv.mkDerivation (finalAttrs: { autoupdate ''; - hardeningDisable = lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [ + hardeningDisable = lib.optionals stdenv.hostPlatform.isDarwin [ "stackprotector" ]; diff --git a/pkgs/by-name/_9/_9base/package.nix b/pkgs/by-name/_9/_9base/package.nix index fdd517414828..26bd8cf0ed4a 100644 --- a/pkgs/by-name/_9/_9base/package.nix +++ b/pkgs/by-name/_9/_9base/package.nix @@ -92,6 +92,6 @@ stdenv.mkDerivation { platforms = lib.platforms.unix; # needs additional work to support aarch64-darwin # due to usage of _DARWIN_NO_64_BIT_INODE - broken = stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin; + broken = stdenv.hostPlatform.isDarwin; }; } diff --git a/pkgs/by-name/ab/abseil-cpp_202608/package.nix b/pkgs/by-name/ab/abseil-cpp_202608/package.nix index a260160ea6b5..891b8c557dc2 100644 --- a/pkgs/by-name/ab/abseil-cpp_202608/package.nix +++ b/pkgs/by-name/ab/abseil-cpp_202608/package.nix @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, cmake, + fixDarwinDylibNames, gtest, static ? stdenv.hostPlatform.isStatic, cxxStandard ? null, @@ -22,6 +23,8 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "dev" + # Test helper libraries linking against GoogleTest + "testing" ]; cmakeFlags = [ @@ -35,10 +38,22 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ]; buildInputs = [ gtest ]; + postInstall = '' + for lib in scoped_mock_log status_matchers; do + moveToOutput "lib/libabsl_$lib.*" "$testing" + substituteInPlace $out/lib/cmake/absl/abslTargets-*.cmake \ + --replace-fail "$out/lib/libabsl_$lib." "$testing/lib/libabsl_$lib." + substituteInPlace "$out/lib/pkgconfig/absl_$lib.pc" \ + --replace-fail "libdir=$out/lib" "libdir=$testing/lib" + done + ''; + + outputChecks.out.disallowedRequisites = [ gtest ]; + __structuredAttrs = true; meta = { diff --git a/pkgs/by-name/ac/aclpubcheck/package.nix b/pkgs/by-name/ac/aclpubcheck/package.nix index a7da380bbe13..a358aaefa490 100644 --- a/pkgs/by-name/ac/aclpubcheck/package.nix +++ b/pkgs/by-name/ac/aclpubcheck/package.nix @@ -17,8 +17,6 @@ python3Packages.buildPythonApplication { hash = "sha256-s9kegTZOZEgGx0Yj8jOfzAyjyy1EuabOybMDBoodRvo="; }; - __structuredAttrs = true; - build-system = with python3Packages; [ setuptools ]; diff --git a/pkgs/by-name/ac/acpica-tools/package.nix b/pkgs/by-name/ac/acpica-tools/package.nix index 4271e2057e39..6c789e80bb02 100644 --- a/pkgs/by-name/ac/acpica-tools/package.nix +++ b/pkgs/by-name/ac/acpica-tools/package.nix @@ -45,9 +45,7 @@ stdenv.mkDerivation (finalAttrs: { # ACPICA emits packed structs that produce unaligned pointers. Apple's # arm64 linker rejects these under chained fixups; opt back into the # legacy fixup format so the link succeeds. - NIX_LDFLAGS = lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 - ) "-no_fixup_chains"; + NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-no_fixup_chains"; # i686 builds fail with hardening enabled (due to -Wformat-overflow). Disable # -Werror altogether to make this derivation less fragile to toolchain diff --git a/pkgs/by-name/ad/adguardian/package.nix b/pkgs/by-name/ad/adguardian/package.nix index f26cdfe19642..372600e0adbe 100644 --- a/pkgs/by-name/ad/adguardian/package.nix +++ b/pkgs/by-name/ad/adguardian/package.nix @@ -2,6 +2,8 @@ lib, rustPlatform, fetchFromGitHub, + pkg-config, + aws-lc, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -18,6 +20,14 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-uch2JKnskO5W8EPK877qL0aQQ+iInHJoCrrhZbmoVRs="; + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + aws-lc + ]; + meta = { description = "Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance"; mainProgram = "adguardian"; diff --git a/pkgs/by-name/ad/adpathfinder/package.nix b/pkgs/by-name/ad/adpathfinder/package.nix index 223fcfafc5b6..97f6d093b074 100644 --- a/pkgs/by-name/ad/adpathfinder/package.nix +++ b/pkgs/by-name/ad/adpathfinder/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "NetSPI"; repo = "AD-PathFinder"; diff --git a/pkgs/by-name/ad/adscan/package.nix b/pkgs/by-name/ad/adscan/package.nix index f45f2beae855..f01a7ed9d1ac 100644 --- a/pkgs/by-name/ad/adscan/package.nix +++ b/pkgs/by-name/ad/adscan/package.nix @@ -18,8 +18,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { version = "13.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ADScanPro"; repo = "adscan"; diff --git a/pkgs/by-name/ad/advi/package.nix b/pkgs/by-name/ad/advi/package.nix index f844644a8149..5ac2149eb244 100644 --- a/pkgs/by-name/ad/advi/package.nix +++ b/pkgs/by-name/ad/advi/package.nix @@ -16,9 +16,9 @@ let case "$1 $2" in "config var") case "$3" in - man) echo "$out/share/man";; + man) echo "''${man:-$out}/share/man";; etc) echo "$out/etc";; - doc) echo "$out/share/doc";; + doc) echo "''${doc:-$out}/share/doc";; share) echo "$out/share";; prefix) echo "$out";; *) echo "fake-opam does not understand arguments: $@" ; exit 1 ;; @@ -46,7 +46,7 @@ ocamlPackages.buildDunePackage rec { postPatch = '' substituteInPlace ./Makefile \ --replace "\$(DUNE) install \$(DUNEROOT) --display=short" \ - "\$(DUNE) install \$(DUNEROOT) --prefix $out --docdir $out/share/doc --mandir $out/share/man" + "\$(DUNE) install \$(DUNEROOT) --prefix $out --docdir ''${!outputDoc}/share/doc --mandir ''${!outputMan}/share/man" substituteInPlace ./src/discover.sh \ --replace 'gs_path=$(which gs)' 'gs_path=${ghostscriptX}/bin/gs' ''; diff --git a/pkgs/by-name/ad/adwaita-fonts/package.nix b/pkgs/by-name/ad/adwaita-fonts/package.nix index 494925b08e6d..e6ee6870761c 100644 --- a/pkgs/by-name/ad/adwaita-fonts/package.nix +++ b/pkgs/by-name/ad/adwaita-fonts/package.nix @@ -9,11 +9,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "adwaita-fonts"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/adwaita-fonts/${lib.versions.major finalAttrs.version}/adwaita-fonts-${finalAttrs.version}.tar.xz"; - hash = "sha256-TJJ/v+7BxQOAG6UQwslOAFTILFIs97oNO+XU1B/PXIY="; + hash = "sha256-+hBK4sG5ZYDTIvVj/+iy38pSlrDspJce/S2AEUBRI9I="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/ad/adwaita-icon-theme/package.nix b/pkgs/by-name/ad/adwaita-icon-theme/package.nix index 40d65bc2599b..77a7bf3c1414 100644 --- a/pkgs/by-name/ad/adwaita-icon-theme/package.nix +++ b/pkgs/by-name/ad/adwaita-icon-theme/package.nix @@ -14,11 +14,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "adwaita-icon-theme"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/adwaita-icon-theme/${lib.versions.major finalAttrs.version}/adwaita-icon-theme-${finalAttrs.version}.tar.xz"; - hash = "sha256-+sbgQB/KcUeAVhoIG49+J8O8HbNOvaTaF1CB8msk1GA="; + hash = "sha256-ulYc88ljBaRxefpWBYVq1pXJI46gf3CTrr2bqAxOMjs="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/af/afew/package.nix b/pkgs/by-name/af/afew/package.nix index 7d677f205bbd..4a73e3afecd7 100644 --- a/pkgs/by-name/af/afew/package.nix +++ b/pkgs/by-name/af/afew/package.nix @@ -25,7 +25,6 @@ python3Packages.buildPythonApplication (finalAttrs: { python3Packages.sphinxHook ]; - sphinxRoot = "docs"; sphinxBuilders = [ "html" "man" @@ -59,12 +58,6 @@ python3Packages.buildPythonApplication (finalAttrs: { "man" ]; - # Workaround for upstream packaging paths, can be removed once #573479 is resolved - postInstall = '' - sphinx-build -b man docs docs/build/man - install -Dm644 docs/build/man/*.1 -t $man/share/man/man1/ - ''; - meta = { homepage = "https://github.com/afewmail/afew"; description = "Initial tagging script for notmuch mail"; diff --git a/pkgs/by-name/ag/agentsploit/package.nix b/pkgs/by-name/ag/agentsploit/package.nix index a3763842dff1..0c27f7265a80 100644 --- a/pkgs/by-name/ag/agentsploit/package.nix +++ b/pkgs/by-name/ag/agentsploit/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.7.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "agentsploit"; repo = "agentsploit"; @@ -52,6 +50,7 @@ python3Packages.buildPythonApplication (finalAttrs: { disabledTestPaths = [ # Tests need network access + "tests/unit/test_openai_adapter.py" "tests/integration/" ]; diff --git a/pkgs/by-name/al/albyhub/ldk-node/default.nix b/pkgs/by-name/al/albyhub/ldk-node/default.nix index d1ae446b85bf..b197dc46a767 100644 --- a/pkgs/by-name/al/albyhub/ldk-node/default.nix +++ b/pkgs/by-name/al/albyhub/ldk-node/default.nix @@ -4,6 +4,7 @@ fetchFromGitHub, cmake, llvmPackages, + sqlite, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -30,6 +31,8 @@ rustPlatform.buildRustPackage (finalAttrs: { rustPlatform.bindgenHook ]; + buildInputs = [ sqlite ]; + # Add CFLAGS to suppress the stringop-overflow error during aws-lc-sys compilation. NIX_CFLAGS_COMPILE = "-Wno-error=stringop-overflow"; diff --git a/pkgs/by-name/ap/apache-airflow/python-package.nix b/pkgs/by-name/ap/apache-airflow/python-package.nix index e5e5dc846bba..5079882c4b93 100644 --- a/pkgs/by-name/ap/apache-airflow/python-package.nix +++ b/pkgs/by-name/ap/apache-airflow/python-package.nix @@ -397,8 +397,6 @@ buildPythonPackage ( pname = "apache-airflow"; version = "3.3.2"; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "apache"; repo = "airflow"; diff --git a/pkgs/by-name/ap/apm-cli/package.nix b/pkgs/by-name/ap/apm-cli/package.nix index c5213617f6a6..b77642aefbd9 100644 --- a/pkgs/by-name/ap/apm-cli/package.nix +++ b/pkgs/by-name/ap/apm-cli/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.35.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "microsoft"; repo = "apm"; diff --git a/pkgs/by-name/ap/apt-swarm/package.nix b/pkgs/by-name/ap/apt-swarm/package.nix index 0e18c15d8bac..45a8ad0ccc73 100644 --- a/pkgs/by-name/ap/apt-swarm/package.nix +++ b/pkgs/by-name/ap/apt-swarm/package.nix @@ -2,12 +2,16 @@ lib, fetchFromGitHub, rustPlatform, + pkg-config, + aws-lc, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "apt-swarm"; version = "0.6.1"; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "kpcyrd"; repo = "apt-swarm"; @@ -17,6 +21,10 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-Fo/+UbdfDhbAsoWjoko4tAmyDZK6tPn/0d2CjPKyaaQ="; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ aws-lc ]; + meta = { description = "Experimental p2p gossip network for OpenPGP signature transparency"; homepage = "https://github.com/kpcyrd/apt-swarm"; diff --git a/pkgs/by-name/aq/aqtinstall/package.nix b/pkgs/by-name/aq/aqtinstall/package.nix index 978f4c5e48df..13fea465917d 100644 --- a/pkgs/by-name/aq/aqtinstall/package.nix +++ b/pkgs/by-name/aq/aqtinstall/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "aqtinstall"; version = "3.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "miurahr"; diff --git a/pkgs/by-name/ar/arrow-cpp/package.nix b/pkgs/by-name/ar/arrow-cpp/package.nix index 11512ff8e5c8..076f34e74b76 100644 --- a/pkgs/by-name/ar/arrow-cpp/package.nix +++ b/pkgs/by-name/ar/arrow-cpp/package.nix @@ -172,10 +172,6 @@ stdenv.mkDerivation (finalAttrs: { "TestS3FS.*" "TestS3FSGeneric.*" "TestS3FSHTTPS.*" # Needs Minio - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # https://github.com/apache/arrow/issues/41505 - "TestAzuriteGeneric.Empty" ]; in "-${lib.concatStringsSep ":" filteredTests}"; @@ -352,8 +348,6 @@ stdenv.mkDerivation (finalAttrs: { __structuredAttrs = true; meta = { - # https://hydra.nixos.org/job/nixpkgs/unstable/arrow-cpp.x86_64-darwin/all - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; description = "Cross-language development platform for in-memory data"; homepage = "https://arrow.apache.org/docs/cpp/"; changelog = "https://arrow.apache.org/release/${finalAttrs.version}.html"; diff --git a/pkgs/by-name/ar/arti/package.nix b/pkgs/by-name/ar/arti/package.nix index df6943ce9679..2f658aeefb77 100644 --- a/pkgs/by-name/ar/arti/package.nix +++ b/pkgs/by-name/ar/arti/package.nix @@ -6,6 +6,7 @@ pkg-config, sqlite, openssl, + zstd, versionCheckHook, nix-update-script, nixosTests, @@ -39,9 +40,13 @@ rustPlatform.buildRustPackage (finalAttrs: { buildAndTestSubdir = "crates/arti"; cargoHash = "sha256-grgIqU1gw1UqeGgR4aR7cAOxBW91F12bHMgOj4pgLcY="; - nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ sqlite ] ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ]; + buildInputs = [ + sqlite + zstd + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ]; # `full` includes all stable and non-conflicting feature flags. the primary # downsides are increased binary size and memory usage for building, but diff --git a/pkgs/by-name/as/asciidoc/package.nix b/pkgs/by-name/as/asciidoc/package.nix index 00f030301e14..6568f5319bc8 100644 --- a/pkgs/by-name/as/asciidoc/package.nix +++ b/pkgs/by-name/as/asciidoc/package.nix @@ -7,7 +7,7 @@ autoreconfHook, installShellFiles, enableStandardFeatures ? false, - sourceHighlight, + source-highlight, highlight, graphviz, texliveMinimal, @@ -246,7 +246,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: { -e "s|run('convert|run('${lib.getExe' imagemagick "convert"}|g" \ -i "asciidoc/resources/filters/music/music2png.py" - sed -e 's|filter="source-highlight|filter="${sourceHighlight}/bin/source-highlight|' \ + sed -e 's|filter="source-highlight|filter="${source-highlight}/bin/source-highlight|' \ -e 's|filter="highlight|filter="${highlight}/bin/highlight|' \ -e 's|filter="pygmentize|filter="${pygments}/bin/pygmentize|' \ -i "asciidoc/resources/filters/source/source-highlight-filter.conf" @@ -283,10 +283,10 @@ python3.pkgs.buildPythonApplication (finalAttrs: { ) + '' # Fix tests - for f in $(grep -R --files-with-matches "2002-11-25") ; do - substituteInPlace $f --replace "2002-11-25" "1980-01-02" - substituteInPlace $f --replace "00:37:42" "00:00:00" - done + substituteInPlace $(grep -R --files-with-matches "2002-11-25" tests/data) \ + --replace-fail "2002-11-25" "1980-01-02" + substituteInPlace $(grep -R --files-with-matches "00:37:42" tests/data) \ + --replace-fail "00:37:42" "00:00:00" '' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' # We want to use asciidoc from the build platform to build the documentation. @@ -317,8 +317,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { runHook postCheck ''; - __structuredAttrs = true; - meta = { description = "Text-based document generation system"; longDescription = '' diff --git a/pkgs/by-name/as/asciimol/package.nix b/pkgs/by-name/as/asciimol/package.nix index 07787916cb49..b2b77aa5a529 100644 --- a/pkgs/by-name/as/asciimol/package.nix +++ b/pkgs/by-name/as/asciimol/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.2.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SqwViOnVx1TcpY8Kd5VQCg1A8KQnBhL8aq9Gsrwer3k="; diff --git a/pkgs/by-name/as/asl/package.nix b/pkgs/by-name/as/asl/package.nix index d8696bc13cf4..4bd40c3c51b7 100644 --- a/pkgs/by-name/as/asl/package.nix +++ b/pkgs/by-name/as/asl/package.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: { lib.optionalString (!buildDocs) '' substituteInPlace Makefile --replace "all: binaries docs" "all: binaries" '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace sysdefs.h --replace "x86_64" "aarch64" ''; diff --git a/pkgs/by-name/at/at-spi2-core/package.nix b/pkgs/by-name/at/at-spi2-core/package.nix index 6e7303d9b120..c7622d84165c 100644 --- a/pkgs/by-name/at/at-spi2-core/package.nix +++ b/pkgs/by-name/at/at-spi2-core/package.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "at-spi2-core"; - version = "2.60.6"; + version = "2.62.0"; outputs = [ "out" @@ -39,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/at-spi2-core/${lib.versions.majorMinor finalAttrs.version}/at-spi2-core-${finalAttrs.version}.tar.xz"; - hash = "sha256-qJtkqLIXqAQr3w41y/q2Kc7uNWQNunXfV4r96ap4nVc="; + hash = "sha256-A6lPe/NfMA2vKEOjfN82R5qRvFP1mo6kN8eeJdldHeM="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/at/attic-client/package.nix b/pkgs/by-name/at/attic-client/package.nix index ea0dcdf2cef0..675bc0f594e7 100644 --- a/pkgs/by-name/at/attic-client/package.nix +++ b/pkgs/by-name/at/attic-client/package.nix @@ -5,6 +5,8 @@ nixVersions, nixosTests, boost, + sqlite, + zstd, pkg-config, stdenv, installShellFiles, @@ -37,7 +39,14 @@ rustPlatform.buildRustPackage { installShellFiles ]; - buildInputs = lib.optional needNixInclude nix ++ [ boost ]; + buildInputs = [ + boost + ] + ++ lib.optionals needNixInclude [ nix ] + ++ lib.optionals (lib.elem "attic-server" crates) [ + sqlite + zstd + ]; cargoBuildFlags = map (c: "--package=${c}") crates; cargoHash = "sha256-UGgM78QEWJ2QgbQhxEI+yLYXH6T4ey+1oenPTMlJ3GU="; diff --git a/pkgs/by-name/au/autogen/package.nix b/pkgs/by-name/au/autogen/package.nix index 125c25bc27f6..b5485ba6515a 100644 --- a/pkgs/by-name/au/autogen/package.nix +++ b/pkgs/by-name/au/autogen/package.nix @@ -8,7 +8,7 @@ which, pkg-config, perl, - guile_2_2, + guile, libxml2, }: @@ -101,7 +101,7 @@ stdenv.mkDerivation (finalAttrs: { buildPackages.texinfo ]; buildInputs = [ - guile_2_2 + guile libxml2 ]; diff --git a/pkgs/development/tools/misc/automake/automake-1.18.x.nix b/pkgs/by-name/au/automake/package.nix similarity index 92% rename from pkgs/development/tools/misc/automake/automake-1.18.x.nix rename to pkgs/by-name/au/automake/package.nix index 1149cf78bde1..7951427e4dd3 100644 --- a/pkgs/development/tools/misc/automake/automake-1.18.x.nix +++ b/pkgs/by-name/au/automake/package.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "automake"; - version = "1.18.1"; + version = "1.19"; src = fetchurl { url = "mirror://gnu/automake/automake-${finalAttrs.version}.tar.xz"; - hash = "sha256-FoqjYyeDUbia9WaERI9SWlvOUHnQtoQr2RD90/FkaIc="; + hash = "sha256-4+LC46vzeJgTjbW2wdHcNckWDFl4vnlH0sdBcFJR1EU="; }; strictDeps = true; @@ -39,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: { __structuredAttrs = true; meta = { - branch = "1.18"; + branch = "1.19"; homepage = "https://www.gnu.org/software/automake/"; description = "GNU standard-compliant makefile generator"; license = lib.licenses.gpl2Plus; diff --git a/pkgs/development/tools/misc/automake/setup-hook.sh b/pkgs/by-name/au/automake/setup-hook.sh similarity index 100% rename from pkgs/development/tools/misc/automake/setup-hook.sh rename to pkgs/by-name/au/automake/setup-hook.sh diff --git a/pkgs/development/tools/misc/automake/automake-1.16.x.nix b/pkgs/by-name/au/automake116x/package.nix similarity index 96% rename from pkgs/development/tools/misc/automake/automake-1.16.x.nix rename to pkgs/by-name/au/automake116x/package.nix index 11ca834015a7..c9444f1a5f13 100644 --- a/pkgs/development/tools/misc/automake/automake-1.16.x.nix +++ b/pkgs/by-name/au/automake116x/package.nix @@ -4,6 +4,7 @@ fetchurl, perl, autoconf, + automake, updateAutotoolsGnuConfigScriptsHook, }: @@ -24,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ autoconf ]; - setupHook = ./setup-hook.sh; + inherit (automake) setupHook; doCheck = false; # takes _a lot_ of time, fails 3 out of 2698 tests, all seem to be related to paths doInstallCheck = false; # runs the same thing, fails the same tests diff --git a/pkgs/by-name/au/autopush-rs/package.nix b/pkgs/by-name/au/autopush-rs/package.nix index e5dfc78001f3..ce4e754939c8 100644 --- a/pkgs/by-name/au/autopush-rs/package.nix +++ b/pkgs/by-name/au/autopush-rs/package.nix @@ -24,8 +24,6 @@ let pname = "fernet_key"; inherit version src; - __structuredAttrs = true; - format = "other"; # this would run the upstream docker makefile diff --git a/pkgs/by-name/av/avalonia-ilspy/package.nix b/pkgs/by-name/av/avalonia-ilspy/package.nix index ac02744718ea..ee26e230b28a 100644 --- a/pkgs/by-name/av/avalonia-ilspy/package.nix +++ b/pkgs/by-name/av/avalonia-ilspy/package.nix @@ -51,7 +51,7 @@ buildDotnetModule rec { bintools fixDarwinDylibNames ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/aw/aw-watcher-steam/package.nix b/pkgs/by-name/aw/aw-watcher-steam/package.nix index 791bd9909a21..c3761b792fe4 100644 --- a/pkgs/by-name/aw/aw-watcher-steam/package.nix +++ b/pkgs/by-name/aw/aw-watcher-steam/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "aw-watcher-steam"; version = "0-unstable-2025-06-16"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Edwardsoen"; diff --git a/pkgs/by-name/aw/aws-lc/fix-dynamic-loading-test.patch b/pkgs/by-name/aw/aws-lc/fix-dynamic-loading-test.patch new file mode 100644 index 000000000000..b2b69c21ca4c --- /dev/null +++ b/pkgs/by-name/aw/aws-lc/fix-dynamic-loading-test.patch @@ -0,0 +1,94 @@ +diff --git i/crypto/CMakeLists.txt w/crypto/CMakeLists.txt +index 7bac21b..da56759 100644 +--- i/crypto/CMakeLists.txt ++++ w/crypto/CMakeLists.txt +@@ -895,20 +895,23 @@ if(BUILD_TESTING) + add_dependencies(${DYNAMIC_LOADING_TEST_EXEC} crypto) + set_test_location(${DYNAMIC_LOADING_TEST_EXEC}) + + set(DYNAMIC_LINKER_LIB "") + if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR APPLE OR ANDROID) + set(DYNAMIC_LINKER_LIB "dl") + endif() + + if (BUILD_SHARED_LIBS AND NOT WIN32) + target_compile_options(${DYNAMIC_LOADING_TEST_EXEC} PUBLIC "-DLIBCRYPTO_PATH=\"$\"") ++ if(BORINGSSL_PREFIX) ++ target_compile_options(${DYNAMIC_LOADING_TEST_EXEC} PUBLIC "-DSYMBOL_PREFIX=\"${BORINGSSL_PREFIX}_\"") ++ endif() + # Do not link to boringssl_gtest_main or any library that might be linked to libcrypto.so. + if(ANDROID) + target_link_libraries(${DYNAMIC_LOADING_TEST_EXEC} PUBLIC boringssl_gtest ${DYNAMIC_LINKER_LIB}) + else() + target_link_libraries(${DYNAMIC_LOADING_TEST_EXEC} PUBLIC boringssl_gtest pthread ${DYNAMIC_LINKER_LIB}) + endif() + endif() + + add_dependencies(all_tests ${DYNAMIC_LOADING_TEST_EXEC}) + +diff --git i/crypto/dynamic_loading_test.c w/crypto/dynamic_loading_test.c +index 4c37c28..88002dc 100644 +--- i/crypto/dynamic_loading_test.c ++++ w/crypto/dynamic_loading_test.c +@@ -20,53 +20,57 @@ + + #include + + #ifdef LIBCRYPTO_PATH + + #include + #include + #include + #include + ++#ifndef SYMBOL_PREFIX ++#define SYMBOL_PREFIX "" ++#endif ++ + typedef void (*fp_lc_clear_error_t)(void); + typedef int (*fp_lc_tl_func_t)(void); + typedef int (*fp_rand_bytes_t)(uint8_t *buf, size_t len); + + #define BUFFER_SIZE 16 + #define TEST_ITERS 10 + #define THREAD_COUNT 10 + + static void *cycle_thread_local_setup(void *lc_so) { + uint8_t buffer[BUFFER_SIZE]; +- fp_lc_clear_error_t lc_clear_error = dlsym(lc_so, "ERR_clear_error"); +- fp_rand_bytes_t lc_rand_bytes = dlsym(lc_so, "RAND_bytes"); +- fp_lc_tl_func_t lc_tl_clear = dlsym(lc_so, "AWSLC_thread_local_clear"); ++ fp_lc_clear_error_t lc_clear_error = dlsym(lc_so, SYMBOL_PREFIX "ERR_clear_error"); ++ fp_rand_bytes_t lc_rand_bytes = dlsym(lc_so, SYMBOL_PREFIX "RAND_bytes"); ++ fp_lc_tl_func_t lc_tl_clear = dlsym(lc_so, SYMBOL_PREFIX "AWSLC_thread_local_clear"); + + for (int i = 0; i < TEST_ITERS; i++) { + (*lc_clear_error)(); + if (1 != (*lc_rand_bytes)(buffer, BUFFER_SIZE)) { + fprintf(stderr, "Call to RAND_bytes failed."); + exit(1); + } + if (1 != (*lc_tl_clear)()) { + fprintf(stderr, "Call to AWSLC_thread_local_clear failed."); + exit(1); + } + } + + return NULL; + } + + static void *load_unload(void *ctx) { + const char* path = ctx; + void *lc_so = dlopen(path, RTLD_NOW); +- fp_lc_tl_func_t lc_tl_shutdown = dlsym(lc_so, "AWSLC_thread_local_shutdown"); ++ fp_lc_tl_func_t lc_tl_shutdown = dlsym(lc_so, SYMBOL_PREFIX "AWSLC_thread_local_shutdown"); + + pthread_t thread_id[THREAD_COUNT]; + for (int i = 0; i < THREAD_COUNT; i++) { + if (pthread_create(&thread_id[i], NULL, cycle_thread_local_setup, lc_so)) { + fprintf(stderr, "Call to pthread_create in load_unload failed."); + exit(1); + } + } + + // Also cycle on the current thread diff --git a/pkgs/by-name/aw/aws-lc/fix-openssl-shim-symlinks.patch b/pkgs/by-name/aw/aws-lc/fix-openssl-shim-symlinks.patch new file mode 100644 index 000000000000..b7ce3ccb4847 --- /dev/null +++ b/pkgs/by-name/aw/aws-lc/fix-openssl-shim-symlinks.patch @@ -0,0 +1,50 @@ +Commit ID: eaef466931b704cbded48be8c51f7a8fa75ca6e0 +Change ID: yxsyyzwrzkrtqvksxqsurozmktvqsssw +Author : Marie Ramlow (2026-11-01 13:28:50) +Committer: Marie Ramlow (2026-11-01 13:29:10) + + Fix OpenSSL-compat shim symlinks + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index aa64e1aa22..005dc11c58 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1844,12 +1844,12 @@ + endif() + install(CODE " + execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink +- lib${CRYPTO_LIB_NAME}.${SHIM_LIB_EXT} \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libcrypto.${SHIM_LIB_EXT}\") ++ lib${CRYPTO_LIB_NAME}.${SHIM_LIB_EXT} \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_LIBDIR}/libcrypto.${SHIM_LIB_EXT}\") + " ${SHIM_LINK_COMPONENT}) + if(BUILD_LIBSSL) + install(CODE " + execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink +- lib${SSL_LIB_NAME}.${SHIM_LIB_EXT} \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libssl.${SHIM_LIB_EXT}\") ++ lib${SSL_LIB_NAME}.${SHIM_LIB_EXT} \"\$ENV{DESTDIR}/${CMAKE_INSTALL_FULL_LIBDIR}/libssl.${SHIM_LIB_EXT}\") + " ${SHIM_LINK_COMPONENT}) + endif() + endif() +@@ -1858,7 +1858,7 @@ + # Always create the include directory symlink for OpenSSL compatibility + install(CODE " + execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink +- aws-lc/openssl \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/openssl\") ++ aws-lc/openssl \"\$ENV{DESTDIR}/${CMAKE_INSTALL_FULL_INCLUDEDIR}/openssl\") + " COMPONENT Development) + endif() + endif() +diff --git a/tool-openssl/CMakeLists.txt b/tool-openssl/CMakeLists.txt +index 262b42aa00..6f16cfa198 100644 +--- a/tool-openssl/CMakeLists.txt ++++ b/tool-openssl/CMakeLists.txt +@@ -191,8 +191,8 @@ + if(INSTALL_OPENSSL_SHIM AND COHABITANT_BINARIES) + install(CODE " + execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink +- \"${AWSLC_BIN_PREFIX}openssl\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/openssl\") ++ \"${AWSLC_BIN_PREFIX}openssl\" \"\$ENV{DESTDIR}/${CMAKE_INSTALL_FULL_BINDIR}/openssl\") + execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink +- \"${AWSLC_BIN_PREFIX}c_rehash\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/c_rehash\") ++ \"${AWSLC_BIN_PREFIX}c_rehash\" \"\$ENV{DESTDIR}/${CMAKE_INSTALL_FULL_BINDIR}/c_rehash\") + ") + endif() diff --git a/pkgs/by-name/aw/aws-lc/package.nix b/pkgs/by-name/aw/aws-lc/package.nix index d97cf6e458cc..e34bc4a76cf2 100644 --- a/pkgs/by-name/aw/aws-lc/package.nix +++ b/pkgs/by-name/aw/aws-lc/package.nix @@ -2,18 +2,58 @@ lib, stdenv, fetchFromGitHub, + buildGoModule, cmake, ninja, + go, + perl, rust-bindgen, testers, nix-update-script, + aws-lc, + writableTmpDirAsHomeHook, + runCommand, useSharedLibraries ? !stdenv.hostPlatform.isStatic, withRustBindings ? true, + symbolPrefix ? "AWS_LC", + # This option might lead to OpenSSL being silently swapped to AWS-LC. Only use it if you know what you are doing. + withOpenSSLShim ? false, }: + +let + aws-lc' = aws-lc.override { + useSharedLibraries = false; + symbolPrefix = null; + }; + symbols = + runCommand "aws-lc-symbols" + { + inherit (aws-lc) src; + nativeBuildInputs = [ + writableTmpDirAsHomeHook + go + ]; + } + '' + cd "$src" + go run ./util/read_symbols.go -out "$TMPDIR/symbols_crypto.txt" ${aws-lc'}/lib/libcrypto-awslc.a + go run ./util/read_symbols.go -out "$TMPDIR/symbols_ssl.txt" ${aws-lc'}/lib/libssl-awslc.a + cat "$TMPDIR"/symbols_{crypto,ssl}.txt > $out + ''; +in + stdenv.mkDerivation (finalAttrs: { pname = "aws-lc"; version = "5.12.0"; + patches = [ + ./fix-dynamic-loading-test.patch + ./fix-openssl-shim-symlinks.patch + ]; + + __structuredAttrs = true; + strictDeps = true; + src = fetchFromGitHub { owner = "aws"; repo = "aws-lc"; @@ -28,26 +68,51 @@ stdenv.mkDerivation (finalAttrs: { ]; nativeBuildInputs = [ + writableTmpDirAsHomeHook cmake ninja + go + perl ] ++ lib.optionals withRustBindings [ rust-bindgen ]; + goDeps = + (buildGoModule { + inherit (finalAttrs) pname version src; + vendorHash = "sha256-495bUr3Cuo7kuhuNLMVhrVg9NXTAXyFmnXRmBrCHovA="; + }).goModules; + + # it seems that ENABLE_DIST_PKG rejects apple because of symbol versioning, + # but we disable symbol versioning ourselves. + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "if(NOT UNIX OR APPLE)" "if(NOT UNIX)" + ''; + + preConfigure = '' + ln -s ${finalAttrs.goDeps} vendor + ''; + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" useSharedLibraries) - (lib.cmakeBool "DISABLE_GO" true) - (lib.cmakeBool "DISABLE_PERL" true) (lib.cmakeBool "GENERATE_RUST_BINDINGS" withRustBindings) + (lib.cmakeBool "ENABLE_DIST_PKG" true) + (lib.cmakeBool "ENABLE_DIST_PKG_OPENSSL_SHIM" withOpenSSLShim) + (lib.cmakeBool "ENABLE_SYMBOL_VERSIONING" false) ] ++ lib.optionals stdenv.cc.isGNU [ # Needed with gcc but breaks with clang (lib.cmakeFeature "CMAKE_C_FLAGS" "-Wno-error=stringop-overflow") + ] + ++ lib.optionals (symbolPrefix != null) [ + (lib.cmakeFeature "BORINGSSL_PREFIX" symbolPrefix) + (lib.cmakeFeature "BORINGSSL_PREFIX_SYMBOLS" (toString symbols)) ]; doCheck = true; - checkTarget = "run_minimal_tests"; + checkTarget = "run_tests"; postInstall = '' moveToOutput lib/crypto/cmake "$dev" @@ -77,7 +142,7 @@ stdenv.mkDerivation (finalAttrs: { tests = { version = testers.testVersion { package = finalAttrs.finalPackage; - command = "bssl version"; + command = "aws-lc-bssl version"; }; pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; @@ -97,15 +162,14 @@ stdenv.mkDerivation (finalAttrs: { asl20 isc ]; - mainProgram = "bssl"; + mainProgram = "aws-lc-bssl"; maintainers = with lib.maintainers; [ whispersofthedawn ]; pkgConfigModules = [ "aws-lc" - "libcrypto" - "libssl" - "openssl" + "libcrypto-awslc" + "libssl-awslc" ]; platforms = lib.platforms.unix; }; diff --git a/pkgs/by-name/aw/awscurl/package.nix b/pkgs/by-name/aw/awscurl/package.nix index 353cc5b693b3..0e71f600d4e9 100644 --- a/pkgs/by-name/aw/awscurl/package.nix +++ b/pkgs/by-name/aw/awscurl/package.nix @@ -8,7 +8,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "awscurl"; version = "0.44"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "okigan"; diff --git a/pkgs/by-name/az/azurefox/package.nix b/pkgs/by-name/az/azurefox/package.nix index 4c46a8f7310b..9bc0abfb4d28 100644 --- a/pkgs/by-name/az/azurefox/package.nix +++ b/pkgs/by-name/az/azurefox/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "TacoRocket"; repo = "AzureFox"; diff --git a/pkgs/by-name/az/azurite/package.nix b/pkgs/by-name/az/azurite/package.nix index 7bd89abea9c8..e3a09b343ba3 100644 --- a/pkgs/by-name/az/azurite/package.nix +++ b/pkgs/by-name/az/azurite/package.nix @@ -32,6 +32,10 @@ buildNpmPackage (finalAttrs: { libsecret ]; + # @vscode/vsce-sign's postinstall script fails on exotic architectures. + # We ignore the scripts, and this does not change the output. + npmFlags = [ "--ignore-scripts" ]; + meta = { description = "Lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies"; homepage = "https://github.com/Azure/Azurite"; diff --git a/pkgs/by-name/ba/babeldoc/package.nix b/pkgs/by-name/ba/babeldoc/package.nix index 0d79adbe14cd..fc003ca6e1ba 100644 --- a/pkgs/by-name/ba/babeldoc/package.nix +++ b/pkgs/by-name/ba/babeldoc/package.nix @@ -12,7 +12,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "babeldoc"; version = "0.6.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "funstory-ai"; diff --git a/pkgs/by-name/ba/bandcampsync/package.nix b/pkgs/by-name/ba/bandcampsync/package.nix index 3a598bfd55bf..a14582fe0956 100644 --- a/pkgs/by-name/ba/bandcampsync/package.nix +++ b/pkgs/by-name/ba/bandcampsync/package.nix @@ -9,8 +9,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { version = "0.8.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "meeb"; repo = "bandcampsync"; diff --git a/pkgs/by-name/ba/bat/package.nix b/pkgs/by-name/ba/bat/package.nix index 2630c01f0ce9..e2b4028989f0 100644 --- a/pkgs/by-name/ba/bat/package.nix +++ b/pkgs/by-name/ba/bat/package.nix @@ -6,6 +6,7 @@ less, installShellFiles, makeWrapper, + oniguruma, libgit2, zlib, versionCheckHook, @@ -35,6 +36,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + oniguruma libgit2 zlib ]; diff --git a/pkgs/by-name/ba/batmon/package.nix b/pkgs/by-name/ba/batmon/package.nix index 992d31348105..3a4c0b8de02b 100644 --- a/pkgs/by-name/ba/batmon/package.nix +++ b/pkgs/by-name/ba/batmon/package.nix @@ -28,7 +28,7 @@ rustPlatform.buildRustPackage (finalAttrs: { license = lib.licenses.asl20; mainProgram = "batmon"; platforms = with lib.platforms; unix ++ windows; - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; maintainers = with lib.maintainers; [ _6543 ]; }; }) diff --git a/pkgs/by-name/ba/bazaar/package.nix b/pkgs/by-name/ba/bazaar/package.nix index 0300802cf929..099362b2042d 100644 --- a/pkgs/by-name/ba/bazaar/package.nix +++ b/pkgs/by-name/ba/bazaar/package.nix @@ -1,13 +1,15 @@ { lib, stdenv, - fetchFromGitHub, + fetchFromGitLab, blueprint-compiler, desktop-file-utils, + dbus, meson, python3, ninja, pkg-config, + vala, wrapGAppsHook4, appstream, flatpak, @@ -29,12 +31,13 @@ md4c, webkitgtk_6_0, libsecret, + systemdLibs, nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "bazaar"; - version = "0.9.1"; + version = "0.9.9"; __structuredAttrs = true; strictDeps = true; @@ -46,11 +49,12 @@ stdenv.mkDerivation (finalAttrs: { "dev" ]; - src = fetchFromGitHub { - owner = "bazaar-org"; + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "World"; repo = "bazaar"; tag = "v${finalAttrs.version}"; - hash = "sha256-9J+XI5JnV8Yfk3xRI/VM5RSG4eMafbw2rBRpPMIu5yA="; + hash = "sha256-qmMwlvB8DXNP0SHip1mQoktYFeH/DwfvVtVIny16Ryo="; }; nativeBuildInputs = [ @@ -60,6 +64,7 @@ stdenv.mkDerivation (finalAttrs: { meson ninja pkg-config + vala wrapGAppsHook4 (python3.withPackages (p: [ p.babel @@ -69,6 +74,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ appstream + dbus flatpak glib-networking gtk4 @@ -87,6 +93,7 @@ stdenv.mkDerivation (finalAttrs: { md4c webkitgtk_6_0 libsecret + systemdLibs ]; postInstall = '' @@ -112,7 +119,7 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "FlatHub-first app store for GNOME"; - homepage = "https://github.com/kolunmi/bazaar"; + homepage = "https://gitlab.gnome.org/World/bazaar"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ dtomvan diff --git a/pkgs/by-name/ba/bazarr/package.nix b/pkgs/by-name/ba/bazarr/package.nix index 780e68e732ce..cd25996a6583 100644 --- a/pkgs/by-name/ba/bazarr/package.nix +++ b/pkgs/by-name/ba/bazarr/package.nix @@ -31,7 +31,6 @@ python3Packages.buildPythonApplication (finalAttrs: { webrtcvad ]; - __structuredAttrs = true; dontBuild = true; dontWrapPythonPrograms = true; pyproject = false; diff --git a/pkgs/by-name/ba/bazel_7/package.nix b/pkgs/by-name/ba/bazel_7/package.nix index 13ea1b2659d0..662c8ed5dbcd 100644 --- a/pkgs/by-name/ba/bazel_7/package.nix +++ b/pkgs/by-name/ba/bazel_7/package.nix @@ -118,11 +118,6 @@ let url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel_nojdk-${version}-linux-arm64"; hash = "sha256-wfuZLSHa77wr0A4ZLF5DqH7qyOljYNXM2a5imoS+nGQ"; } - else if stdenv.hostPlatform.system == "x86_64-darwin" then - fetchurl { - url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-darwin-x86_64"; - hash = "sha256-qAb9s6R5+EbqVfWHUT7sk1sOrbDEPv4EhgXH7nC46Zw="; - } else fetchurl { # stdenv.hostPlatform.system == "aarch64-darwin" @@ -284,12 +279,12 @@ let platforms = lib.platforms.linux ++ lib.platforms.darwin; - inherit (stdenv.hostPlatform) isDarwin isAarch64; + inherit (stdenv.hostPlatform) isDarwin; system = if isDarwin then "darwin" else "linux"; # on aarch64 Darwin, `uname -m` returns "arm64" - arch = with stdenv.hostPlatform; if isDarwin && isAarch64 then "arm64" else parsed.cpu.name; + arch = if isDarwin then stdenv.hostPlatform.darwinArch else stdenv.hostPlatform.parsed.cpu.name; bazelRC = writeTextFile { name = "bazel-rc"; diff --git a/pkgs/by-name/ba/bazel_8/package.nix b/pkgs/by-name/ba/bazel_8/package.nix index 5c0609ec4cf1..5e70ea63142d 100644 --- a/pkgs/by-name/ba/bazel_8/package.nix +++ b/pkgs/by-name/ba/bazel_8/package.nix @@ -36,12 +36,13 @@ let inherit (callPackage ./build-support/patching.nix { }) addFilePatch; - inherit (stdenv.hostPlatform) isDarwin isAarch64; + inherit (stdenv.hostPlatform) isDarwin; bazelSystem = if isDarwin then "darwin" else "linux"; # on aarch64 Darwin, `uname -m` returns "arm64" - bazelArch = if isDarwin && isAarch64 then "arm64" else stdenv.hostPlatform.parsed.cpu.name; + bazelArch = + if isDarwin then stdenv.hostPlatform.darwinArch else stdenv.hostPlatform.parsed.cpu.name; src = fetchzip { url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-dist.zip"; diff --git a/pkgs/by-name/ba/bazel_9/package.nix b/pkgs/by-name/ba/bazel_9/package.nix index 70ebc60e7a66..627d92408c22 100644 --- a/pkgs/by-name/ba/bazel_9/package.nix +++ b/pkgs/by-name/ba/bazel_9/package.nix @@ -34,7 +34,7 @@ let inherit (callPackage ./build-support/patching.nix { }) addFilePatch; - inherit (stdenv.hostPlatform) isDarwin isAarch64; + inherit (stdenv.hostPlatform) isDarwin; defaultShellUtils = # Keep this list conservative. For more exotic tools, prefer to use @@ -85,7 +85,8 @@ let bazelSystem = if isDarwin then "darwin" else "linux"; # on aarch64 Darwin, `uname -m` returns "arm64" - bazelArch = if isDarwin && isAarch64 then "arm64" else stdenv.hostPlatform.parsed.cpu.name; + bazelArch = + if isDarwin then stdenv.hostPlatform.darwinArch else stdenv.hostPlatform.parsed.cpu.name; src = fetchzip { url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-dist.zip"; diff --git a/pkgs/by-name/bc/bcachefs-tools/package.nix b/pkgs/by-name/bc/bcachefs-tools/package.nix index 30dccbfc2fbc..58debff2a0e1 100644 --- a/pkgs/by-name/bc/bcachefs-tools/package.nix +++ b/pkgs/by-name/bc/bcachefs-tools/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, pkg-config, libuuid, libsodium, @@ -41,6 +42,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-H8uzTohV30NU1wYhr/WXN76g1zDqGEzRE5QZcmcM7Jc="; }; + # Fix build with linux-headers 7.3 + patches = [ + (fetchpatch { + url = "https://github.com/koverstreet/bcachefs-tools/commit/adef3bf68249ac674ddc2cbdfe8c7d0d153e15a8.diff"; + hash = "sha256-nQsL+1fTQ4ltVyTIwIpO9z9nS66Dtr6WTepBZQ0phL8="; + }) + ]; + cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) src; hash = "sha256-4ZStyYaT+6Suup1ue2wFFCTAlnsnEO9WaUJHe47BKXY="; diff --git a/pkgs/by-name/bi/bic/package.nix b/pkgs/by-name/bi/bic/package.nix index 62e52959a066..130894cd6d09 100644 --- a/pkgs/by-name/bi/bic/package.nix +++ b/pkgs/by-name/bi/bic/package.nix @@ -58,5 +58,7 @@ stdenv.mkDerivation { homepage = "https://github.com/hexagonal-sun/bic"; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ hexagonal-sun ]; + # never built on aarch64-darwin since first introduction in nixpkgs + broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; }; } diff --git a/pkgs/by-name/bi/bicep-lsp/package.nix b/pkgs/by-name/bi/bicep-lsp/package.nix index 12d948f10bfe..29488f90efcb 100644 --- a/pkgs/by-name/bi/bicep-lsp/package.nix +++ b/pkgs/by-name/bi/bicep-lsp/package.nix @@ -43,7 +43,7 @@ buildDotnetModule rec { stdenv.cc.cc.lib ]; - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); # mono is not available on aarch64-darwin + doCheck = !stdenv.hostPlatform.isDarwin; # mono is not available on aarch64-darwin meta = { description = "Domain Specific Language (DSL) for deploying Azure resources declaratively"; diff --git a/pkgs/by-name/bi/bitbake-setup/package.nix b/pkgs/by-name/bi/bitbake-setup/package.nix index d37b04d9cb41..aa2a9d47df4b 100644 --- a/pkgs/by-name/bi/bitbake-setup/package.nix +++ b/pkgs/by-name/bi/bitbake-setup/package.nix @@ -13,8 +13,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "2.19.0"; format = "wheel"; - __structuredAttrs = true; - src = fetchPypi { pname = "bitbake_setup"; inherit (finalAttrs) version; diff --git a/pkgs/by-name/bi/bitcoin-knots/package.nix b/pkgs/by-name/bi/bitcoin-knots/package.nix index c9164397ef75..26eeabd1da65 100644 --- a/pkgs/by-name/bi/bitcoin-knots/package.nix +++ b/pkgs/by-name/bi/bitcoin-knots/package.nix @@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: { installShellFiles gnupg ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ] ++ lib.optionals withGui [ diff --git a/pkgs/by-name/bi/bitcoin/package.nix b/pkgs/by-name/bi/bitcoin/package.nix index d8142a8f3c3c..a371b6df61d9 100644 --- a/pkgs/by-name/bi/bitcoin/package.nix +++ b/pkgs/by-name/bi/bitcoin/package.nix @@ -62,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: { installShellFiles gnupg ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ autoSignDarwinBinariesHook ] ++ lib.optionals withGui [ qt6.wrapQtAppsHook ]; diff --git a/pkgs/by-name/bi/bitwarden-desktop/package.nix b/pkgs/by-name/bi/bitwarden-desktop/package.nix index 6f1f7cfe1396..87d27e73dd04 100644 --- a/pkgs/by-name/bi/bitwarden-desktop/package.nix +++ b/pkgs/by-name/bi/bitwarden-desktop/package.nix @@ -17,6 +17,7 @@ rustc, rustPlatform, stdenv, + sqlite, xcbuild, }: @@ -107,6 +108,10 @@ buildNpmPackage (finalAttrs: { darwin.autoSignDarwinBinariesHook ]; + buildInputs = [ + sqlite + ]; + preBuild = '' if [[ $(jq --raw-output '.devDependencies.electron' < package.json | grep -E --only-matching '^[0-9]+') != ${lib.escapeShellArg (lib.versions.major electron.version)} ]]; then echo 'ERROR: electron version mismatch' diff --git a/pkgs/by-name/bl/blueprint-compiler/package.nix b/pkgs/by-name/bl/blueprint-compiler/package.nix index f6c53be3fd4c..a24f48c20be1 100644 --- a/pkgs/by-name/bl/blueprint-compiler/package.nix +++ b/pkgs/by-name/bl/blueprint-compiler/package.nix @@ -6,24 +6,26 @@ libadwaita, meson, ninja, - python3, runCommand, stdenv, testers, wrapGAppsNoGuiHook, xvfb-run, gnome, + python3Packages, }: -stdenv.mkDerivation (finalAttrs: { + +python3Packages.buildPythonApplication (finalAttrs: { pname = "blueprint-compiler"; - version = "0.20.4"; + version = "0.22.2"; + pyproject = false; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "GNOME"; repo = "blueprint-compiler"; rev = "v${finalAttrs.version}"; - hash = "sha256-dA+FQTRmTz6rl5ToZJ8CXY1Zd7Em7VwvF3U3Qoyvu80="; + hash = "sha256-DRpPUfiufwK2c2RW01IYIX6tgVyxfFl5hnv5F8+9aD4="; }; postPatch = '' @@ -34,17 +36,11 @@ stdenv.mkDerivation (finalAttrs: { gobject-introspection meson ninja - python3 wrapGAppsNoGuiHook ]; buildInputs = [ libadwaita - (python3.withPackages ( - ps: with ps; [ - pygobject3 - ] - )) ]; propagatedBuildInputs = [ @@ -52,6 +48,8 @@ stdenv.mkDerivation (finalAttrs: { gobject-introspection ]; + dependencies = [ python3Packages.pygobject3 ]; + nativeCheckInputs = [ dbus xvfb-run @@ -70,6 +68,13 @@ stdenv.mkDerivation (finalAttrs: { runHook postCheck ''; + # Prevent double wrapping, let the Python wrapper use the args in preFixup. + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + passthru = { tests = { version = testers.testVersion { diff --git a/pkgs/by-name/bo/boehmgc/package.nix b/pkgs/by-name/bo/boehmgc/package.nix index 9a0d3c9d34d5..9748f7a255de 100644 --- a/pkgs/by-name/bo/boehmgc/package.nix +++ b/pkgs/by-name/bo/boehmgc/package.nix @@ -74,13 +74,8 @@ stdenv.mkDerivation (finalAttrs: { export NIX_LDFLAGS="$NIX_LDFLAGS -T $TMP/openbsd.ldscript" ''; - # `gctest` fails under x86_64 emulation on aarch64-darwin - # and also on aarch64-linux (qemu-user) - doCheck = - !( - (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) - || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) - ); + # `gctest` fails on aarch64-linux under qemu-user. + doCheck = !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); enableParallelBuilding = true; diff --git a/pkgs/by-name/bo/borgbackup/package.nix b/pkgs/by-name/bo/borgbackup/package.nix index 951989af214b..95067abf55cc 100644 --- a/pkgs/by-name/bo/borgbackup/package.nix +++ b/pkgs/by-name/bo/borgbackup/package.nix @@ -33,6 +33,13 @@ python.pkgs.buildPythonApplication (finalAttrs: { }; postPatch = '' + # Upstream is very sensible about msgpack versions, but the updates to here did not change any relevant code, + # so basically backport the essential changes from the bump commits, instead of relaxing the version freely. + substituteInPlace src/borg/helpers/msgpack.py \ + --replace-fail "(1, 2, 1)" "(1, 2, 4)" + substituteInPlace pyproject.toml \ + --replace-fail "<=1.2.1" "<=1.2.4" + # sandbox does not support setuid/setgid/sticky bits substituteInPlace src/borg/testsuite/archiver.py \ --replace-fail "0o4755" "0o0755" @@ -55,11 +62,8 @@ python.pkgs.buildPythonApplication (finalAttrs: { ]; sphinxBuilders = [ - # HACK: sphinxBuilders is currently broken with __structuredAttrs = true, - # and ignores all but the first array item. for now, pass them as a single - # space-separated entry. fixed on staging, but requires a mass-rebuild. - # TODO: revert to [ "singlehtml" "man" ] on staging. - "singlehtml man" + "singlehtml" + "man" ]; buildInputs = [ diff --git a/pkgs/by-name/bo/borgmatic/package.nix b/pkgs/by-name/bo/borgmatic/package.nix index 101922c56db6..07264a9ee779 100644 --- a/pkgs/by-name/bo/borgmatic/package.nix +++ b/pkgs/by-name/bo/borgmatic/package.nix @@ -18,8 +18,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "2.1.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-qsB8564wCWBemsxn7vIBmntdabzK1j7agP8ZK2nzdc8="; diff --git a/pkgs/by-name/bp/bpftools/add-128-bit-integer-types-for-aarch64.patch b/pkgs/by-name/bp/bpftools/add-128-bit-integer-types-for-aarch64.patch new file mode 100644 index 000000000000..2500679bc13f --- /dev/null +++ b/pkgs/by-name/bp/bpftools/add-128-bit-integer-types-for-aarch64.patch @@ -0,0 +1,17 @@ +diff --git a/tools/include/uapi/linux/types.h b/tools/include/uapi/linux/types.h +index 85aa327..adc3543 100644 +--- a/tools/include/uapi/linux/types.h ++++ b/tools/include/uapi/linux/types.h +@@ -7,6 +7,12 @@ + #ifndef __ASSEMBLER__ + + /* copied from linux:include/uapi/linux/types.h */ ++ ++#ifdef __SIZEOF_INT128__ ++typedef __signed__ __int128 __s128 __attribute__((aligned(16))); ++typedef unsigned __int128 __u128 __attribute__((aligned(16))); ++#endif ++ + #define __bitwise + typedef __u16 __bitwise __le16; + typedef __u16 __bitwise __be16; diff --git a/pkgs/by-name/bp/bpftools/package.nix b/pkgs/by-name/bp/bpftools/package.nix index a4a84f56055e..ea8d3e8ea331 100644 --- a/pkgs/by-name/bp/bpftools/package.nix +++ b/pkgs/by-name/bp/bpftools/package.nix @@ -27,6 +27,11 @@ stdenv.mkDerivation (finalAttrs: { # fix unknown type name '__vector128' on powerpc64* # https://www.spinics.net/lists/bpf/msg28613.html ./include-asm-types-for-powerpc64.patch + ] + ++ lib.optionals stdenv.hostPlatform.isAarch64 [ + # Fix unknown type name `__u128` on aarch64, analogous to + # https://github.com/libbpf/libbpf/commit/f90a9c487d7542d91fa584b83b6a624a4fbeb341 + ./add-128-bit-integer-types-for-aarch64.patch ]; depsBuildBuild = [ buildPackages.stdenv.cc ]; diff --git a/pkgs/by-name/br/brltty/package.nix b/pkgs/by-name/br/brltty/package.nix index 58e67756ba8f..a66caaf297d9 100644 --- a/pkgs/by-name/br/brltty/package.nix +++ b/pkgs/by-name/br/brltty/package.nix @@ -7,6 +7,8 @@ bluez, tcl, acl, + polkitSupport ? lib.meta.availableOn stdenv.hostPlatform polkit, + polkit, kmod, coreutils, shadow, @@ -42,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: { tcl # For TCL bindings ] ++ lib.optional alsaSupport alsa-lib + ++ lib.optional polkitSupport polkit ++ lib.optional systemdSupport systemdMinimal; doInstallCheck = true; @@ -76,6 +79,7 @@ stdenv.mkDerivation (finalAttrs: { "--with-writable-directory=/run/brltty" "--with-updatable-directory=/var/lib/brltty" "--with-api-socket-path=/var/lib/BrlAPI" + (lib.enableFeature polkitSupport "polkit") ]; installFlags = [ "install-systemd" diff --git a/pkgs/by-name/br/brotli/package.nix b/pkgs/by-name/br/brotli/package.nix index 6d26a2de5ac5..16594db0e33d 100644 --- a/pkgs/by-name/br/brotli/package.nix +++ b/pkgs/by-name/br/brotli/package.nix @@ -12,13 +12,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "brotli"; - version = "1.2.0"; + version = "1.2.1"; src = fetchFromGitHub { owner = "google"; repo = "brotli"; tag = "v${finalAttrs.version}"; - hash = "sha256-kl8ZHt71v17QR2bDP+ad/5uixf+GStEPLQ5ooFoC5i8="; + hash = "sha256-llY72cYffDv0ugsH0p89xIPEbElV4L8u7U/Fe8hT3gI="; }; patches = [ diff --git a/pkgs/by-name/bt/btrfs-progs/package.nix b/pkgs/by-name/bt/btrfs-progs/package.nix index 52d1d0bb827c..d35341314515 100644 --- a/pkgs/by-name/bt/btrfs-progs/package.nix +++ b/pkgs/by-name/bt/btrfs-progs/package.nix @@ -21,11 +21,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "btrfs-progs"; - version = "7.1"; + version = "7.3"; src = fetchurl { url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${finalAttrs.version}.tar.xz"; - hash = "sha256-0fVcwpcTmMkULqp50gPmPVhqO0uGf5VmZKHWgyLNTjQ="; + hash = "sha256-03tjQD0l/gJXBMdY5qPaCXmuUMMMXwKqeORBDns0bjo="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/bu/bubblewrap/package.nix b/pkgs/by-name/bu/bubblewrap/package.nix index 542cf9db780e..f237b4e10f6f 100644 --- a/pkgs/by-name/bu/bubblewrap/package.nix +++ b/pkgs/by-name/bu/bubblewrap/package.nix @@ -14,13 +14,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "bubblewrap"; - version = "0.12.0"; + version = "0.13.1"; src = fetchFromGitHub { owner = "containers"; repo = "bubblewrap"; - rev = "v${finalAttrs.version}"; - hash = "sha256-VnhJ5bej3/GTHcU8+AkyR7f3J0KKDuoc94SFxo4grhk="; + tag = "v${finalAttrs.version}"; + hash = "sha256-sgIATYiBYbHaftA+ShIqfxS3OScz7VurjPciL2WB1oQ="; }; outputs = [ @@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { doCheck = false; meta = { - changelog = "https://github.com/containers/bubblewrap/releases/tag/${finalAttrs.src.rev}"; + changelog = "https://github.com/containers/bubblewrap/releases/tag/${finalAttrs.src.tag}"; description = "Unprivileged sandboxing tool"; homepage = "https://github.com/containers/bubblewrap"; license = lib.licenses.lgpl21Plus; diff --git a/pkgs/by-name/bu/build2/package.nix b/pkgs/by-name/bu/build2/package.nix index 7e70389f408e..38916326c0ec 100644 --- a/pkgs/by-name/bu/build2/package.nix +++ b/pkgs/by-name/bu/build2/package.nix @@ -6,7 +6,7 @@ fetchurl, fixDarwinDylibNames, libbutl, - libpkgconf, + libpkg-config, buildPackages, enableShared ? !stdenv.hostPlatform.isStatic, enableStatic ? !enableShared, @@ -45,11 +45,10 @@ stdenv.mkDerivation (finalAttrs: { disallowedReferences = [ build2-bootstrap libbutl.dev - libpkgconf.dev ]; buildInputs = [ libbutl - libpkgconf + libpkg-config ]; # Build2 uses @rpath on darwin @@ -71,8 +70,6 @@ stdenv.mkDerivation (finalAttrs: { build2ConfigureFlags = [ "config.bin.lib=${configSharedStatic enableShared enableStatic}" - "config.cc.poptions+=-I${lib.getDev libpkgconf}/include/pkgconf" - "config.build2.libpkgconf=true" ]; postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' diff --git a/pkgs/by-name/bu/buildkite-cli/package.nix b/pkgs/by-name/bu/buildkite-cli/package.nix index d9e28154027f..73bb4cd57f4e 100644 --- a/pkgs/by-name/bu/buildkite-cli/package.nix +++ b/pkgs/by-name/bu/buildkite-cli/package.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildGoModule, fetchFromGitHub, gitMinimal, @@ -42,11 +41,6 @@ buildGoModule (finalAttrs: { "TestResolvePipelinesFromPath" "TestPreflightCmd_Run" "TestSnapshotContext_CancelsPush" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Expected timeout error but got none - "TestPollJobStatus" - "TestPollJobStatusTimeout" ]; in [ diff --git a/pkgs/by-name/c-/c-ares/package.nix b/pkgs/by-name/c-/c-ares/package.nix index d26bcba991fd..fa312ad1a9cc 100644 --- a/pkgs/by-name/c-/c-ares/package.nix +++ b/pkgs/by-name/c-/c-ares/package.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { pname = "c-ares"; - version = "1.34.8"; + version = "1.34.9"; strictDeps = true; __structuredAttrs = true; @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { src = fetchurl { # Note: tag name varies in some versions, e.g. v1.30.0, c-ares-1_17_0. url = "https://github.com/c-ares/c-ares/releases/download/v${version}/c-ares-${version}.tar.gz"; - hash = "sha256-wiK21oEJb5RE0sSGPSwRdAGeJ8rMoKSlwRTTbdfXv3g="; + hash = "sha256-k2S3ChLrWaBoMPtIjZNX+QEA3/DZiyPqNZOhg9Q+by8="; }; outputs = [ diff --git a/pkgs/by-name/ca/cabinpkg/package.nix b/pkgs/by-name/ca/cabinpkg/package.nix index 74167a55ccdf..e6b302727010 100644 --- a/pkgs/by-name/ca/cabinpkg/package.nix +++ b/pkgs/by-name/ca/cabinpkg/package.nix @@ -66,7 +66,6 @@ stdenv.mkDerivation rec { installFlags = [ "PREFIX=${placeholder "out"}" ]; meta = { - broken = (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); homepage = "https://cabinpkg.com"; description = "Package manager and build system for C++"; license = lib.licenses.asl20; diff --git a/pkgs/by-name/ca/caelestia-cli/package.nix b/pkgs/by-name/ca/caelestia-cli/package.nix index 4b75723ab8fa..fa1810660d0c 100644 --- a/pkgs/by-name/ca/caelestia-cli/package.nix +++ b/pkgs/by-name/ca/caelestia-cli/package.nix @@ -17,15 +17,14 @@ killall, }: -python3.pkgs.buildPythonApplication rec { +python3.pkgs.buildPythonApplication (finalAttrs: { pname = "caelestia-cli"; - __structuredAttrs = true; version = "1.1.3"; src = fetchFromGitHub { owner = "caelestia-dots"; repo = "cli"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-71nGzEgBK7lZVjjKC9h1zmVlloZOmSlzn0Q4VoYo6gI="; }; @@ -64,10 +63,10 @@ python3.pkgs.buildPythonApplication rec { "--suffix" "PATH" ":" - "${lib.makeBinPath runtimeDeps}" + "${lib.makeBinPath finalAttrs.runtimeDeps}" ]; - env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version; postPatch = '' substituteInPlace src/caelestia/subcommands/{shell.py,screenshot.py} \ @@ -89,4 +88,4 @@ python3.pkgs.buildPythonApplication rec { maintainers = with lib.maintainers; [ rachalaraj ]; platforms = lib.platforms.linux; }; -} +}) diff --git a/pkgs/by-name/ca/cai/package.nix b/pkgs/by-name/ca/cai/package.nix index 2a303ef1e086..b4ed981e47fe 100644 --- a/pkgs/by-name/ca/cai/package.nix +++ b/pkgs/by-name/ca/cai/package.nix @@ -19,8 +19,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { version = "1.1.5-unstable-2026-06-05"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "aliasrobotics"; repo = "cai"; diff --git a/pkgs/by-name/ca/cairo/package.nix b/pkgs/by-name/ca/cairo/package.nix index 172deabc7149..8c83fcb8aa70 100644 --- a/pkgs/by-name/ca/cairo/package.nix +++ b/pkgs/by-name/ca/cairo/package.nix @@ -34,13 +34,13 @@ stdenv.mkDerivation ( in { pname = "cairo"; - version = "1.18.4"; + version = "1.18.6"; src = fetchurl { url = "https://cairographics.org/${ if lib.mod (builtins.fromJSON (lib.versions.minor version)) 2 == 0 then "releases" else "snapshots" }/${pname}-${version}.tar.xz"; - hash = "sha256-RF7YIIpuSCPeEianTKMZ02AOg/Y2n5mxQmUAZZnDLMs="; + hash = "sha256-HHZzCBdDN6dGlNoPPsBpwnFFIWOh70VAlkxQwwHxV9Q="; }; outputs = [ diff --git a/pkgs/by-name/ca/cakelisp/package.nix b/pkgs/by-name/ca/cakelisp/package.nix index 14670c844564..860d4bfd7998 100644 --- a/pkgs/by-name/ca/cakelisp/package.nix +++ b/pkgs/by-name/ca/cakelisp/package.nix @@ -57,6 +57,6 @@ stdenv.mkDerivation { platforms = lib.platforms.darwin ++ lib.platforms.linux; maintainers = [ lib.maintainers.sbond75 ]; # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; } diff --git a/pkgs/by-name/ca/calibre-web/package.nix b/pkgs/by-name/ca/calibre-web/package.nix index f3dbabd0fe66..c9f21736cc63 100644 --- a/pkgs/by-name/ca/calibre-web/package.nix +++ b/pkgs/by-name/ca/calibre-web/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "calibre-web"; version = "0.6.27"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "janeczku"; diff --git a/pkgs/by-name/ca/cargo-auditable/package.nix b/pkgs/by-name/ca/cargo-auditable/package.nix index 8f20da716052..d3a1e3845698 100644 --- a/pkgs/by-name/ca/cargo-auditable/package.nix +++ b/pkgs/by-name/ca/cargo-auditable/package.nix @@ -19,9 +19,9 @@ let auditable-bootstrap = bootstrap; }; - version = "0.7.6"; - hash = "sha256-vQks5XIrKnYiK71kNA5BaOO51L/l+witMbvVFuNNGsQ="; - cargoHash = "sha256-82cPKy3CHddMvNBCObns3ycOn6iaZ8QDhf06HvhZZhc="; + version = "0.7.7"; + hash = "sha256-N/adXtdMJWaKiV2kc36RgDMEJ5Kx8ly+S7GrGabqjMI="; + cargoHash = "sha256-A2gKYWy2MA0kZSbhgunoEhjO4V15X+NORQdBAoB1SeQ="; # cargo-auditable cannot be built with cargo-auditable until cargo-auditable is built bootstrap = auditableBuilder { diff --git a/pkgs/by-name/ca/cargo-binstall/package.nix b/pkgs/by-name/ca/cargo-binstall/package.nix index af7818175f57..b07338793c35 100644 --- a/pkgs/by-name/ca/cargo-binstall/package.nix +++ b/pkgs/by-name/ca/cargo-binstall/package.nix @@ -3,6 +3,7 @@ rustPlatform, fetchFromGitHub, pkg-config, + aws-lc, bzip2, xz, zstd, @@ -11,22 +12,23 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "cargo-binstall"; - version = "1.26.0"; + version = "1.26.2"; src = fetchFromGitHub { owner = "cargo-bins"; repo = "cargo-binstall"; tag = "v${finalAttrs.version}"; - hash = "sha256-FEz9SEPtAT24EZdWzJNWvSTsAK/rv6ozMH2CLHwGqrI="; + hash = "sha256-nHDs3HoHKDzxKNH11X7wqUgD+8z9DWcjQYEShzzVuaw="; }; - cargoHash = "sha256-rwS29DWB9Ygyq93rLaZQb0Sml4t+B20W3VQjhHve+J8="; + cargoHash = "sha256-xJkrMHjbyv/nnmQv2Amru0FZGBdKtQaRvMxsw6oeb1k="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ + aws-lc bzip2 xz zstd diff --git a/pkgs/by-name/ca/cargo-bisect-rustc/package.nix b/pkgs/by-name/ca/cargo-bisect-rustc/package.nix index 01158a4d2eb5..0486350ae876 100644 --- a/pkgs/by-name/ca/cargo-bisect-rustc/package.nix +++ b/pkgs/by-name/ca/cargo-bisect-rustc/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, rustPlatform, pkg-config, + libgit2, openssl, runCommand, patchelf, @@ -45,7 +46,10 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ + libgit2 + openssl + ]; cargoHash = "sha256-kJ/mLHBrp67U5RkVZrkCyFjWLLwHvuLTCSxDmG1n9l0="; diff --git a/pkgs/by-name/ca/cargo-c/package.nix b/pkgs/by-name/ca/cargo-c/package.nix index 159334080752..08b6936d9974 100644 --- a/pkgs/by-name/ca/cargo-c/package.nix +++ b/pkgs/by-name/ca/cargo-c/package.nix @@ -5,6 +5,8 @@ pkg-config, curl, openssl, + libgit2, + sqlite, stdenv, libiconv, rav1e, @@ -12,25 +14,29 @@ let # this version may need to be updated along with package version - cargoVersion = "0.96.0"; + cargoVersion = "0.100.0"; in rustPlatform.buildRustPackage (finalAttrs: { pname = "cargo-c"; - version = "0.10.22"; + version = "0.10.26"; + + __structuredAttrs = true; src = fetchCrate { inherit (finalAttrs) pname; version = "${finalAttrs.version}+cargo-${cargoVersion}"; - hash = "sha256-yqSrpBZUa0NmsPawYKKgywmbbG4zgguwfDF667s7zdo="; + hash = "sha256-rt7LegE5DEOF/BP7OCSkl8hcziUpz7dJr7kMNDwXw1c="; }; - cargoHash = "sha256-yeJWZtkgCRB0ipyTslsGcJi9Fi/XoWziuv74exRhAIk="; + cargoHash = "sha256-j4PIJnPy04vEzTPTo2aD5xMKLUTeyXt13+YdZaqCm2E="; nativeBuildInputs = [ pkg-config (lib.getDev curl) ]; buildInputs = [ + sqlite + libgit2 openssl curl ] diff --git a/pkgs/by-name/ca/cargo-dist/package.nix b/pkgs/by-name/ca/cargo-dist/package.nix index 42d9b373e6ab..87f505a2f5a6 100644 --- a/pkgs/by-name/ca/cargo-dist/package.nix +++ b/pkgs/by-name/ca/cargo-dist/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, nix-update-script, pkg-config, + aws-lc, bzip2, xz, zstd, @@ -30,6 +31,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + aws-lc bzip2 xz zstd diff --git a/pkgs/by-name/ca/cargo-llvm-cov/Cargo.lock b/pkgs/by-name/ca/cargo-llvm-cov/Cargo.lock index 581557e8e329..3e3cbea739d5 100644 --- a/pkgs/by-name/ca/cargo-llvm-cov/Cargo.lock +++ b/pkgs/by-name/ca/cargo-llvm-cov/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "aho-corasick" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" dependencies = [ "memchr", ] @@ -25,15 +25,15 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] name = "bitflags" -version = "2.13.1" +version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" [[package]] name = "bstr" -version = "1.13.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f7dc094d718f2e1c1559ad110e27eeaae14a5465d3d56dd6dbd793079fbd530" +checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f" dependencies = [ "memchr", "regex-automata", @@ -48,9 +48,9 @@ checksum = "ebb068a5ba5b65a7cdba869497ca2a352e88e6093c4909ddf4d12d9d3151ee9c" [[package]] name = "camino" -version = "1.2.5" +version = "1.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d" +checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591" [[package]] name = "cargo-config2" @@ -65,7 +65,7 @@ dependencies = [ [[package]] name = "cargo-llvm-cov" -version = "0.9.0" +version = "0.9.1" dependencies = [ "anyhow", "build-context", @@ -94,15 +94,15 @@ dependencies = [ [[package]] name = "cfg-if" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" [[package]] name = "duct" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e66e9c0c03d094e1a0ba1be130b849034aa80c3a2ab8ee94316bc809f3fa684" +checksum = "61b9e2a29ff01e8bb526a571ad06c10ed72aae80d5999ed204f7971f99f19974" dependencies = [ "libc", "os_pipe", @@ -117,7 +117,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -138,9 +138,9 @@ dependencies = [ [[package]] name = "fs-err" -version = "3.3.1" +version = "3.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91aa448ca50d7e79433bdf3ee8d99215430d2ec02ade5aefab2a073a1822e8a" +checksum = "b5c95b673b8f6f7235229ae11c5642d81b04c2e64c1e2fb417bc0cf73ca45f29" dependencies = [ "autocfg", ] @@ -159,9 +159,9 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "lcov2cobertura" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf5d75e3487295500b5426ad473805696126915b3e647ecdd5b9597a17766c6a" +checksum = "e27fa1f534eedf25f44f5d37be5c2cc4fa035bdd656dee99feeec1531d51227a" dependencies = [ "anyhow", "quick-xml", @@ -177,9 +177,9 @@ checksum = "803ec87c9cfb29b9d2633f20cba1f488db3fd53f2158b1024cbefb47ba05d413" [[package]] name = "libc" -version = "0.2.189" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "linux-raw-sys" @@ -195,11 +195,11 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "normpath" -version = "1.5.1" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9985ef7269fa99f3b12437bb698381da2428743ab90f20393f399fa14cab21a" +checksum = "b11ce00d2594068e8a27c9146fdc5cf9f3ac38eb42c7cd34d05fea618873ac9f" dependencies = [ - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -216,7 +216,7 @@ checksum = "b2b03ff07a220d0d0ec9a1f0f238951b7967a5a2e96aefcd21a117b1083415e9" dependencies = [ "bstr", "normpath", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -226,7 +226,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -240,9 +240,9 @@ dependencies = [ [[package]] name = "quick-xml" -version = "0.39.4" +version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e" +checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b" dependencies = [ "memchr", ] @@ -270,9 +270,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.16" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" dependencies = [ "aho-corasick", "memchr", @@ -293,15 +293,15 @@ checksum = "b74b56ffa8bb2830709a538c2cbcae9aa062db0d2a42563bfb09bdaae44020eb" [[package]] name = "rustix" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -312,9 +312,9 @@ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" [[package]] name = "ruzstd" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a252f5e20f038fe7b4ea53e073e65398d652c864cc162fc77c56c2f13717b888" +checksum = "69e4ce4a039f42bf25920b95667e4d789e98749ab11bbb8d2c2936f788421bb5" [[package]] name = "same-file" @@ -356,9 +356,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.151" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ "itoa", "memchr", @@ -369,28 +369,28 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c" dependencies = [ "serde_core", ] [[package]] name = "shared_child" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e362d9935bc50f019969e2f9ecd66786612daae13e8f277be7bfb66e8bed3f7" +checksum = "607549934f6cc26b89cfecfdc46fa90f1e5d1536a68349b0c3a4f9d1c0d37959" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys", ] [[package]] name = "shared_thread" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52b86057fcb5423f5018e331ac04623e32d6b5ce85e33300f92c79a1973928b0" +checksum = "de1c6cdf07f3a4b1900680728ac1a12f72aa6424f37138f9253116461576e00f" [[package]] name = "shell-escape" @@ -400,9 +400,9 @@ checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f" [[package]] name = "syn" -version = "3.0.3" +version = "3.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" dependencies = [ "proc-macro2", "quote", @@ -429,7 +429,7 @@ dependencies = [ "fastrand", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -451,9 +451,9 @@ dependencies = [ [[package]] name = "toml" -version = "1.1.4+spec-1.1.0" +version = "1.2.0+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3aace63f4bbcdfc2c965b059de67119c89c4017a70d633be6c104910f67056f5" +checksum = "c5ffcdf8f50436dbbfd675c1fe1b8e0854f42b7defea8584bdebe1aee900e561" dependencies = [ "serde_core", "serde_spanned", @@ -464,27 +464,27 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "1.1.1+spec-1.1.0" +version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" dependencies = [ "serde_core", ] [[package]] name = "toml_parser" -version = "1.1.3+spec-1.1.0" +version = "1.1.5+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" dependencies = [ "winnow", ] [[package]] name = "unicode-ident" -version = "1.0.24" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" [[package]] name = "walkdir" @@ -502,7 +502,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -511,15 +511,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-sys" -version = "0.60.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" -dependencies = [ - "windows-targets", -] - [[package]] name = "windows-sys" version = "0.61.2" @@ -529,71 +520,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows-targets" -version = "0.53.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" -dependencies = [ - "windows-link", - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" - -[[package]] -name = "windows_i686_gnu" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" - -[[package]] -name = "windows_i686_msvc" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" - [[package]] name = "winnow" version = "1.0.4" @@ -602,9 +528,9 @@ checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" [[package]] name = "xattr" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08" dependencies = [ "libc", "rustix", diff --git a/pkgs/by-name/ca/cargo-llvm-cov/package.nix b/pkgs/by-name/ca/cargo-llvm-cov/package.nix index a2b5fdf6df33..0d8f2db5486b 100644 --- a/pkgs/by-name/ca/cargo-llvm-cov/package.nix +++ b/pkgs/by-name/ca/cargo-llvm-cov/package.nix @@ -18,19 +18,18 @@ lib, fetchFromGitHub, rustPlatform, - llvmPackages_22, gitMinimal, writableTmpDirAsHomeHook, }: let pname = "cargo-llvm-cov"; - version = "0.9.0"; + version = "0.9.1"; owner = "taiki-e"; homepage = "https://github.com/${owner}/${pname}"; - inherit (llvmPackages_22) llvm; + inherit (rustPlatform.rust.rustc.llvmPackages) llvm; in rustPlatform.buildRustPackage (finalAttrs: { @@ -42,7 +41,7 @@ rustPlatform.buildRustPackage (finalAttrs: { inherit owner; repo = "cargo-llvm-cov"; rev = "v${version}"; - sha256 = "sha256-tPW36leXKuJCaZYOXF0mTd+WYHfGnHNg8foSQ2N+8kU="; + hash = "sha256-eIx4T1oGmwRvb8vps2CfauSGW6MDPs1j3lN+TNKzRdM="; }; # Upstream doesn't include the lockfile so we need to add it back diff --git a/pkgs/by-name/ca/cargo-msrv/package.nix b/pkgs/by-name/ca/cargo-msrv/package.nix index a81c0aa0cf1b..8da8ecf371ab 100644 --- a/pkgs/by-name/ca/cargo-msrv/package.nix +++ b/pkgs/by-name/ca/cargo-msrv/package.nix @@ -4,8 +4,7 @@ fetchFromGitHub, pkg-config, rustup, - openssl, - stdenv, + aws-lc, makeWrapper, nix-update-script, }: @@ -30,7 +29,7 @@ rustPlatform.buildRustPackage (finalAttrs: { # Integration tests fail doCheck = false; - buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]; + buildInputs = [ aws-lc ]; nativeBuildInputs = [ pkg-config diff --git a/pkgs/by-name/ca/cargo-nextest/package.nix b/pkgs/by-name/ca/cargo-nextest/package.nix index b9d3e9b209c5..5797698b3faa 100644 --- a/pkgs/by-name/ca/cargo-nextest/package.nix +++ b/pkgs/by-name/ca/cargo-nextest/package.nix @@ -3,17 +3,19 @@ stdenv, rustPlatform, fetchFromGitHub, + pkg-config, + zstd, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "cargo-nextest"; - version = "0.9.146"; + version = "0.9.149"; src = fetchFromGitHub { owner = "nextest-rs"; repo = "nextest"; tag = "cargo-nextest-${finalAttrs.version}"; - hash = "sha256-2ndrHZ1pmu1oBZGlq5pyv0vhSEUf23gNRyyenNw0fdk="; + hash = "sha256-63Ub21JqjnKAhpIXpVUvM6sVa+xGaB15N+3NjrA+vzc="; }; # FIXME: we don't support dtrace probe generation on macOS until we have a dtrace build: https://github.com/NixOS/nixpkgs/pull/392918 @@ -21,12 +23,34 @@ rustPlatform.buildRustPackage (finalAttrs: { ./no-dtrace-macos.patch ]; - cargoHash = "sha256-ZW0/JQ9RECxfDn479ww4bO4ixoMGaM+GtGUOCWy2Cyg="; + # Replace nextest-workspace-hack, otherwise we would still depend on aws-lc + postPatch = '' + cat > workspace-hack/Cargo.toml < - cudaSupport - # /nix/store/hzxiynjmmj35fpy3jla7vcqwmzj9i449-Libsystem-1238.60.2/include/sys/_types/_mbstate_t.h:31:9: error: unknown type name '__darwin_mbstate_t' - || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); + # See: https://github.com/catboost/catboost/issues/2755 + broken = cudaSupport; }; }) diff --git a/pkgs/by-name/ca/catch2_3/package.nix b/pkgs/by-name/ca/catch2_3/package.nix index 29d15bd0bfc7..dd996acbacb6 100644 --- a/pkgs/by-name/ca/catch2_3/package.nix +++ b/pkgs/by-name/ca/catch2_3/package.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "catch2"; - version = "3.16.0"; + version = "3.16.1"; src = fetchFromGitHub { owner = "catchorg"; repo = "Catch2"; tag = "v${finalAttrs.version}"; - hash = "sha256-vvPZTQzLNGIcdDbuo0w6sQvxzLdKFCl2LNwcHu0d5I8="; + hash = "sha256-T7Wd3Fq2YwjXU7hKm0ej/CIXQtrorPr6qALzfF4UwJU="; }; postPatch = '' diff --git a/pkgs/by-name/ca/catgirldownloader/package.nix b/pkgs/by-name/ca/catgirldownloader/package.nix index 13441efc3473..940362b9d8be 100644 --- a/pkgs/by-name/ca/catgirldownloader/package.nix +++ b/pkgs/by-name/ca/catgirldownloader/package.nix @@ -16,7 +16,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "catgirldownloader"; version = "0.6.1"; - __structuredAttrs = true; pyproject = false; src = fetchFromGitHub { diff --git a/pkgs/by-name/ca/catt/package.nix b/pkgs/by-name/ca/catt/package.nix index 2298428dd0f7..88bff35b1931 100644 --- a/pkgs/by-name/ca/catt/package.nix +++ b/pkgs/by-name/ca/catt/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "catt"; version = "0.13.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "skorokithakis"; diff --git a/pkgs/by-name/cd/cdimgtools/package.nix b/pkgs/by-name/cd/cdimgtools/package.nix index cce53c313608..462b46d77952 100644 --- a/pkgs/by-name/cd/cdimgtools/package.nix +++ b/pkgs/by-name/cd/cdimgtools/package.nix @@ -10,7 +10,7 @@ perlPackages, asciidoc, xmlto, - sourceHighlight, + source-highlight, docbook_xsl, docbook_xml_dtd_45, }: @@ -31,7 +31,7 @@ stdenv.mkDerivation { asciidoc perlPackages.PodPerldoc xmlto - sourceHighlight + source-highlight docbook_xsl docbook_xml_dtd_45 ]; diff --git a/pkgs/by-name/cd/cdrtools/package.nix b/pkgs/by-name/cd/cdrtools/package.nix index ed58c6e850cb..52fcaf66825c 100644 --- a/pkgs/by-name/cd/cdrtools/package.nix +++ b/pkgs/by-name/cd/cdrtools/package.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: { "-std=gnu89" # Isn't compatible with C23 ] # https://github.com/macports/macports-ports/commit/656932616eebe60f4e8cfd96d8268801dad8224d - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DNO_SCANSTACK" ] ); diff --git a/pkgs/by-name/ce/ceph/python-common.nix b/pkgs/by-name/ce/ceph/python-common.nix index 5782719df6b2..30b2e53f69ba 100644 --- a/pkgs/by-name/ce/ceph/python-common.nix +++ b/pkgs/by-name/ce/ceph/python-common.nix @@ -10,7 +10,6 @@ ceph-python.pkgs.buildPythonPackage (finalAttrs: { src = ceph-src; pyproject = true; - __structuredAttrs = true; sourceRoot = "${ceph-src.name}/src/python-common"; diff --git a/pkgs/by-name/ce/cerberus/package.nix b/pkgs/by-name/ce/cerberus/package.nix index 30c336a6f779..12a703b7063a 100644 --- a/pkgs/by-name/ce/cerberus/package.nix +++ b/pkgs/by-name/ce/cerberus/package.nix @@ -39,6 +39,9 @@ ocamlPackages.buildDunePackage (finalAttrs: { minimalOCamlVersion = "4.12"; + # The custom installPhase installs everything into $out. + outputs = [ "out" ]; + depsBuildBuild = [ ocamlPackages.menhir ocamlPackages.lem diff --git a/pkgs/by-name/ce/certdump/package.nix b/pkgs/by-name/ce/certdump/package.nix index c1d6985d6d88..7afa09ab5eaa 100644 --- a/pkgs/by-name/ce/certdump/package.nix +++ b/pkgs/by-name/ce/certdump/package.nix @@ -35,6 +35,6 @@ buildDotnetModule { ''; license = lib.licenses.asl20; maintainers = [ lib.maintainers.baloo ]; - broken = stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin; + broken = stdenv.hostPlatform.isDarwin; }; } diff --git a/pkgs/by-name/ch/chez/package.nix b/pkgs/by-name/ch/chez/package.nix index 645746d78052..e9aa739a8cc8 100644 --- a/pkgs/by-name/ch/chez/package.nix +++ b/pkgs/by-name/ch/chez/package.nix @@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { lib.optionals stdenv.hostPlatform.isDarwin [ cctools ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/ch/chromaprint/package.nix b/pkgs/by-name/ch/chromaprint/package.nix index 5c437790af35..8e21d70ce3cc 100644 --- a/pkgs/by-name/ch/chromaprint/package.nix +++ b/pkgs/by-name/ch/chromaprint/package.nix @@ -37,6 +37,8 @@ stdenv.mkDerivation (finalAttrs: { zlib ]; + strictDeps = true; + # with trivialautovarinit enabled can produce an empty .pc file hardeningDisable = [ "trivialautovarinit" ]; @@ -74,6 +76,8 @@ stdenv.mkDerivation (finalAttrs: { runHook postCheck ''; + __structuredAttrs = true; + meta = { changelog = "https://github.com/acoustid/chromaprint/releases/tag/v${finalAttrs.version}"; homepage = "https://acoustid.org/chromaprint"; diff --git a/pkgs/by-name/ci/circt/package.nix b/pkgs/by-name/ci/circt/package.nix index e34ffb994240..5fa68d5082f6 100644 --- a/pkgs/by-name/ci/circt/package.nix +++ b/pkgs/by-name/ci/circt/package.nix @@ -84,22 +84,7 @@ stdenv.mkDerivation (finalAttrs: { # https://github.com/NixOS/nixpkgs/issues/214945 discusses this issue. # # As a temporary fix, we disabled these tests when using clang stdenv - lib.optionals stdenv.cc.isClang [ "CIRCT :: Target/ExportSystemC/.*\\.mlir" ] - # Disable some tests on x86_64-darwin - ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [ - # These test seem to pass on hydra (rosetta) but not on x86_64-darwin machines - "CIRCT :: Target/ExportSMTLIB/.*\\.mlir" - "CIRCT :: circt-bmc/.*\\.mlir" - # These tests were having issues on rosetta - "CIRCT :: Dialect/.*/Reduction/.*\\.mlir" - "CIRCT :: Dialect/SMT/.*\\.mlir" - "CIRCT :: circt-as-dis/.*\\.mlir" - "CIRCT :: circt-reduce/.*\\.mlir" - "CIRCT :: circt-test/basic.mlir" - "CIRCT :: firld/.*\\.mlir" - "CIRCT :: Tools/domaintool/clock-spec-json.mlir" - ] - ++ [ + lib.optionals stdenv.cc.isClang [ "CIRCT :: Target/ExportSystemC/.*\\.mlir" ] ++ [ # Temporarily disable for bump: https://github.com/llvm/circt/issues/8000 "CIRCT :: Dialect/FIRRTL/SFCTests/ExtractSeqMems/Compose.fir" "CIRCT :: Dialect/FIRRTL/SFCTests/ExtractSeqMems/Simple2.fir" diff --git a/pkgs/by-name/cl/clickable/package.nix b/pkgs/by-name/cl/clickable/package.nix index f0b2f1cbc9fa..251160916c89 100644 --- a/pkgs/by-name/cl/clickable/package.nix +++ b/pkgs/by-name/cl/clickable/package.nix @@ -21,8 +21,6 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-OCwGaV4IsX2Tcd8vcCZ+hYrCHuq9ADm3O81UdH3roAA="; }; - __structuredAttrs = true; - build-system = [ python3Packages.setuptools ]; dependencies = with python3Packages; [ diff --git a/pkgs/by-name/cl/clightning/package.nix b/pkgs/by-name/cl/clightning/package.nix index 943201f1962c..1ceab005f7b8 100644 --- a/pkgs/by-name/cl/clightning/package.nix +++ b/pkgs/by-name/cl/clightning/package.nix @@ -105,13 +105,6 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; - # workaround for build issue, happens only x86_64-darwin, not aarch64-darwin - # ccan/ccan/fdpass/fdpass.c:16:8: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant] - # char buf[CMSG_SPACE(sizeof(fd))]; - env.NIX_CFLAGS_COMPILE = lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 - ) "-Wno-error=gnu-folding-constant"; - passthru.updateScript = ./update.sh; meta = { diff --git a/pkgs/by-name/cl/cloud-custodian/package.nix b/pkgs/by-name/cl/cloud-custodian/package.nix index b8b1c0bd86b9..ef6612660a73 100644 --- a/pkgs/by-name/cl/cloud-custodian/package.nix +++ b/pkgs/by-name/cl/cloud-custodian/package.nix @@ -10,8 +10,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { version = "0.9.53.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "cloud-custodian"; repo = "cloud-custodian"; diff --git a/pkgs/by-name/co/codechecker-unwrapped/package.nix b/pkgs/by-name/co/codechecker-unwrapped/package.nix index d6beaad5f1cf..fc220b5c3783 100644 --- a/pkgs/by-name/co/codechecker-unwrapped/package.nix +++ b/pkgs/by-name/co/codechecker-unwrapped/package.nix @@ -11,8 +11,6 @@ python313Packages.buildPythonApplication (finalAttrs: { version = "6.29.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "codechecker"; diff --git a/pkgs/by-name/co/comrak/package.nix b/pkgs/by-name/co/comrak/package.nix index 34e7d0e54b06..752b01f9882d 100644 --- a/pkgs/by-name/co/comrak/package.nix +++ b/pkgs/by-name/co/comrak/package.nix @@ -2,6 +2,8 @@ lib, rustPlatform, fetchFromGitHub, + pkg-config, + oniguruma, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -17,6 +19,10 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-Bc9c0urg+iAKyjg9d2wwpLgq3EwJn4mJLl8oAB8PZD8="; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ oniguruma ]; + meta = { description = "CommonMark-compatible GitHub Flavored Markdown parser and formatter"; mainProgram = "comrak"; diff --git a/pkgs/by-name/co/coq-kernel/package.nix b/pkgs/by-name/co/coq-kernel/package.nix index 1b674ef7cd43..e64c14243c7d 100644 --- a/pkgs/by-name/co/coq-kernel/package.nix +++ b/pkgs/by-name/co/coq-kernel/package.nix @@ -83,8 +83,8 @@ let } { name = "OCAMLPATH"; - value = lib.concatStringsSep ":" ( - map (x: "${x}/lib/ocaml/${coq.ocaml.version}/site-lib/") ([ coq.ocamlPackages.findlib ] ++ packages) + value = lib.makeSearchPathOutput "dev" "lib/ocaml/${coq.ocaml.version}/site-lib" ( + [ coq.ocamlPackages.findlib ] ++ packages ); } ]; diff --git a/pkgs/by-name/co/cosmic-edit/package.nix b/pkgs/by-name/co/cosmic-edit/package.nix index 3b792cb7d68f..d3e47b2c915c 100644 --- a/pkgs/by-name/co/cosmic-edit/package.nix +++ b/pkgs/by-name/co/cosmic-edit/package.nix @@ -11,6 +11,7 @@ fontconfig, freetype, oniguruma, + zstd, nixosTests, nix-update-script, }: @@ -53,6 +54,7 @@ rustPlatform.buildRustPackage (finalAttrs: { fontconfig freetype oniguruma + zstd ]; dontUseJustBuild = true; diff --git a/pkgs/by-name/co/cosmic-files/package.nix b/pkgs/by-name/co/cosmic-files/package.nix index 24ae38e10c8e..9e656e93dd03 100644 --- a/pkgs/by-name/co/cosmic-files/package.nix +++ b/pkgs/by-name/co/cosmic-files/package.nix @@ -6,6 +6,7 @@ just, libcosmicAppHook, glib, + zstd, nix-update-script, nixosTests, }: @@ -35,7 +36,10 @@ rustPlatform.buildRustPackage (finalAttrs: { rustPlatform.bindgenHook ]; - buildInputs = [ glib ]; + buildInputs = [ + glib + zstd + ]; dontUseJustBuild = true; dontUseJustCheck = true; diff --git a/pkgs/by-name/co/cosmic-initial-setup/package.nix b/pkgs/by-name/co/cosmic-initial-setup/package.nix index f00066b96f85..51fd2c7aa98a 100644 --- a/pkgs/by-name/co/cosmic-initial-setup/package.nix +++ b/pkgs/by-name/co/cosmic-initial-setup/package.nix @@ -4,11 +4,13 @@ rustPlatform, fetchFromGitHub, just, + aws-lc, killall, libcosmicAppHook, libinput, openssl, udev, + zstd, nixosTests, nix-update-script, }: @@ -58,10 +60,12 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + aws-lc killall libinput openssl udev + zstd ]; dontUseJustBuild = true; diff --git a/pkgs/by-name/co/cosmic-settings-daemon/package.nix b/pkgs/by-name/co/cosmic-settings-daemon/package.nix index 4ae17a241671..2fa142450aa0 100644 --- a/pkgs/by-name/co/cosmic-settings-daemon/package.nix +++ b/pkgs/by-name/co/cosmic-settings-daemon/package.nix @@ -13,6 +13,7 @@ udev, libxkbcommon, wayland, + zstd, openssl, nixosTests, nix-update-script, @@ -55,6 +56,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pipewire libxkbcommon wayland + zstd ]; dontUseJustBuild = true; diff --git a/pkgs/by-name/co/cosmic-store/package.nix b/pkgs/by-name/co/cosmic-store/package.nix index 59d50c4393d0..9e692f06e384 100644 --- a/pkgs/by-name/co/cosmic-store/package.nix +++ b/pkgs/by-name/co/cosmic-store/package.nix @@ -6,9 +6,11 @@ libcosmicAppHook, pkg-config, just, + aws-lc, glib, flatpak, openssl, + zstd, nix-update-script, nixosTests, }: @@ -39,9 +41,11 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + aws-lc glib flatpak openssl + zstd ]; dontUseJustBuild = true; diff --git a/pkgs/by-name/co/cosmic-term/package.nix b/pkgs/by-name/co/cosmic-term/package.nix index 420e40e6561f..ae2b21ece7ab 100644 --- a/pkgs/by-name/co/cosmic-term/package.nix +++ b/pkgs/by-name/co/cosmic-term/package.nix @@ -9,6 +9,7 @@ fontconfig, freetype, libinput, + zstd, nix-update-script, nixosTests, }: @@ -42,6 +43,7 @@ rustPlatform.buildRustPackage (finalAttrs: { fontconfig freetype libinput + zstd ]; dontUseJustBuild = true; diff --git a/pkgs/by-name/co/countryguess/package.nix b/pkgs/by-name/co/countryguess/package.nix index 2e16f204d1ef..19366a21f90a 100644 --- a/pkgs/by-name/co/countryguess/package.nix +++ b/pkgs/by-name/co/countryguess/package.nix @@ -20,8 +20,6 @@ python3Packages.buildPythonApplication { hash = "sha256-OaCHrUvUKvdTNophi9qpGMzAIDcKfRJ9o5DkT1PrwDc="; }; - __structuredAttrs = true; - dependencies = with python3Packages; [ art colorama diff --git a/pkgs/by-name/cp/cpio/package.nix b/pkgs/by-name/cp/cpio/package.nix index 752d7416a3a3..319e3aad4eb5 100644 --- a/pkgs/by-name/cp/cpio/package.nix +++ b/pkgs/by-name/cp/cpio/package.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { texinfo # for makeinfo ]; + strictDeps = true; + separateDebugInfo = true; # The code won't compile in c23 mode. @@ -73,6 +75,8 @@ stdenv.mkDerivation (finalAttrs: { initrd = nixosTests.systemd-initrd-simple; }; + __structuredAttrs = true; + meta = { homepage = "https://www.gnu.org/software/cpio/"; description = "Program to create or extract from cpio archives"; diff --git a/pkgs/by-name/cr/credspy/package.nix b/pkgs/by-name/cr/credspy/package.nix index f964103921ab..0b0e5319fe55 100644 --- a/pkgs/by-name/cr/credspy/package.nix +++ b/pkgs/by-name/cr/credspy/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.0.0-unstable-2026-06-22"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "RedByte1337"; repo = "CredSpy"; diff --git a/pkgs/by-name/cr/credwolf/package.nix b/pkgs/by-name/cr/credwolf/package.nix index 76587c47b9b5..efa79cb8c55c 100644 --- a/pkgs/by-name/cr/credwolf/package.nix +++ b/pkgs/by-name/cr/credwolf/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "StrongWind1"; repo = "CredWolf"; diff --git a/pkgs/by-name/cr/cryptop/package.nix b/pkgs/by-name/cr/cryptop/package.nix index d752b34e6495..b7a4448556c0 100644 --- a/pkgs/by-name/cr/cryptop/package.nix +++ b/pkgs/by-name/cr/cryptop/package.nix @@ -7,7 +7,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "cryptop"; version = "0.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huwwp"; diff --git a/pkgs/by-name/cu/curlMinimal/package.nix b/pkgs/by-name/cu/curlMinimal/package.nix index f30e69b78bbe..91434b605df3 100644 --- a/pkgs/by-name/cu/curlMinimal/package.nix +++ b/pkgs/by-name/cu/curlMinimal/package.nix @@ -88,7 +88,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "curl"; - version = "8.22.0"; + version = "8.23.0"; src = fetchurl { urls = [ @@ -97,7 +97,7 @@ stdenv.mkDerivation (finalAttrs: { builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version }/curl-${finalAttrs.version}.tar.xz" ]; - hash = "sha256-9+866KIuUh8omAP+k1Q+tkwym1iqc6niJN/ZFaKl9Pc="; + hash = "sha256-ja3X0lNqMU+YKtBaZRtxP0Jr99Aswsds/7l5byIY5sU="; }; # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion diff --git a/pkgs/by-name/da/daktari/package.nix b/pkgs/by-name/da/daktari/package.nix index a61c7d925ba1..433bd6165fed 100644 --- a/pkgs/by-name/da/daktari/package.nix +++ b/pkgs/by-name/da/daktari/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "daktari"; version = "0.0.360"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "genio-learn"; diff --git a/pkgs/by-name/db/dbus-broker/package.nix b/pkgs/by-name/db/dbus-broker/package.nix index dd59f9faa64e..16df8701bf18 100644 --- a/pkgs/by-name/db/dbus-broker/package.nix +++ b/pkgs/by-name/db/dbus-broker/package.nix @@ -9,7 +9,7 @@ pkg-config, dbus, linuxHeaders, - systemd, + systemdLibs, expat, }: @@ -156,7 +156,7 @@ stdenv.mkDerivation (finalAttrs: { c-utf8 dbus linuxHeaders - systemd + systemdLibs expat ]; @@ -175,9 +175,6 @@ stdenv.mkDerivation (finalAttrs: { postInstall = '' install -Dm444 $src/README.md $out/share/doc/dbus-broker/README - - sed -i $out/lib/systemd/{system,user}/dbus-broker.service \ - -e 's,^ExecReload.*busctl,ExecReload=${systemd}/bin/busctl,' ''; doCheck = true; diff --git a/pkgs/by-name/dc/dconf/package.nix b/pkgs/by-name/dc/dconf/package.nix index 1396fe83303a..177a67a365ae 100644 --- a/pkgs/by-name/dc/dconf/package.nix +++ b/pkgs/by-name/dc/dconf/package.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "dconf"; - version = "0.49.0"; + version = "51.0"; __structuredAttrs = true; strictDeps = true; @@ -41,8 +41,8 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optional withDocs "devdoc"; src = fetchurl { - url = "mirror://gnome/sources/dconf/${lib.versions.majorMinor finalAttrs.version}/dconf-${finalAttrs.version}.tar.xz"; - sha256 = "FqR+SaWBVtu5ZXjhcIMlKZ5MGe6pvhKNW9Ev0JY9bDY="; + url = "mirror://gnome/sources/dconf/${lib.versions.major finalAttrs.version}/dconf-${finalAttrs.version}.tar.xz"; + sha256 = "5lwbeGf4Nvqtn57gSs9cWmyuK7x4SDP+CTIH4MtZAkg="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/de/deeptools/package.nix b/pkgs/by-name/de/deeptools/package.nix index 8f6d2e70001e..cf3c5ba3b220 100644 --- a/pkgs/by-name/de/deeptools/package.nix +++ b/pkgs/by-name/de/deeptools/package.nix @@ -12,7 +12,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "deeptools"; version = "3.5.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "deeptools"; diff --git a/pkgs/by-name/de/dejagnu/package.nix b/pkgs/by-name/de/dejagnu/package.nix index c97753f7d780..85333e550652 100644 --- a/pkgs/by-name/de/dejagnu/package.nix +++ b/pkgs/by-name/de/dejagnu/package.nix @@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: { ''; configureScript = "../configure"; - doCheck = !(with stdenv.hostPlatform; isDarwin && isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; # Note: The test-suite *requires* /dev/pts among the `build-chroot-dirs' of # the build daemon when building in a chroot. See diff --git a/pkgs/by-name/de/depthcharge-tools/package.nix b/pkgs/by-name/de/depthcharge-tools/package.nix index 13fdd7a49214..fce03b00a3db 100644 --- a/pkgs/by-name/de/depthcharge-tools/package.nix +++ b/pkgs/by-name/de/depthcharge-tools/package.nix @@ -54,8 +54,6 @@ python3Packages.buildPythonApplication (finalAttrs: { passthru.updateScript = nix-update-script { }; - __structuredAttrs = true; - meta = { description = "Tools to manage the Chrome OS bootloader"; homepage = "https://gitlab.nura.eco/nura/depthcharge-tools"; diff --git a/pkgs/by-name/de/devenv/package.nix b/pkgs/by-name/de/devenv/package.nix index a8aa99767ef7..51ce6dd49771 100644 --- a/pkgs/by-name/de/devenv/package.nix +++ b/pkgs/by-name/de/devenv/package.nix @@ -2,7 +2,9 @@ lib, stdenv, useMoldLinker, + applyPatches, fetchFromGitHub, + fetchpatch, gitMinimal, makeBinaryWrapper, cmake, @@ -11,6 +13,7 @@ testers, cachix, nixVersions, + aws-lc, openssl, dbus, protobuf, @@ -19,6 +22,7 @@ glibcLocalesUtf8, boehmgc, libghostty-vt, + zstd, llvmPackages, nixd, bash, @@ -30,12 +34,23 @@ let devenvNixVersion = "2.35"; devenvNixRev = "2a2ff1045ef7361212d7eac0c062534538968de6"; - devenvNixSrc = fetchFromGitHub { + # Patch the source directly to keep Nix's version parseable by nix-bindings. + devenvNixSrc = applyPatches { name = "devenv-nix-${devenvNixVersion}-source"; - owner = "cachix"; - repo = "nix"; - rev = devenvNixRev; - hash = "sha256-1CSuPNIbGyL2JJjOVg0KU7NWst1yZ6iXGDkiN/3bY5o="; + src = fetchFromGitHub { + name = "devenv-nix-${devenvNixVersion}-source"; + owner = "cachix"; + repo = "nix"; + rev = devenvNixRev; + hash = "sha256-1CSuPNIbGyL2JJjOVg0KU7NWst1yZ6iXGDkiN/3bY5o="; + }; + # Fix ignored nodiscard results when building the pinned Nix fork on Darwin. + patches = [ + (fetchpatch { + url = "https://github.com/cachix/nix/commit/34f5e5824de5025c63895ac64457c3a077548fb4.patch"; + hash = "sha256-bYLhGWpAxyLd50HHt6s7sVlkDEFAJ72Z5fcfWeYxCOo="; + }) + ]; }; nix_components = (nixVersions.nixComponents_git.overrideSource devenvNixSrc).overrideScope ( @@ -68,7 +83,6 @@ buildRustPackage { env = { RUSTFLAGS = "--cfg tracing_unstable"; LIBSQLITE3_SYS_USE_PKG_CONFIG = "1"; - OPENSSL_NO_VENDOR = "1"; DEVENV_IS_RELEASE = true; }; @@ -91,6 +105,7 @@ buildRustPackage { ]; buildInputs = [ + aws-lc openssl sqlite dbus @@ -103,6 +118,7 @@ buildRustPackage { nix_components.nix-cmd-c nix_components.nix-fetchers-c nix_components.nix-main-c + zstd ]; nativeCheckInputs = [ diff --git a/pkgs/by-name/di/diffutils/package.nix b/pkgs/by-name/di/diffutils/package.nix index 8684bdaeddec..10777df19e70 100644 --- a/pkgs/by-name/di/diffutils/package.nix +++ b/pkgs/by-name/di/diffutils/package.nix @@ -46,8 +46,6 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; enableParallelBuilding = true; - # Disable stack-related gnulib tests on x86_64-darwin because they have problems running under - # Rosetta 2: test-c-stack hangs, test-sigsegv-catch-stackoverflow and test-sigaction fail. # Disable all gnulib tests when building on Darwin due to test-nl_langinfo-mt failure # known by upstream https://www.mail-archive.com/bug-gnulib@gnu.org/msg50806.html postPatch = @@ -55,9 +53,7 @@ stdenv.mkDerivation (finalAttrs: { '' sed -i 's:gnulib-tests::g' Makefile.in '' - else if - ((stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) || (stdenv.hostPlatform.isAarch32)) - then + else if stdenv.hostPlatform.isAarch32 then '' sed -i -E 's:[[:space:]]test-c-stack2?\.sh::g' gnulib-tests/Makefile.in sed -i -E 's:[[:space:]]test-sigsegv-catch-stackoverflow[12]\$\(EXEEXT\)::g' gnulib-tests/Makefile.in diff --git a/pkgs/by-name/dl/dlib/package.nix b/pkgs/by-name/dl/dlib/package.nix index 9372713c7ae0..60d30ac9f959 100644 --- a/pkgs/by-name/dl/dlib/package.nix +++ b/pkgs/by-name/dl/dlib/package.nix @@ -40,7 +40,7 @@ (lib.cmakeBool "USE_AVX_INSTRUCTIONS" avxSupport) (lib.cmakeBool "DLIB_USE_CUDA" cudaSupport) ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ (lib.cmakeBool "USE_NEON_INSTRUCTIONS" false) ] ++ lib.optionals cudaSupport [ diff --git a/pkgs/by-name/dm/dmd/generic.nix b/pkgs/by-name/dm/dmd/generic.nix index 6c70caaefaa5..4d033bbba9f3 100644 --- a/pkgs/by-name/dm/dmd/generic.nix +++ b/pkgs/by-name/dm/dmd/generic.nix @@ -235,8 +235,5 @@ stdenv.mkDerivation (finalAttrs: { "x86_64-linux" "i686-linux" ]; - # ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset file '/private/tmp/nix-build-dmd-2.109.1.drv-0/.rdmd-301/rdmd-build.d-A1CF043A7D87C5E88A58F3C0EF5A0DF7/objs/build.o' for architecture x86_64 - # clang-16: error: linker command failed with exit code 1 (use -v to see invocation) - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; }; }) diff --git a/pkgs/by-name/dn/dnsvizor/package.nix b/pkgs/by-name/dn/dnsvizor/package.nix index f1b53b9c101e..4bc57cf29c2a 100644 --- a/pkgs/by-name/dn/dnsvizor/package.nix +++ b/pkgs/by-name/dn/dnsvizor/package.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation { nativeBuildInputs = with ocamlPackages; [ - crunch.bin + crunch findlib mirage ocaml diff --git a/pkgs/by-name/do/doc2dash/package.nix b/pkgs/by-name/do/doc2dash/package.nix index fb5609690a05..d5804ef55157 100644 --- a/pkgs/by-name/do/doc2dash/package.nix +++ b/pkgs/by-name/do/doc2dash/package.nix @@ -8,7 +8,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "doc2dash"; version = "3.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hynek"; diff --git a/pkgs/by-name/do/dockutil/package.nix b/pkgs/by-name/do/dockutil/package.nix index e9ee0e77057f..2ad06c52b17c 100644 --- a/pkgs/by-name/do/dockutil/package.nix +++ b/pkgs/by-name/do/dockutil/package.nix @@ -9,9 +9,7 @@ swiftpm2nix, libarchive, p7zip, - # Building from source on x86_64 fails (among other things) due to: - # error: cannot load underlying module for 'Darwin' - fromSource ? (stdenv.system != "x86_64-darwin"), + fromSource ? true, }: let @@ -58,7 +56,7 @@ let installPhase = '' runHook preInstall - install -Dm755 .build/${stdenv.hostPlatform.darwinArch}-apple-macosx/release/dockutil -t $out/bin + install -Dm755 $(swiftpmBinPath)/dockutil -t $out/bin runHook postInstall ''; }); diff --git a/pkgs/by-name/dr/dr14_tmeter/package.nix b/pkgs/by-name/dr/dr14_tmeter/package.nix index 27696128cbec..2c1004258f79 100644 --- a/pkgs/by-name/dr/dr14_tmeter/package.nix +++ b/pkgs/by-name/dr/dr14_tmeter/package.nix @@ -13,7 +13,6 @@ python3Packages.buildPythonApplication { pname = "dr14_tmeter"; version = "1.0.16-unstable-2025-09-27"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hboetes"; diff --git a/pkgs/by-name/du/duckdb/package.nix b/pkgs/by-name/du/duckdb/package.nix index 6958e97117f3..5985ccc6f280 100644 --- a/pkgs/by-name/du/duckdb/package.nix +++ b/pkgs/by-name/du/duckdb/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, cmake, ninja, openssl, @@ -47,6 +48,19 @@ stdenv.mkDerivation (finalAttrs: { tag = "v${finalAttrs.version}"; }; + patches = [ + # Fix uninitialized terminal width in the unittest progress reporter. + # It padded every progress line to a garbage width when stdin is not a TTY and + # blew up the build log past Hydra's limit. + # Patch is merged upstream and should be in DuckDB >=2.0.1 + # https://github.com/NixOS/nixpkgs/issues/570642 + # https://github.com/duckdb/duckdb/pull/27894 + (fetchpatch2 { + url = "https://github.com/duckdb/duckdb/commit/95e44bf80b7306eac421a16b87507bdec5aa3321.patch?full_index=1"; + hash = "sha256-aDGSpXsvOTz8ywsboSeeDDeKtEUOlt+CPsiJq6jrY70="; + }) + ]; + outputs = [ "out" "lib" @@ -68,10 +82,6 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals (!canExecute) [ (lib.cmakeFeature "DUCKDB_EXPLICIT_PLATFORM" duckdbPlatform) - ] - ++ lib.optionals stdenv.cc.isGNU [ - # causes massive amounts of logs, exceeding hydra's limits on some platforms - (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-Wno-sfinae-incomplete") ]; doInstallCheck = canExecute; @@ -171,12 +181,11 @@ stdenv.mkDerivation (finalAttrs: { ); LD_LIBRARY_PATH = lib.optionalString stdenv.hostPlatform.isDarwin "DY" + "LD_LIBRARY_PATH"; in - # FIXME: do something about the excessive logging on x86_64-linux (> 250 MiB). '' runHook preInstallCheck (($(ulimit -n) < 1024)) && ulimit -n 1024 - HOME="$(mktemp -d)" ${LD_LIBRARY_PATH}="$lib/lib" ./test/unittest ${toString excludes}${lib.optionalString stdenv.hostPlatform.isx86_64 " >/dev/null"} + HOME="$(mktemp -d)" ${LD_LIBRARY_PATH}="$lib/lib" ./test/unittest ${toString excludes} runHook postInstallCheck ''; diff --git a/pkgs/by-name/du/dump_syms/package.nix b/pkgs/by-name/du/dump_syms/package.nix index 29955f5fe098..f340fc3dfb9c 100644 --- a/pkgs/by-name/du/dump_syms/package.nix +++ b/pkgs/by-name/du/dump_syms/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, pkg-config, openssl, + zstd, # tests firefox-esr-unwrapped, @@ -31,6 +32,7 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ openssl + zstd ]; checkFlags = [ diff --git a/pkgs/by-name/du/dumpyara/package.nix b/pkgs/by-name/du/dumpyara/package.nix index e767ee2548f2..28745dbfbf18 100644 --- a/pkgs/by-name/du/dumpyara/package.nix +++ b/pkgs/by-name/du/dumpyara/package.nix @@ -71,8 +71,6 @@ python3Packages.buildPythonApplication (finalAttrs: { updateScript = nix-update-script { }; }; - __structuredAttrs = true; - meta = { description = "Android firmware dumper"; homepage = "https://github.com/sebaubuntu-python/dumpyara"; diff --git a/pkgs/by-name/du/durdraw/package.nix b/pkgs/by-name/du/durdraw/package.nix index de832c40cd55..f96c3e833d07 100644 --- a/pkgs/by-name/du/durdraw/package.nix +++ b/pkgs/by-name/du/durdraw/package.nix @@ -9,16 +9,15 @@ tzdata, }: -python3Packages.buildPythonApplication rec { +python3Packages.buildPythonApplication (finalAttrs: { pname = "durdraw"; version = "0.31.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "durdraw"; repo = "durdraw"; - tag = version; + tag = finalAttrs.version; hash = "sha256-aOLpRFxguxZpeV1MkPQzposknDion3Np+izIsYVBcSA="; }; @@ -66,10 +65,10 @@ python3Packages.buildPythonApplication rec { block characters, and PNG/GIF export via ansilove. ''; homepage = "https://durdraw.org"; - changelog = "https://github.com/durdraw/durdraw/releases/tag/${version}"; + changelog = "https://github.com/durdraw/durdraw/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ tahuffman1s ]; mainProgram = "durdraw"; platforms = lib.platforms.unix; }; -} +}) diff --git a/pkgs/by-name/dv/dvr-scan/package.nix b/pkgs/by-name/dv/dvr-scan/package.nix index 5dde8095b105..b0399cd5f89e 100644 --- a/pkgs/by-name/dv/dvr-scan/package.nix +++ b/pkgs/by-name/dv/dvr-scan/package.nix @@ -4,17 +4,15 @@ fetchFromGitHub, writableTmpDirAsHomeHook, }: -python3Packages.buildPythonApplication rec { +python3Packages.buildPythonApplication (finalAttrs: { pname = "dvr-scan"; version = "1.8.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Breakthrough"; repo = "DVR-Scan"; - tag = "v${version}-release"; + tag = "v${finalAttrs.version}-release"; hash = "sha256-+1liOZu8360aQlNwWaJXJQS/0POT9bTcIUkDg/v4lxU="; }; @@ -62,9 +60,9 @@ python3Packages.buildPythonApplication rec { Command-line application that automatically detects motion events in video files (e.g. security camera footage). DVR-Scan looks for areas in footage containing motion, and saves each event to a separate video clip. DVR-Scan is free and open-source software, and works on Windows, Linux, and Mac. ''; homepage = "https://www.dvr-scan.com"; - changelog = "https://github.com/Breakthrough/DVR-Scan/releases/tag/v${version}-release"; + changelog = "https://github.com/Breakthrough/DVR-Scan/releases/tag/${finalAttrs.src.tag}"; mainProgram = "dvr-scan"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ DataHearth ]; }; -} +}) diff --git a/pkgs/by-name/ea/easytier/package.nix b/pkgs/by-name/ea/easytier/package.nix index f43b7f0556a3..246b3af4a245 100644 --- a/pkgs/by-name/ea/easytier/package.nix +++ b/pkgs/by-name/ea/easytier/package.nix @@ -5,6 +5,10 @@ fetchpatch2, rustPlatform, protobuf, + pkg-config, + aws-lc, + zstd, + sqlite, nixosTests, nix-update-script, installShellFiles, @@ -48,6 +52,13 @@ rustPlatform.buildRustPackage (finalAttrs: { rustPlatform.bindgenHook installShellFiles mold + pkg-config + ]; + + buildInputs = [ + aws-lc + zstd + sqlite ]; buildNoDefaultFeatures = stdenv.hostPlatform.isMips; diff --git a/pkgs/by-name/eb/ebtables/package.nix b/pkgs/by-name/eb/ebtables/package.nix index b996298f4e25..c682fc37b5ba 100644 --- a/pkgs/by-name/eb/ebtables/package.nix +++ b/pkgs/by-name/eb/ebtables/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, }: stdenv.mkDerivation (finalAttrs: { @@ -13,6 +14,14 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "0apxgmkhsk3vxn9q3libxn3dgrdljrxyy4mli2gk49m7hi3na7xp"; }; + # Fix build with linux-headers 7.3 + patches = lib.optionals stdenv.hostPlatform.isAarch64 [ + (fetchpatch { + url = "https://lore.kernel.org/netfilter-devel/CAD04=wrZafKknWixGGRZWtYD_ydfdL4Uk39s_RkwZ6WUEVATKg@mail.gmail.com/2-0001-include-drop-bundled-copy-of-linux-types.h.patch"; + hash = "sha256-bEOXZTK557fVfRDrgd0RZX2N3XJxJG78S/MnvdG0UqY="; + }) + ]; + makeFlags = [ "LIBDIR=$(out)/lib" "BINDIR=$(out)/sbin" diff --git a/pkgs/by-name/ec/echidna/package.nix b/pkgs/by-name/ec/echidna/package.nix index e23895064382..d2e9677df84e 100644 --- a/pkgs/by-name/ec/echidna/package.nix +++ b/pkgs/by-name/ec/echidna/package.nix @@ -97,7 +97,7 @@ haskellPackages.mkDerivation rec { postInstall = with haskellPackages; # https://github.com/NixOS/nixpkgs/pull/304352 - lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + lib.optionalString stdenv.hostPlatform.isDarwin '' remove-references-to -t ${warp.out} "$out/bin/echidna" remove-references-to -t ${wreq.out} "$out/bin/echidna" '' diff --git a/pkgs/by-name/ed/edk2-uefi-shell/package.nix b/pkgs/by-name/ed/edk2-uefi-shell/package.nix index 47ad2e5196b2..bcb59b8bea0a 100644 --- a/pkgs/by-name/ed/edk2-uefi-shell/package.nix +++ b/pkgs/by-name/ed/edk2-uefi-shell/package.nix @@ -56,6 +56,6 @@ edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: { LunNova mjoerg ]; - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; }) diff --git a/pkgs/by-name/el/elements/package.nix b/pkgs/by-name/el/elements/package.nix index 33c5fde1127c..ccaaf190f008 100644 --- a/pkgs/by-name/el/elements/package.nix +++ b/pkgs/by-name/el/elements/package.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals stdenv.hostPlatform.isLinux [ util-linux ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ hexdump ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ] ++ lib.optionals withGui [ qt5.wrapQtAppsHook ]; @@ -78,7 +78,7 @@ stdenv.mkDerivation (finalAttrs: { # fix "Killed: 9 test/test_bitcoin" # https://github.com/NixOS/nixpkgs/issues/179474 - hardeningDisable = lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [ + hardeningDisable = lib.optionals stdenv.hostPlatform.isDarwin [ "fortify" "stackprotector" ]; diff --git a/pkgs/by-name/em/embedxpl/package.nix b/pkgs/by-name/em/embedxpl/package.nix index 143bf86d04de..814bfdfe58d1 100644 --- a/pkgs/by-name/em/embedxpl/package.nix +++ b/pkgs/by-name/em/embedxpl/package.nix @@ -16,8 +16,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { hash = "sha256-rBmjUY9t6oKGXMiO1ZauY1SuA1D/F0YNe6aJip7NdiM="; }; - __structuredAttrs = true; - build-system = with python3.pkgs; [ setuptools ]; dependencies = with python3.pkgs; [ diff --git a/pkgs/by-name/ep/epiphany/CVE-2026-18487.patch b/pkgs/by-name/ep/epiphany/CVE-2026-18487.patch deleted file mode 100644 index 82524eee8fa0..000000000000 --- a/pkgs/by-name/ep/epiphany/CVE-2026-18487.patch +++ /dev/null @@ -1,85 +0,0 @@ -From cecdea95801630c87ef1cc502437fedc608631bd Mon Sep 17 00:00:00 2001 -From: Michael Catanzaro -Date: Fri, 10 Jul 2026 08:55:09 -0500 -Subject: [PATCH] Fix address bar spoofing when userinfo contains : character - -Our algorithm for finding the host component of the URL without using a -URL parser is easily defeated by a colon in the userinfo section. -Tighten this up. - -It's a real shame that we cannot use a normal URL parser here. But the -goal is to return a pointer into the original string, without mutating -it, so that's not an option. - -Fixes #2897 - - -(cherry picked from commit 0dde1d369458ac5c44b74b5ad3c433f825f6f8af) - -Co-authored-by: Michael Catanzaro ---- - lib/ephy-uri-helpers.c | 7 ++++--- - tests/ephy-uri-helpers-test.c | 16 +++++++++++++++- - 2 files changed, 19 insertions(+), 4 deletions(-) - -diff --git a/lib/ephy-uri-helpers.c b/lib/ephy-uri-helpers.c -index aa11edb43..a67005741 100644 ---- a/lib/ephy-uri-helpers.c -+++ b/lib/ephy-uri-helpers.c -@@ -96,11 +96,12 @@ ephy_uri_get_base_domain (const char *hostname) - static const char * - get_first_colon_after_host (const char *authority_start) - { -- const char *search_start = authority_start; -+ const char *userinfo_end = strchr (authority_start, '@'); -+ const char *search_start = userinfo_end ? userinfo_end + 1 : authority_start; - - /* Skip colons in IPv6 addresses */ -- if (authority_start[0] == '[') { -- const char *bracket_close = strchr (authority_start, ']'); -+ if (search_start[0] == '[') { -+ const char *bracket_close = strchr (search_start, ']'); - if (bracket_close) - search_start = bracket_close; - } -diff --git a/tests/ephy-uri-helpers-test.c b/tests/ephy-uri-helpers-test.c -index daf5b7180..b800419db 100644 ---- a/tests/ephy-uri-helpers-test.c -+++ b/tests/ephy-uri-helpers-test.c -@@ -30,12 +30,25 @@ test_ephy_uri_decode (void) - - result = ephy_uri_decode ("https://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8"); - g_assert_cmpstr (result, ==, "https://ja.wikipedia.org/wiki/メインページ"); -- - g_clear_pointer (&result, g_free); -+ - result = ephy_uri_decode ("https://xn--9dbaqfu.xn--4dbrk0ce/"); - g_assert_cmpstr (result, ==, "https://כולנו.ישראל/"); - } - -+static void -+test_ephy_uri_get_decoded_host (void) -+{ -+ g_autofree char *result = NULL; -+ -+ result = ephy_uri_get_decoded_host ("https://example.com:80@www.gnome.org/"); -+ g_assert_cmpstr (result, ==, "www.gnome.org"); -+ g_clear_pointer (&result, g_free); -+ -+ result = ephy_uri_get_decoded_host ("https://[::1]:8080/"); -+ g_assert_cmpstr (result, ==, "[::1]"); -+} -+ - int - main (int argc, - char *argv[]) -@@ -45,6 +58,7 @@ main (int argc, - g_test_init (&argc, &argv, NULL); - - g_test_add_func ("/lib/ephy-uri-helpers/decode", test_ephy_uri_decode); -+ g_test_add_func ("/lib/ephy-uri-helpers/get-decoded-host", test_ephy_uri_get_decoded_host); - - ret = g_test_run (); - --- -GitLab diff --git a/pkgs/by-name/ep/epiphany/package.nix b/pkgs/by-name/ep/epiphany/package.nix index 04542f042fd5..8faa02364a08 100644 --- a/pkgs/by-name/ep/epiphany/package.nix +++ b/pkgs/by-name/ep/epiphany/package.nix @@ -5,7 +5,6 @@ meson, ninja, gettext, - fetchpatch, fetchurl, pkg-config, gtk4, @@ -33,6 +32,7 @@ gst_all_1, json-glib, libadwaita, + libpwquality, buildPackages, withPantheon ? false, pantheon, @@ -40,25 +40,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "epiphany"; - version = "50.4"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/epiphany/${lib.versions.major finalAttrs.version}/epiphany-${finalAttrs.version}.tar.xz"; - hash = "sha256-Hib5kB8PCL/pQ6pwFjyVMzTH7D1K78jTVOipwUCzNKc="; + hash = "sha256-q68zV2RiAwxlu5Y6VjAKd4bn11g08ckKnf/ahzg1wz0="; }; - patches = [ - # Required for `CVE-2026-18487.patch` to apply - (fetchpatch { - name = "fix-ipv6-address-prettification.patch"; - url = "https://gitlab.gnome.org/GNOME/epiphany/-/commit/e63bfdc7f117c9b60ea54b5760363ab256b9ff2b.patch"; - hash = "sha256-9m8R5GUOBCm3xDXVHBDrV/HbjfIDL+D3wUGkkqc4RmA=="; - }) - # Upstream issue: https://gitlab.gnome.org/GNOME/epiphany/-/work_items/2897 - # Upstream PR: https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/2123 - ./CVE-2026-18487.patch - ]; - nativeBuildInputs = [ blueprint-compiler desktop-file-utils @@ -90,6 +78,7 @@ stdenv.mkDerivation (finalAttrs: { isocodes json-glib libadwaita + libpwquality libportal-gtk4 libarchive libsecret diff --git a/pkgs/by-name/es/esphome-device-builder/frontend.nix b/pkgs/by-name/es/esphome-device-builder/frontend.nix index 151c71f48b55..24a6fc1502d4 100644 --- a/pkgs/by-name/es/esphome-device-builder/frontend.nix +++ b/pkgs/by-name/es/esphome-device-builder/frontend.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.373"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "esphome"; repo = "device-builder-frontend"; diff --git a/pkgs/by-name/es/esphome-device-builder/package.nix b/pkgs/by-name/es/esphome-device-builder/package.nix index 077e7f3de568..50d9248bf1be 100644 --- a/pkgs/by-name/es/esphome-device-builder/package.nix +++ b/pkgs/by-name/es/esphome-device-builder/package.nix @@ -44,8 +44,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { hash = "sha256-S1y0IXrCQV/EK9gQ7UdSKfdKJZK6UY6q7NdFEcy7yao="; }; - __structuredAttrs = true; - nativeBuildInputs = with pythonPackages; [ pyprojectVersionPatchHook ]; diff --git a/pkgs/by-name/et/ethtool/package.nix b/pkgs/by-name/et/ethtool/package.nix index 5c3e2421f418..2b612a6cacba 100644 --- a/pkgs/by-name/et/ethtool/package.nix +++ b/pkgs/by-name/et/ethtool/package.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "ethtool"; - version = "7.1"; + version = "7.2"; src = fetchurl { url = "mirror://kernel/software/network/ethtool/ethtool-${finalAttrs.version}.tar.xz"; - hash = "sha256-TXjCbtwCVbyS9LmVtf1mEI11/5Zu1GlPYCWm03C8JJY="; + hash = "sha256-RCVt30Yx7QjYFre4cl9LLg8F6WuMfKZO5cgUSdorZQc="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/ev/evolution-data-server/hardcode-gsettings.patch b/pkgs/by-name/ev/evolution-data-server/hardcode-gsettings.patch index c259dd0f1269..4e7825882f29 100644 --- a/pkgs/by-name/ev/evolution-data-server/hardcode-gsettings.patch +++ b/pkgs/by-name/ev/evolution-data-server/hardcode-gsettings.patch @@ -1,8 +1,8 @@ diff --git a/src/addressbook/libebook/e-book-client.c b/src/addressbook/libebook/e-book-client.c -index 12fc59c..3fc80a5 100644 +index 9a9910b..51b5fea 100644 --- a/src/addressbook/libebook/e-book-client.c +++ b/src/addressbook/libebook/e-book-client.c -@@ -1944,7 +1944,18 @@ e_book_client_get_self (ESourceRegistry *registry, +@@ -1930,7 +1930,18 @@ e_book_client_get_self (ESourceRegistry *registry, *out_client = book_client; @@ -22,7 +22,7 @@ index 12fc59c..3fc80a5 100644 uid = g_settings_get_string (settings, SELF_UID_KEY); g_object_unref (settings); -@@ -2012,7 +2023,18 @@ e_book_client_set_self (EBookClient *client, +@@ -1998,7 +2009,18 @@ e_book_client_set_self (EBookClient *client, g_return_val_if_fail ( e_contact_get_const (contact, E_CONTACT_UID) != NULL, FALSE); @@ -42,7 +42,7 @@ index 12fc59c..3fc80a5 100644 g_settings_set_string ( settings, SELF_UID_KEY, e_contact_get_const (contact, E_CONTACT_UID)); -@@ -2048,8 +2070,20 @@ e_book_client_is_self (EContact *contact) +@@ -2034,8 +2056,20 @@ e_book_client_is_self (EContact *contact) * unfortunately the API doesn't allow that. */ g_mutex_lock (&mutex); @@ -66,10 +66,10 @@ index 12fc59c..3fc80a5 100644 g_mutex_unlock (&mutex); diff --git a/src/addressbook/libebook/e-book.c b/src/addressbook/libebook/e-book.c -index 9d986d2..d63902a 100644 +index 89d4415..126e76b 100644 --- a/src/addressbook/libebook/e-book.c +++ b/src/addressbook/libebook/e-book.c -@@ -2593,7 +2593,18 @@ e_book_get_self (ESourceRegistry *registry, +@@ -2585,7 +2585,18 @@ e_book_get_self (ESourceRegistry *registry, return FALSE; } @@ -89,7 +89,7 @@ index 9d986d2..d63902a 100644 uid = g_settings_get_string (settings, SELF_UID_KEY); g_object_unref (settings); -@@ -2648,7 +2659,18 @@ e_book_set_self (EBook *book, +@@ -2640,7 +2651,18 @@ e_book_set_self (EBook *book, g_return_val_if_fail (E_IS_BOOK (book), FALSE); g_return_val_if_fail (E_IS_CONTACT (contact), FALSE); @@ -109,7 +109,7 @@ index 9d986d2..d63902a 100644 g_settings_set_string ( settings, SELF_UID_KEY, e_contact_get_const (contact, E_CONTACT_UID)); -@@ -2676,7 +2698,18 @@ e_book_is_self (EContact *contact) +@@ -2668,7 +2690,18 @@ e_book_is_self (EContact *contact) g_return_val_if_fail (E_IS_CONTACT (contact), FALSE); @@ -130,10 +130,10 @@ index 9d986d2..d63902a 100644 g_object_unref (settings); diff --git a/src/addressbook/libedata-book/e-book-meta-backend.c b/src/addressbook/libedata-book/e-book-meta-backend.c -index c24a37a..e5cf57e 100644 +index b333983..ae02db6 100644 --- a/src/addressbook/libedata-book/e-book-meta-backend.c +++ b/src/addressbook/libedata-book/e-book-meta-backend.c -@@ -148,7 +148,18 @@ ebmb_is_power_saver_enabled (void) +@@ -137,7 +137,18 @@ ebmb_is_power_saver_enabled (void) GSettings *settings; gboolean enabled = FALSE; @@ -154,10 +154,10 @@ index c24a37a..e5cf57e 100644 if (g_settings_get_boolean (settings, "limit-operations-in-power-saver-mode")) { GPowerProfileMonitor *power_monitor; diff --git a/src/calendar/backends/contacts/e-cal-backend-contacts.c b/src/calendar/backends/contacts/e-cal-backend-contacts.c -index b16756f..f3d2d6b 100644 +index 8bf2aed..5090738 100644 --- a/src/calendar/backends/contacts/e-cal-backend-contacts.c +++ b/src/calendar/backends/contacts/e-cal-backend-contacts.c -@@ -1433,7 +1433,18 @@ e_cal_backend_contacts_init (ECalBackendContacts *cbc) +@@ -1420,7 +1420,18 @@ e_cal_backend_contacts_init (ECalBackendContacts *cbc) (GDestroyNotify) g_free, (GDestroyNotify) contact_record_free); @@ -178,10 +178,10 @@ index b16756f..f3d2d6b 100644 cbc->priv->update_alarms_id = 0; cbc->priv->alarm_enabled = FALSE; diff --git a/src/calendar/backends/file/e-cal-backend-file.c b/src/calendar/backends/file/e-cal-backend-file.c -index 2e2dd0b..b5f99ab 100644 +index ccf87f0..228c546 100644 --- a/src/calendar/backends/file/e-cal-backend-file.c +++ b/src/calendar/backends/file/e-cal-backend-file.c -@@ -3701,7 +3701,20 @@ e_cal_backend_file_receive_objects (ECalBackendSync *backend, +@@ -3698,7 +3698,20 @@ e_cal_backend_file_receive_objects (ECalBackendSync *backend, if (is_declined) { GSettings *settings; @@ -204,10 +204,10 @@ index 2e2dd0b..b5f99ab 100644 g_clear_object (&settings); } diff --git a/src/calendar/libecal/e-reminder-watcher.c b/src/calendar/libecal/e-reminder-watcher.c -index 92d68e2..d1e1fa4 100644 +index a51c457..13cb4fe 100644 --- a/src/calendar/libecal/e-reminder-watcher.c +++ b/src/calendar/libecal/e-reminder-watcher.c -@@ -2882,8 +2882,33 @@ e_reminder_watcher_init (EReminderWatcher *watcher) +@@ -2871,8 +2871,33 @@ e_reminder_watcher_init (EReminderWatcher *watcher) watcher->priv = e_reminder_watcher_get_instance_private (watcher); watcher->priv->cancellable = g_cancellable_new (); @@ -244,10 +244,10 @@ index 92d68e2..d1e1fa4 100644 g_signal_connect_object ( watcher->priv->desktop_settings, diff --git a/src/calendar/libedata-cal/e-cal-meta-backend.c b/src/calendar/libedata-cal/e-cal-meta-backend.c -index 866afd1..e57d877 100644 +index 5e5db03..3279dcf 100644 --- a/src/calendar/libedata-cal/e-cal-meta-backend.c +++ b/src/calendar/libedata-cal/e-cal-meta-backend.c -@@ -160,7 +160,18 @@ ecmb_is_power_saver_enabled (void) +@@ -149,7 +149,18 @@ ecmb_is_power_saver_enabled (void) GSettings *settings; gboolean enabled = FALSE; @@ -267,7 +267,7 @@ index 866afd1..e57d877 100644 if (g_settings_get_boolean (settings, "limit-operations-in-power-saver-mode")) { GPowerProfileMonitor *power_monitor; -@@ -2617,7 +2628,20 @@ ecmb_receive_object_sync (ECalMetaBackend *meta_backend, +@@ -2606,7 +2617,20 @@ ecmb_receive_object_sync (ECalMetaBackend *meta_backend, if (is_declined) { GSettings *settings; @@ -290,10 +290,10 @@ index 866afd1..e57d877 100644 g_clear_object (&settings); } diff --git a/src/camel/camel-cipher-context.c b/src/camel/camel-cipher-context.c -index a830f89..b9abaa2 100644 +index 01420f5..cf489d1 100644 --- a/src/camel/camel-cipher-context.c +++ b/src/camel/camel-cipher-context.c -@@ -1638,7 +1638,18 @@ camel_cipher_can_load_photos (void) +@@ -1648,7 +1648,18 @@ camel_cipher_can_load_photos (void) GSettings *settings; gboolean load_photos; @@ -314,10 +314,10 @@ index a830f89..b9abaa2 100644 g_clear_object (&settings); diff --git a/src/camel/camel-gpg-context.c b/src/camel/camel-gpg-context.c -index 94f0769..8de758b 100644 +index 4fce4dd..5eeb917 100644 --- a/src/camel/camel-gpg-context.c +++ b/src/camel/camel-gpg-context.c -@@ -748,7 +748,18 @@ gpg_ctx_get_executable_name (void) +@@ -736,7 +736,18 @@ gpg_ctx_get_executable_name (void) GSettings *settings; gchar *path; @@ -338,10 +338,10 @@ index 94f0769..8de758b 100644 g_clear_object (&settings); diff --git a/src/camel/camel-utils.c b/src/camel/camel-utils.c -index 3de034a..b6732ba 100644 +index bf8fc53..19c8cac 100644 --- a/src/camel/camel-utils.c +++ b/src/camel/camel-utils.c -@@ -363,7 +363,19 @@ void +@@ -352,7 +352,19 @@ void _camel_utils_initialize (void) { G_LOCK (mi_user_headers); @@ -363,10 +363,10 @@ index 3de034a..b6732ba 100644 G_CALLBACK (mi_user_headers_settings_changed_cb), NULL); G_UNLOCK (mi_user_headers); diff --git a/src/camel/providers/imapx/camel-imapx-server.c b/src/camel/providers/imapx/camel-imapx-server.c -index e3f2391..374c72d 100644 +index f1c3c4a..24368db 100644 --- a/src/camel/providers/imapx/camel-imapx-server.c +++ b/src/camel/providers/imapx/camel-imapx-server.c -@@ -5682,7 +5682,18 @@ camel_imapx_server_do_old_flags_update (CamelFolder *folder) +@@ -5758,7 +5758,18 @@ camel_imapx_server_do_old_flags_update (CamelFolder *folder) if (do_old_flags_update) { GSettings *eds_settings; @@ -387,10 +387,10 @@ index e3f2391..374c72d 100644 if (g_settings_get_boolean (eds_settings, "limit-operations-in-power-saver-mode")) { GPowerProfileMonitor *power_monitor; diff --git a/src/camel/providers/smtp/camel-smtp-transport.c b/src/camel/providers/smtp/camel-smtp-transport.c -index f7c5d3c..67732c3 100644 +index a255fb0..3a8fa63 100644 --- a/src/camel/providers/smtp/camel-smtp-transport.c +++ b/src/camel/providers/smtp/camel-smtp-transport.c -@@ -1471,7 +1471,18 @@ smtp_helo (CamelSmtpTransport *transport, +@@ -1457,7 +1457,18 @@ smtp_helo (CamelSmtpTransport *transport, transport->authtypes = NULL; } @@ -411,10 +411,10 @@ index f7c5d3c..67732c3 100644 g_clear_object (&settings); diff --git a/src/libedataserver/e-network-monitor.c b/src/libedataserver/e-network-monitor.c -index e9cb145..8fc30d5 100644 +index 9644e99..776a045 100644 --- a/src/libedataserver/e-network-monitor.c +++ b/src/libedataserver/e-network-monitor.c -@@ -260,7 +260,18 @@ e_network_monitor_constructed (GObject *object) +@@ -249,7 +249,18 @@ e_network_monitor_constructed (GObject *object) /* Chain up to parent's method. */ G_OBJECT_CLASS (e_network_monitor_parent_class)->constructed (object); @@ -435,10 +435,10 @@ index e9cb145..8fc30d5 100644 settings, "network-monitor-gio-name", object, "gio-name", diff --git a/src/libedataserver/e-oauth2-service-google.c b/src/libedataserver/e-oauth2-service-google.c -index 9624d86..6baa019 100644 +index f2936a9..85d31c1 100644 --- a/src/libedataserver/e-oauth2-service-google.c +++ b/src/libedataserver/e-oauth2-service-google.c -@@ -72,7 +72,18 @@ eos_google_read_settings (EOAuth2Service *service, +@@ -61,7 +61,18 @@ eos_google_read_settings (EOAuth2Service *service, if (!value) { GSettings *settings; @@ -459,10 +459,10 @@ index 9624d86..6baa019 100644 g_object_unref (settings); diff --git a/src/libedataserver/e-oauth2-service-outlook.c b/src/libedataserver/e-oauth2-service-outlook.c -index 7342577..915d8bd 100644 +index 3115880..4b93967 100644 --- a/src/libedataserver/e-oauth2-service-outlook.c +++ b/src/libedataserver/e-oauth2-service-outlook.c -@@ -75,7 +75,18 @@ eos_outlook_read_settings (EOAuth2Service *service, +@@ -64,7 +64,18 @@ eos_outlook_read_settings (EOAuth2Service *service, if (!value) { GSettings *settings; @@ -483,10 +483,10 @@ index 7342577..915d8bd 100644 g_object_unref (settings); diff --git a/src/libedataserver/e-oauth2-service-yahoo.c b/src/libedataserver/e-oauth2-service-yahoo.c -index 3738359..f9ce2d9 100644 +index d354463..1c02ad1 100644 --- a/src/libedataserver/e-oauth2-service-yahoo.c +++ b/src/libedataserver/e-oauth2-service-yahoo.c -@@ -67,7 +67,18 @@ eos_yahoo_read_settings (EOAuth2Service *service, +@@ -56,7 +56,18 @@ eos_yahoo_read_settings (EOAuth2Service *service, if (!value) { GSettings *settings; @@ -507,10 +507,10 @@ index 3738359..f9ce2d9 100644 g_object_unref (settings); diff --git a/src/libedataserver/e-oauth2-service.c b/src/libedataserver/e-oauth2-service.c -index 9f56da2..f82921a 100644 +index 801fc67..281125b 100644 --- a/src/libedataserver/e-oauth2-service.c +++ b/src/libedataserver/e-oauth2-service.c -@@ -95,7 +95,18 @@ eos_default_guess_can_process (EOAuth2Service *service, +@@ -89,7 +89,18 @@ eos_default_guess_can_process (EOAuth2Service *service, name_len = strlen (name); hostname_len = strlen (hostname); @@ -531,10 +531,10 @@ index 9f56da2..f82921a 100644 g_object_unref (settings); diff --git a/src/libedataserver/e-source-registry.c b/src/libedataserver/e-source-registry.c -index bcc2df7..42489da 100644 +index d336cc9..42dd5ab 100644 --- a/src/libedataserver/e-source-registry.c +++ b/src/libedataserver/e-source-registry.c -@@ -1751,7 +1751,19 @@ e_source_registry_init (ESourceRegistry *registry) +@@ -1738,7 +1738,19 @@ e_source_registry_init (ESourceRegistry *registry) g_mutex_init (®istry->priv->sources_lock); @@ -556,10 +556,10 @@ index bcc2df7..42489da 100644 g_signal_connect ( registry->priv->settings, "changed", diff --git a/src/libedataserverui/e-reminders-widget.c b/src/libedataserverui/e-reminders-widget.c -index 302aacf..ed4a7fa 100644 +index 9049c01..d3f6530 100644 --- a/src/libedataserverui/e-reminders-widget.c +++ b/src/libedataserverui/e-reminders-widget.c -@@ -2133,7 +2133,19 @@ static void +@@ -2122,7 +2122,19 @@ static void e_reminders_widget_init (ERemindersWidget *reminders) { reminders->priv = e_reminders_widget_get_instance_private (reminders); @@ -581,10 +581,10 @@ index 302aacf..ed4a7fa 100644 reminders->priv->is_empty = TRUE; reminders->priv->is_mapped = FALSE; diff --git a/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c b/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c -index 6f03053..b5db6b2 100644 +index 41ae657..6695d90 100644 --- a/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c +++ b/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c -@@ -706,7 +706,18 @@ evolution_source_registry_merge_autoconfig_sources (ESourceRegistryServer *serve +@@ -692,7 +692,18 @@ evolution_source_registry_merge_autoconfig_sources (ESourceRegistryServer *serve gchar *autoconfig_directory; gint ii; @@ -605,10 +605,10 @@ index 6f03053..b5db6b2 100644 autoconfig_sources = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, e_autoconfig_free_merge_source_data); diff --git a/src/services/evolution-source-registry/evolution-source-registry-migrate-proxies.c b/src/services/evolution-source-registry/evolution-source-registry-migrate-proxies.c -index d531cb9..c96f1d5 100644 +index 37c6616..6931c85 100644 --- a/src/services/evolution-source-registry/evolution-source-registry-migrate-proxies.c +++ b/src/services/evolution-source-registry/evolution-source-registry-migrate-proxies.c -@@ -61,7 +61,18 @@ evolution_source_registry_migrate_proxies (ESourceRegistryServer *server) +@@ -48,7 +48,18 @@ evolution_source_registry_migrate_proxies (ESourceRegistryServer *server) extension_name = E_SOURCE_EXTENSION_PROXY; extension = e_source_get_extension (source, extension_name); diff --git a/pkgs/by-name/ev/evolution-data-server/package.nix b/pkgs/by-name/ev/evolution-data-server/package.nix index 65178d7ce4cc..d40ea079a6fa 100644 --- a/pkgs/by-name/ev/evolution-data-server/package.nix +++ b/pkgs/by-name/ev/evolution-data-server/package.nix @@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "evolution-data-server"; - version = "3.60.2"; + version = "3.62.0"; outputs = [ "out" @@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/evolution-data-server/${lib.versions.majorMinor finalAttrs.version}/evolution-data-server-${finalAttrs.version}.tar.xz"; - hash = "sha256-IITb2sOWNxs2XVBMH/RYZrqNyi8SUuXaHT2cM6vcEoY="; + hash = "sha256-eL6I6aUR9a/n/y42Pq3oS2It0CgmR/xXbtstT/KWLLo="; }; patches = [ diff --git a/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch b/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch index 7e82dbd3b2bb..d1bfcab621fc 100644 --- a/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch +++ b/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch @@ -93,7 +93,7 @@ index cec5417..38f1a87 100644 if (g_settings_get_boolean (settings, "use-system-timezone")) location = e_cal_util_get_system_timezone_location (); diff --git a/src/common/e-ews-common-utils.c b/src/common/e-ews-common-utils.c -index 1cc5a58..05b3610 100644 +index 2ed285f..970368a 100644 --- a/src/common/e-ews-common-utils.c +++ b/src/common/e-ews-common-utils.c @@ -167,10 +167,21 @@ e_ews_common_utils_get_configured_icaltimezone (void) diff --git a/pkgs/by-name/ev/evolution-ews/package.nix b/pkgs/by-name/ev/evolution-ews/package.nix index 8c4bf01d126c..89857e7fa267 100644 --- a/pkgs/by-name/ev/evolution-ews/package.nix +++ b/pkgs/by-name/ev/evolution-ews/package.nix @@ -23,11 +23,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "evolution-ews"; - version = "3.60.2"; + version = "3.62.0"; src = fetchurl { url = "mirror://gnome/sources/evolution-ews/${lib.versions.majorMinor finalAttrs.version}/evolution-ews-${finalAttrs.version}.tar.xz"; - hash = "sha256-lAIFgY9piEEUV931gE0hDzUVwm4zQV3r2Puycxsdrys="; + hash = "sha256-hbjnCJWC2dXqbcGoIyWz5cSwOWkk96bg90OpEoytc9Q="; }; patches = [ diff --git a/pkgs/by-name/ev/evolution/package.nix b/pkgs/by-name/ev/evolution/package.nix index 535c9214dbee..b7a215cd4f33 100644 --- a/pkgs/by-name/ev/evolution/package.nix +++ b/pkgs/by-name/ev/evolution/package.nix @@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "evolution"; - version = "3.60.2"; + version = "3.62.0"; outputs = [ "out" @@ -58,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/evolution/${lib.versions.majorMinor finalAttrs.version}/evolution-${finalAttrs.version}.tar.xz"; - hash = "sha256-IYpJ+lBoFV29vTWjDRCi8jfHJGX7HQ4Kp4iJ8DnC7Y8="; + hash = "sha256-f8LMQOFpm/cGtc/PAlVlD8RiO5ntvHLFrQJs6iWHo9Y="; }; nativeBuildInputs = [ @@ -135,8 +135,6 @@ stdenv.mkDerivation (finalAttrs: { "big-parallel" ]; - doCheck = true; - passthru = { updateScript = gnome.updateScript { packageName = "evolution"; diff --git a/pkgs/by-name/ex/exegol/package.nix b/pkgs/by-name/ex/exegol/package.nix index c8bde874aace..94c00cd40cfa 100644 --- a/pkgs/by-name/ex/exegol/package.nix +++ b/pkgs/by-name/ex/exegol/package.nix @@ -8,7 +8,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "exegol"; version = "6.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ThePorgs"; diff --git a/pkgs/by-name/ex/exo/package.nix b/pkgs/by-name/ex/exo/package.nix index 852ef7cd1ba6..4740b5dd20dd 100644 --- a/pkgs/by-name/ex/exo/package.nix +++ b/pkgs/by-name/ex/exo/package.nix @@ -34,7 +34,6 @@ let version = "0.2.1"; inherit src; pyproject = true; - __structuredAttrs = true; buildAndTestSubdir = "rust/exo_pyo3_bindings"; @@ -78,7 +77,6 @@ in python3Packages.buildPythonApplication (finalAttrs: { pname = "exo"; pyproject = true; - __structuredAttrs = true; inherit version src; diff --git a/pkgs/by-name/fa/faad2/package.nix b/pkgs/by-name/fa/faad2/package.nix index 5b84b12baba9..e6b17601fe0a 100644 --- a/pkgs/by-name/fa/faad2/package.nix +++ b/pkgs/by-name/fa/faad2/package.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "knik0"; repo = "faad2"; - rev = finalAttrs.version; + tag = finalAttrs.version; hash = "sha256-luBimrRvTMb1yo9ZXka2n2YJqmDtymR7ImbEcXqs7dE="; }; @@ -30,12 +30,16 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; + strictDeps = true; + passthru.tests = { inherit mpd vlc; inherit (gst_all_1) gst-plugins-bad; ocaml-faad = ocamlPackages.faad; }; + __structuredAttrs = true; + meta = { description = "Open source MPEG-4 and MPEG-2 AAC decoder"; homepage = "https://sourceforge.net/projects/faac/"; diff --git a/pkgs/by-name/fa/fail2ban/package.nix b/pkgs/by-name/fa/fail2ban/package.nix index 5ce5842e6f49..957d7c409a1a 100644 --- a/pkgs/by-name/fa/fail2ban/package.nix +++ b/pkgs/by-name/fa/fail2ban/package.nix @@ -13,8 +13,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { version = "1.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "fail2ban"; repo = "fail2ban"; diff --git a/pkgs/by-name/fa/fastcrw/package.nix b/pkgs/by-name/fa/fastcrw/package.nix index 748a99ae12b1..9efba5751680 100644 --- a/pkgs/by-name/fa/fastcrw/package.nix +++ b/pkgs/by-name/fa/fastcrw/package.nix @@ -3,7 +3,8 @@ rustPlatform, fetchFromGitHub, cacert, - cmake, + aws-lc, + pkg-config, versionCheckHook, nix-update-script, }: @@ -22,13 +23,12 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-VEbM7WvJHhfbbW+9c7fwl5NoFYmDvfQwVKR1R/S+JfU="; - # aws-lc-sys drives its C build through cmake and generates its bindings. nativeBuildInputs = [ - cmake rustPlatform.bindgenHook + pkg-config ]; - dontUseCmakeConfigure = true; + buildInputs = [ aws-lc ]; # The crw-cli journeys drive the built binary against local mock servers, but # rustls still refuses to construct a client without a system trust store. @@ -59,6 +59,9 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=scrape_with_impersonated_pin_400s_on_absent_tier_or_contradiction" "--skip=scrape_with_renderer_unavailable_returns_400" "--skip=v2_extract_blank_system_prompt_is_tolerated" + + # racy test + "--skip=with_timeout_falls_back_to_default_client_on_invalid_user_agent" ]; nativeInstallCheckInputs = [ versionCheckHook ]; diff --git a/pkgs/by-name/fa/fastflix/package.nix b/pkgs/by-name/fa/fastflix/package.nix index 6e8f4952eccd..7508d46f5cb9 100644 --- a/pkgs/by-name/fa/fastflix/package.nix +++ b/pkgs/by-name/fa/fastflix/package.nix @@ -8,17 +8,15 @@ tesseract, }: -python3Packages.buildPythonApplication rec { +python3Packages.buildPythonApplication (finalAttrs: { pname = "fastflix"; version = "6.3.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "cdgriffith"; repo = "FastFlix"; - tag = version; + tag = finalAttrs.version; hash = "sha256-VzqkuTc2Q8WwpvkttDo2u8Q7kpCGbjz7pNzjrr6Bny4="; }; @@ -115,10 +113,10 @@ python3Packages.buildPythonApplication rec { meta = { description = "Simple and friendly GUI for encoding videos"; homepage = "https://github.com/cdgriffith/FastFlix"; - changelog = "https://github.com/cdgriffith/FastFlix/releases/tag/${version}"; + changelog = "https://github.com/cdgriffith/FastFlix/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sophronesis ]; platforms = lib.platforms.linux; mainProgram = "fastflix"; }; -} +}) diff --git a/pkgs/by-name/fl/flopoco/package.nix b/pkgs/by-name/fl/flopoco/package.nix index 1455ce84dc2d..d15a2cfa8aa8 100644 --- a/pkgs/by-name/fl/flopoco/package.nix +++ b/pkgs/by-name/fl/flopoco/package.nix @@ -46,10 +46,6 @@ stdenv.mkDerivation { }) ]; - postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - sed -i "s/-pg//g" {,src/Apps/TaMaDi/}CMakeLists.txt - ''; - strictDeps = true; nativeBuildInputs = [ diff --git a/pkgs/by-name/fm/fmi-reference-fmus/package.nix b/pkgs/by-name/fm/fmi-reference-fmus/package.nix index 94b82f89346f..68a1b6880c6a 100644 --- a/pkgs/by-name/fm/fmi-reference-fmus/package.nix +++ b/pkgs/by-name/fm/fmi-reference-fmus/package.nix @@ -37,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: { # CMakeLists.txt explicitly states support for aarch64-darwin, but # the build fails in a Nix environment. C.f. # . - broken = with stdenv.hostPlatform; isAarch64 && isDarwin; + broken = stdenv.hostPlatform.isDarwin; description = "Functional Mock-up Units for development, testing and debugging"; homepage = "https://github.com/modelica/Reference-FMUs"; license = lib.licenses.bsd2; diff --git a/pkgs/by-name/fo/font-util/package.nix b/pkgs/by-name/fo/font-util/package.nix index 7c18cef426ba..64db19e4ddbd 100644 --- a/pkgs/by-name/fo/font-util/package.nix +++ b/pkgs/by-name/fo/font-util/package.nix @@ -26,6 +26,8 @@ stdenv.mkDerivation (finalAttrs: { util-macros ]; + strictDeps = true; + passthru = { updateScript = gitUpdater { rev-prefix = "font-util-"; @@ -34,6 +36,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "X.Org font package creation/installation utilities"; homepage = "https://gitlab.freedesktop.org/xorg/font/util"; diff --git a/pkgs/by-name/fo/forgejo-cli/package.nix b/pkgs/by-name/fo/forgejo-cli/package.nix index 4216ecd5fbdc..b19346a413d3 100644 --- a/pkgs/by-name/fo/forgejo-cli/package.nix +++ b/pkgs/by-name/fo/forgejo-cli/package.nix @@ -6,6 +6,7 @@ pkg-config, installShellFiles, writableTmpDirAsHomeHook, + aws-lc, libgit2, oniguruma, openssl, @@ -34,6 +35,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + aws-lc libgit2 oniguruma openssl diff --git a/pkgs/by-name/fo/forgejo/generic.nix b/pkgs/by-name/fo/forgejo/generic.nix index d78e9a63d383..a18a36eb63b8 100644 --- a/pkgs/by-name/fo/forgejo/generic.nix +++ b/pkgs/by-name/fo/forgejo/generic.nix @@ -26,6 +26,7 @@ runCommand, stdenv, fetchFromCodeberg, + fetchpatch, buildNpmPackage, writableTmpDirAsHomeHook, }: @@ -83,7 +84,18 @@ buildGoModule rec { patches = [ ./static-root-path.patch + + (fetchpatch { + name = "go_1_27.patch"; + url = "https://codeberg.org/forgejo/forgejo/commit/cb7b3bacd473302856f44db440f334e5bc4ff3c2.patch"; + includes = [ + "modules/avatar/hash_test.go" + "modules/packages/alpine/metadata_test.go" + ]; + hash = "sha256-orSzsV7ophjmTC8EHjRgGanXNnGt07YazofLnIuqmcc="; + }) ]; + postPatch = '' substituteInPlace modules/setting/server.go --subst-var data ''; diff --git a/pkgs/by-name/fr/frama-c/package.nix b/pkgs/by-name/fr/frama-c/package.nix index b117846c8438..e95a88145bf4 100644 --- a/pkgs/by-name/fr/frama-c/package.nix +++ b/pkgs/by-name/fr/frama-c/package.nix @@ -103,7 +103,9 @@ stdenv.mkDerivation (finalAttrs: { apron.dev ]; - ocamlPath = lib.makeSearchPath "/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib" runtimeDeps; + ocamlPath = + lib.makeSearchPathOutput "dev" "/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib" + runtimeDeps; in '' wrapProgram $out/bin/frama-c \ diff --git a/pkgs/by-name/fr/framework-tool/package.nix b/pkgs/by-name/fr/framework-tool/package.nix index edd5dc9be5dd..3137fb9d1e2c 100644 --- a/pkgs/by-name/fr/framework-tool/package.nix +++ b/pkgs/by-name/fr/framework-tool/package.nix @@ -3,6 +3,7 @@ rustPlatform, fetchFromGitHub, pkg-config, + libgit2, udev, }: @@ -20,7 +21,11 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-gc/diU6reAaFnar1HZ4tMzYsGo8k3LH35g9Er5T8xas="; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ udev ]; + + buildInputs = [ + libgit2 + udev + ]; meta = { description = "Swiss army knife for Framework laptops"; diff --git a/pkgs/by-name/fr/freetype/package.nix b/pkgs/by-name/fr/freetype/package.nix index 460e787f59a6..1b8d467642f9 100644 --- a/pkgs/by-name/fr/freetype/package.nix +++ b/pkgs/by-name/fr/freetype/package.nix @@ -64,6 +64,8 @@ stdenv.mkDerivation (finalAttrs: { # FreeType requires GNU Make, which is not part of stdenv on FreeBSD. ++ lib.optional (!stdenv.hostPlatform.isLinux) gnumake; + strictDeps = true; + patches = [ ./enable-table-validation.patch @@ -175,6 +177,8 @@ stdenv.mkDerivation (finalAttrs: { pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Font rendering engine"; mainProgram = "freetype-config"; diff --git a/pkgs/by-name/fr/fribidi/package.nix b/pkgs/by-name/fr/fribidi/package.nix index 1f76acb6f25b..1a5422fa43d8 100644 --- a/pkgs/by-name/fr/fribidi/package.nix +++ b/pkgs/by-name/fr/fribidi/package.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "fribidi"; - version = "1.0.17"; + version = "1.0.18"; __structuredAttrs = true; strictDeps = true; @@ -33,7 +33,7 @@ stdenv.mkDerivation (finalAttrs: { url = with finalAttrs; "https://github.com/fribidi/fribidi/releases/download/v${version}/fribidi-${version}.tar.xz"; - hash = "sha256-aUnc3ifUHOutH9dB/K/DbVWhAg0thy1KbrORTKq7raI="; + hash = "sha256-HeXoBz0DU4i3HQstRSsdofjK7qincCmXtAH+G2JQcn8="; }; postPatch = '' diff --git a/pkgs/by-name/fs/fstar/package.nix b/pkgs/by-name/fs/fstar/package.nix index 7b528e0b124a..9b8cc6b054dc 100644 --- a/pkgs/by-name/fs/fstar/package.nix +++ b/pkgs/by-name/fs/fstar/package.nix @@ -29,6 +29,9 @@ ocamlPackages.buildDunePackage (finalAttrs: { pname = "fstar"; version = "2026.10.25"; + # The custom installPhase installs everything into $out. + outputs = [ "out" ]; + src = fetchFromGitHub { owner = "FStarLang"; repo = "FStar"; diff --git a/pkgs/by-name/fv/fverb/package.nix b/pkgs/by-name/fv/fverb/package.nix index 0328cddf74cb..3f9a78c06f6d 100644 --- a/pkgs/by-name/fv/fverb/package.nix +++ b/pkgs/by-name/fv/fverb/package.nix @@ -37,6 +37,6 @@ stdenv.mkDerivation { platforms = lib.platforms.unix; # clang++: error: unsupported option '-mfpu=' for target 'arm64-apple-darwin' # clang++: error: unsupported option '-mfloat-abi=' for target 'arm64-apple-darwin' - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; } diff --git a/pkgs/by-name/fx/fx/package.nix b/pkgs/by-name/fx/fx/package.nix index 770a6817b883..c8fb83aa14f4 100644 --- a/pkgs/by-name/fx/fx/package.nix +++ b/pkgs/by-name/fx/fx/package.nix @@ -32,11 +32,6 @@ buildGoModule (finalAttrs: { --zsh <($out/bin/fx --comp zsh) ''; - checkFlags = lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [ - # flaky only on x86_64 darwin, https://hydra.nixos.org/build/319903711 - "-skip=^TestSearchCaching" - ]; - nativeInstallCheckInputs = [ versionCheckHook writableTmpDirAsHomeHook diff --git a/pkgs/by-name/ga/game-music-emu/package.nix b/pkgs/by-name/ga/game-music-emu/package.nix index f660fde43654..db8d4c7b4f30 100644 --- a/pkgs/by-name/ga/game-music-emu/package.nix +++ b/pkgs/by-name/ga/game-music-emu/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, removeReferencesTo, zlib, @@ -17,20 +18,33 @@ stdenv.mkDerivation (finalAttrs: { tag = finalAttrs.version; hash = "sha256-zn1t0oDj8hz/sfbG7lrstkv2Kf6cL7zAEMpIu9X4dyQ="; }; + + patches = [ + (fetchpatch { + name = "CVE-2026-111152.patch"; + url = "https://github.com/libgme/game-music-emu/commit/ae10a8f05479e3c8f80429e7a59759fed06f8c13.patch"; + hash = "sha256-/cOKzqhUrKMXcwxRKwdUf7wthrfYkiHy/IQGy9lK0ZM="; + }) + ]; + nativeBuildInputs = [ cmake removeReferencesTo ]; buildInputs = [ zlib ]; + strictDeps = true; + # It used to reference it, in the past, but thanks to the postFixup hook, now # it doesn't. - disallowedReferences = [ stdenv.cc.cc ]; + outputChecks.out.disallowedReferences = [ stdenv.cc.cc ]; postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)" ''; + __structuredAttrs = true; + meta = { homepage = "https://github.com/libgme/game-music-emu/"; description = "Collection of video game music file emulators"; diff --git a/pkgs/by-name/gc/gcc-arm-embedded-13/package.nix b/pkgs/by-name/gc/gcc-arm-embedded-13/package.nix index c76a49d4357c..ce3ab36c637d 100644 --- a/pkgs/by-name/gc/gcc-arm-embedded-13/package.nix +++ b/pkgs/by-name/gc/gcc-arm-embedded-13/package.nix @@ -4,10 +4,6 @@ fetchurl, ncurses5, libxcrypt-legacy, - xz, - zstd, - makeBinaryWrapper, - darwin, }: let @@ -41,11 +37,6 @@ stdenv.mkDerivation (finalAttrs: { ./info-fix.patch ]; - nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - makeBinaryWrapper - darwin.sigtool - ]; - dontConfigure = true; dontBuild = true; dontPatchELF = true; @@ -60,32 +51,20 @@ stdenv.mkDerivation (finalAttrs: { # Set RPATH before the interpreter to work around a patchelf bug: # https://github.com/NixOS/patchelf/issues/674 - preFixup = - lib.optionalString stdenv.hostPlatform.isLinux '' - find $out -type f | while read f; do - patchelf "$f" > /dev/null 2>&1 || continue - patchelf --set-rpath ${ - lib.makeLibraryPath [ - "$out" - stdenv.cc.cc - ncurses5 - libxcrypt-legacy - ] - } "$f" || true - patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true - done - '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - find "$out" -executable -type f | while read executable; do - ( \ - install_name_tool \ - -change "/usr/local/opt/zstd/lib/libzstd.1.dylib" "${lib.getLib zstd}/lib/libzstd.1.dylib" \ - -change "/usr/local/opt/xz/lib/liblzma.5.dylib" "${lib.getLib xz}/lib/liblzma.5.dylib" \ - "$executable" \ - && codesign -f -s - "$executable" \ - ) || true - done - ''; + preFixup = lib.optionalString stdenv.hostPlatform.isLinux '' + find $out -type f | while read f; do + patchelf "$f" > /dev/null 2>&1 || continue + patchelf --set-rpath ${ + lib.makeLibraryPath [ + "$out" + stdenv.cc.cc + ncurses5 + libxcrypt-legacy + ] + } "$f" || true + patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true + done + ''; meta = { description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors"; diff --git a/pkgs/by-name/gc/gcr_4/package.nix b/pkgs/by-name/gc/gcr_4/package.nix index 229d8e89d4a4..a9c67ba19438 100644 --- a/pkgs/by-name/gc/gcr_4/package.nix +++ b/pkgs/by-name/gc/gcr_4/package.nix @@ -31,7 +31,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "gcr"; - version = "4.4.0.1"; + version = "4.4.1"; __structuredAttrs = true; @@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gcr/${lib.versions.majorMinor finalAttrs.version}/gcr-${finalAttrs.version}.tar.xz"; - hash = "sha256-DDw0Hkn59PJTKkiEUJgEGQoMJmPmEgNguymMXRdKgJg="; + hash = "sha256-xEQsFdQzDxeh9RlN8IxXaHevaEEqslIURqk71eJMkxs="; }; strictDeps = true; diff --git a/pkgs/by-name/gd/gdal/package.nix b/pkgs/by-name/gd/gdal/package.nix index 9fb0081b3197..10e2182d8125 100644 --- a/pkgs/by-name/gd/gdal/package.nix +++ b/pkgs/by-name/gd/gdal/package.nix @@ -16,8 +16,7 @@ useNetCDF ? (!useMinimalFeatures), usePoppler ? (!useMinimalFeatures), usePostgres ? (!useMinimalFeatures), - useTiledb ? - (!useMinimalFeatures) && !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64), + useTiledb ? (!useMinimalFeatures), ant, armadillo, diff --git a/pkgs/by-name/gd/gdb/package.nix b/pkgs/by-name/gd/gdb/package.nix index 9fab3131d76e..592afe0fe227 100644 --- a/pkgs/by-name/gd/gdb/package.nix +++ b/pkgs/by-name/gd/gdb/package.nix @@ -20,7 +20,7 @@ zstd, xz, dejagnu, - sourceHighlight, + source-highlight, libiconv, xxhash, @@ -111,7 +111,7 @@ stdenv.mkDerivation (finalAttrs: { zlib zstd xz - sourceHighlight + source-highlight xxhash dejagnu # for tests ] @@ -136,7 +136,7 @@ stdenv.mkDerivation (finalAttrs: { env.NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral"; # Workaround for Apple Silicon, configurePlatforms must be disabled - configurePlatforms = optionals (!(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)) [ + configurePlatforms = optionals (!stdenv.hostPlatform.isDarwin) [ "build" "host" "target" @@ -191,13 +191,14 @@ stdenv.mkDerivation (finalAttrs: { ++ optional stdenv.hostPlatform.isStatic "--disable-inprocess-agent" ++ optional (!hostCpuOnly) "--enable-targets=all" # Workaround for Apple Silicon, "--target" must be "faked", see eg: https://github.com/Homebrew/homebrew-core/pull/209753 - ++ optional ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 - ) "--target=x86_64-apple-darwin"; + ++ optional stdenv.hostPlatform.isDarwin "--target=x86_64-apple-darwin"; postInstall = '' # Remove Info files already provided by Binutils and other packages. rm -v $out/share/info/bfd.info + + # Make sure pyc files are generated before fixup + python3 -m compileall $out/share/gdb/python/gdb ''; doInstallCheck = true; diff --git a/pkgs/by-name/gd/gdbgui/package.nix b/pkgs/by-name/gd/gdbgui/package.nix index ae7e1b01cbe6..83caba33ede6 100644 --- a/pkgs/by-name/gd/gdbgui/package.nix +++ b/pkgs/by-name/gd/gdbgui/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.15.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-/HyFE0JnoN03CDyCQCo/Y9RyH4YOMoeB7khReIb8t7Y="; diff --git a/pkgs/by-name/gd/gdm/package.nix b/pkgs/by-name/gd/gdm/package.nix index 7069547ee359..0dbfb678e79c 100644 --- a/pkgs/by-name/gd/gdm/package.nix +++ b/pkgs/by-name/gd/gdm/package.nix @@ -12,12 +12,10 @@ itstool, accountsservice, libx11, - libxdmcp, - libxcb, + libxau, gnome, systemdLibs, dconf, - gtk3, pam, libgudev, libselinux, @@ -44,7 +42,7 @@ in stdenv.mkDerivation (finalAttrs: { pname = "gdm"; - version = "50.2"; + version = "51.0"; outputs = [ "out" @@ -53,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gdm/${lib.versions.major finalAttrs.version}/gdm-${finalAttrs.version}.tar.xz"; - hash = "sha256-ikZ55Hzd/osKG9nTg2BC3raPs+Gw5+Yt/QYx3FtvxUE="; + hash = "sha256-LOWs9aQ4uPbcHRT9d3qRG+XusvermnxGABZiBbFdZTY="; }; mesonFlags = [ @@ -83,11 +81,9 @@ stdenv.mkDerivation (finalAttrs: { audit glib json-glib - gtk3 keyutils libx11 - libxdmcp - libxcb + libxau libgudev libselinux pam diff --git a/pkgs/by-name/ge/gemini-cli-bin/package.nix b/pkgs/by-name/ge/gemini-cli-bin/package.nix index 1737266a7a49..0c442299cf2d 100644 --- a/pkgs/by-name/ge/gemini-cli-bin/package.nix +++ b/pkgs/by-name/ge/gemini-cli-bin/package.nix @@ -3,7 +3,6 @@ stdenvNoCC, fetchzip, nodejs, - sysctl, writableTmpDirAsHomeHook, nix-update-script, ripgrep, @@ -72,9 +71,6 @@ stdenvNoCC.mkDerivation (finalAttrs: { doInstallCheck = true; nativeInstallCheckInputs = [ writableTmpDirAsHomeHook - ] - ++ lib.optionals (with stdenvNoCC.hostPlatform; isDarwin && isx86_64) [ - sysctl ]; # versionCheckHook cannot be used because it assumes the executable is hermetic, diff --git a/pkgs/by-name/ge/geobug/package.nix b/pkgs/by-name/ge/geobug/package.nix index 148aecc85b84..f71dfdac47b9 100644 --- a/pkgs/by-name/ge/geobug/package.nix +++ b/pkgs/by-name/ge/geobug/package.nix @@ -43,8 +43,6 @@ python3Packages.buildPythonApplication (finalAttrs: { "geobug" ]; - __structuredAttrs = true; - meta = { description = "Adaptive GeoClue client"; longDescription = '' diff --git a/pkgs/by-name/ge/geos/package.nix b/pkgs/by-name/ge/geos/package.nix index 1526c189e481..7d34f8ee7afb 100644 --- a/pkgs/by-name/ge/geos/package.nix +++ b/pkgs/by-name/ge/geos/package.nix @@ -21,10 +21,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; - # https://github.com/libgeos/geos/issues/930 - cmakeFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;unit-geom-Envelope" - ]; + strictDeps = true; doCheck = true; @@ -33,6 +30,8 @@ stdenv.mkDerivation (finalAttrs: { geos = callPackage ./tests.nix { geos = finalAttrs.finalPackage; }; }; + __structuredAttrs = true; + meta = { description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software"; homepage = "https://libgeos.org"; diff --git a/pkgs/by-name/ge/getsploit/package.nix b/pkgs/by-name/ge/getsploit/package.nix index ed0d86306dce..3a313b42c0bb 100644 --- a/pkgs/by-name/ge/getsploit/package.nix +++ b/pkgs/by-name/ge/getsploit/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "3.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "vulnersCom"; repo = "getsploit"; diff --git a/pkgs/by-name/gf/gforth/package.nix b/pkgs/by-name/gf/gforth/package.nix index a00552bf28fe..925e0b94dcb1 100644 --- a/pkgs/by-name/gf/gforth/package.nix +++ b/pkgs/by-name/gf/gforth/package.nix @@ -50,9 +50,6 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--with-lispdir=${lispDir}" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "--build=x86_64-apple-darwin" - ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ # Tries to run ./engine/gforth-ll "--without-check" diff --git a/pkgs/by-name/gh/ghcherry/package.nix b/pkgs/by-name/gh/ghcherry/package.nix index ff15b24f600d..60054d85a586 100644 --- a/pkgs/by-name/gh/ghcherry/package.nix +++ b/pkgs/by-name/gh/ghcherry/package.nix @@ -7,7 +7,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "ghcherry"; version = "1.6.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "PerchunPak"; diff --git a/pkgs/by-name/gh/ghostie/package.nix b/pkgs/by-name/gh/ghostie/package.nix index aab545e2f0c3..594e859c92d3 100644 --- a/pkgs/by-name/gh/ghostie/package.nix +++ b/pkgs/by-name/gh/ghostie/package.nix @@ -43,7 +43,6 @@ rustPlatform.buildRustPackage (finalAttrs: { changelog = "https://github.com/attriaayush/ghostie/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ matthiasbeyer ]; - broken = stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin; mainProgram = "ghostie"; }; }) diff --git a/pkgs/by-name/gh/ghstack/package.nix b/pkgs/by-name/gh/ghstack/package.nix index 6f89919c2bed..b8d8ef956ca1 100644 --- a/pkgs/by-name/gh/ghstack/package.nix +++ b/pkgs/by-name/gh/ghstack/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.13.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ezyang"; repo = "ghstack"; diff --git a/pkgs/by-name/gi/gi-docgen/package.nix b/pkgs/by-name/gi/gi-docgen/package.nix index 3fbb9b0aae50..c8d63189d284 100644 --- a/pkgs/by-name/gi/gi-docgen/package.nix +++ b/pkgs/by-name/gi/gi-docgen/package.nix @@ -8,14 +8,14 @@ versionCheckHook, }: -python3.pkgs.buildPythonApplication rec { +python3.pkgs.buildPythonApplication (finalAttrs: { pname = "gi-docgen"; version = "2026.1"; pyproject = false; src = fetchurl { - url = "mirror://gnome/sources/gi-docgen/${lib.versions.major version}/gi-docgen-${version}.tar.xz"; + url = "mirror://gnome/sources/gi-docgen/${lib.versions.major finalAttrs.version}/gi-docgen-${finalAttrs.version}.tar.xz"; hash = "sha256-wxbWwEaZl2toI5Eqrh+ypqP/olU7Qivoj7VuuIGs9Hk="; }; @@ -42,8 +42,6 @@ python3.pkgs.buildPythonApplication rec { nativeCheckInputs = [ versionCheckHook ]; # doCheck = false; # no tests - restore this after versionCheckHook can be moved - __structuredAttrs = true; - postFixup = '' # Do not propagate Python substituteInPlace $out/nix-support/propagated-build-inputs \ @@ -63,4 +61,4 @@ python3.pkgs.buildPythonApplication rec { license = lib.licenses.asl20; # OR GPL-3.0-or-later teams = [ lib.teams.gnome ]; }; -} +}) diff --git a/pkgs/by-name/gi/git-dumper/package.nix b/pkgs/by-name/gi/git-dumper/package.nix index b360cfb9e80d..99457f84f859 100644 --- a/pkgs/by-name/gi/git-dumper/package.nix +++ b/pkgs/by-name/gi/git-dumper/package.nix @@ -8,7 +8,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "git-dumper"; version = "1.0.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arthaud"; diff --git a/pkgs/by-name/gi/git-interactive-rebase-tool/package.nix b/pkgs/by-name/gi/git-interactive-rebase-tool/package.nix index d4cac8660998..ec31a27318fb 100644 --- a/pkgs/by-name/gi/git-interactive-rebase-tool/package.nix +++ b/pkgs/by-name/gi/git-interactive-rebase-tool/package.nix @@ -2,6 +2,9 @@ lib, fetchFromGitHub, rustPlatform, + fetchpatch, + pkg-config, + libgit2, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -15,7 +18,19 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-NlnESZua4OP7rhMoER/VgBST9THqISQ0LCG1ZakNTqs="; }; - cargoHash = "sha256-WTg1o2iF5/UOVIqKFqGbC28B4HrKJWM0+XCHgaA1lc4="; + cargoPatches = [ + (fetchpatch { + name = "update_git2_to_0.20.0.patch"; + url = "https://github.com/MitMaro/git-interactive-rebase-tool/commit/4f04527a23aca92675423aefe093247d87f05298.patch"; + hash = "sha256-XvX07x9p0gcs6FYChDpYDsp58LkrjTtw3M3Oyp7YetY="; + }) + ]; + + cargoHash = "sha256-D4X6INF7sPzfpmBTO84pnfqNlCot+JwZCtKJ64oPyHQ="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ libgit2 ]; # Compilation during tests fails if this env var is not set. preCheck = "export GIRT_BUILD_GIT_HASH=${finalAttrs.version}"; diff --git a/pkgs/by-name/gi/git-of-theseus/package.nix b/pkgs/by-name/gi/git-of-theseus/package.nix index d0948e5ed354..3b63931140b6 100644 --- a/pkgs/by-name/gi/git-of-theseus/package.nix +++ b/pkgs/by-name/gi/git-of-theseus/package.nix @@ -7,7 +7,6 @@ python3Packages.buildPythonApplication { pname = "git-of-theseus"; version = "0.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "erikbern"; diff --git a/pkgs/by-name/gi/git-sim/package.nix b/pkgs/by-name/gi/git-sim/package.nix index bc6cd307f21e..63143c08cf37 100644 --- a/pkgs/by-name/gi/git-sim/package.nix +++ b/pkgs/by-name/gi/git-sim/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "git-sim"; version = "0.3.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "initialcommit-com"; diff --git a/pkgs/by-name/gi/git-spice/package.nix b/pkgs/by-name/gi/git-spice/package.nix index d408fd3fa2f7..a0bee176b0a9 100644 --- a/pkgs/by-name/gi/git-spice/package.nix +++ b/pkgs/by-name/gi/git-spice/package.nix @@ -36,12 +36,6 @@ buildGoModule (finalAttrs: { __darwinAllowLocalNetworking = true; - preCheck = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - # timeout - rm testdata/script/branch_submit_remote_prompt.txt - rm testdata/script/branch_submit_multiple_pr_templates.txt - ''; - postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd gs \ --bash <($out/bin/gs shell completion bash) \ diff --git a/pkgs/by-name/gi/git/package.nix b/pkgs/by-name/gi/git/package.nix index e4404ea00bb3..3b1d0f57ad8e 100644 --- a/pkgs/by-name/gi/git/package.nix +++ b/pkgs/by-name/gi/git/package.nix @@ -597,7 +597,7 @@ stdenv.mkDerivation (finalAttrs: { # not ok 1 - populate workdir (with 2.33.1 on x86_64-darwin) disable_test t5003-archive-zip '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' disable_test t7527-builtin-fsmonitor '' + diff --git a/pkgs/by-name/gi/gitMinimal/package.nix b/pkgs/by-name/gi/gitMinimal/package.nix index 55afa8ecde3d..50ee182426e0 100644 --- a/pkgs/by-name/gi/gitMinimal/package.nix +++ b/pkgs/by-name/gi/gitMinimal/package.nix @@ -12,7 +12,6 @@ git.override ( osxkeychainSupport = false; pythonSupport = false; perlSupport = false; - rustSupport = false; # Needed for bootstrap withpcre2 = false; cargo = buildPackages.cargo.override { auditable = false; }; # Break `cargo-auditable` -> `fetch-cargo-vendor` -> `nix-prefetch-git` -> `gitMinimal` cycle` curl = if stdenv.hostPlatform.isFreeBSD then curlMinimal else curl; # Needed for FreeBSD bootstrap diff --git a/pkgs/by-name/gi/gitfourchette/package.nix b/pkgs/by-name/gi/gitfourchette/package.nix index 829167668e3d..1dff0eaa5086 100644 --- a/pkgs/by-name/gi/gitfourchette/package.nix +++ b/pkgs/by-name/gi/gitfourchette/package.nix @@ -17,7 +17,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "gitfourchette"; version = "1.11.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jorio"; diff --git a/pkgs/by-name/gi/github-copilot-intellij-agent/package.nix b/pkgs/by-name/gi/github-copilot-intellij-agent/package.nix index 0748ab05d59d..6a7c22b12a9c 100644 --- a/pkgs/by-name/gi/github-copilot-intellij-agent/package.nix +++ b/pkgs/by-name/gi/github-copilot-intellij-agent/package.nix @@ -24,10 +24,7 @@ stdenv.mkDerivation rec { mkdir -p $out/bin unzip -p $src github-copilot-intellij/copilot-agent/bin/copilot-agent-${ - if stdenv.hostPlatform.isDarwin then - (if stdenv.hostPlatform.isAarch64 then "macos-arm64" else "macos") - else - "linux" + if stdenv.hostPlatform.isDarwin then "macos-arm64" else "linux" } | install -m755 /dev/stdin $out/bin/copilot-agent runHook postInstall diff --git a/pkgs/by-name/gi/github-runner/package.nix b/pkgs/by-name/gi/github-runner/package.nix index ac61119269a8..f5bb90f528c1 100644 --- a/pkgs/by-name/gi/github-runner/package.nix +++ b/pkgs/by-name/gi/github-runner/package.nix @@ -128,7 +128,7 @@ buildDotnetModule (finalAttrs: { # needed for `uname` coreutils ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/gi/gitit/package.nix b/pkgs/by-name/gi/gitit/package.nix index 9d874e817483..fbaf695d37a9 100644 --- a/pkgs/by-name/gi/gitit/package.nix +++ b/pkgs/by-name/gi/gitit/package.nix @@ -26,7 +26,7 @@ let # Removes erroneous references from dead code that GHC can't eliminate aarch64DarwinFix = overrideCabal ( drv: - lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) { + lib.optionalAttrs stdenv.hostPlatform.isDarwin { postInstall = '' ${drv.postInstall or ""} remove-references-to -t ${haskellPackages.HTTP} "$out/bin/gitit" diff --git a/pkgs/by-name/gi/gitlab-elasticsearch-indexer/code-parser.nix b/pkgs/by-name/gi/gitlab-elasticsearch-indexer/code-parser.nix index 281cbafbf516..744e9ede6077 100644 --- a/pkgs/by-name/gi/gitlab-elasticsearch-indexer/code-parser.nix +++ b/pkgs/by-name/gi/gitlab-elasticsearch-indexer/code-parser.nix @@ -4,6 +4,8 @@ rustPlatform, pkg-config, openssl, + oniguruma, + zstd, clang, }: @@ -27,6 +29,8 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ openssl.dev + oniguruma + zstd ]; preInstall = '' diff --git a/pkgs/by-name/gi/gitlabform/package.nix b/pkgs/by-name/gi/gitlabform/package.nix index c2ae994db540..34e855ca4f74 100644 --- a/pkgs/by-name/gi/gitlabform/package.nix +++ b/pkgs/by-name/gi/gitlabform/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "gitlabform"; version = "6.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "gitlabform"; diff --git a/pkgs/by-name/gi/gitoxide/package.nix b/pkgs/by-name/gi/gitoxide/package.nix index 496506b07499..781d3e523e84 100644 --- a/pkgs/by-name/gi/gitoxide/package.nix +++ b/pkgs/by-name/gi/gitoxide/package.nix @@ -6,6 +6,7 @@ pkg-config, stdenv, curl, + sqlite, openssl, buildPackages, installShellFiles, @@ -35,7 +36,11 @@ rustPlatform.buildRustPackage (finalAttrs: { installShellFiles ]; - buildInputs = [ curl ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ openssl ]; + buildInputs = [ + curl + sqlite + ] + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ openssl ]; preFixup = lib.optionalString canRunCmd '' installShellCompletion --cmd gix \ diff --git a/pkgs/by-name/gi/gitui/package.nix b/pkgs/by-name/gi/gitui/package.nix index 971625b7b9fc..6b7e68ed32f4 100644 --- a/pkgs/by-name/gi/gitui/package.nix +++ b/pkgs/by-name/gi/gitui/package.nix @@ -3,6 +3,7 @@ stdenv, rustPlatform, fetchFromGitHub, + libgit2, libiconv, openssl, pkg-config, @@ -31,6 +32,7 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ openssl + libgit2 ] ++ lib.optional stdenv.hostPlatform.isLinux xclip ++ lib.optionals stdenv.hostPlatform.isDarwin [ diff --git a/pkgs/by-name/gj/gjs/package.nix b/pkgs/by-name/gj/gjs/package.nix index 8f6e794042aa..b1fc5931fbb8 100644 --- a/pkgs/by-name/gj/gjs/package.nix +++ b/pkgs/by-name/gj/gjs/package.nix @@ -42,7 +42,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "gjs"; - version = "1.88.1"; + version = "1.90.0"; outputs = [ "out" @@ -52,7 +52,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gjs/${lib.versions.majorMinor finalAttrs.version}/gjs-${finalAttrs.version}.tar.xz"; - hash = "sha256-dnurgOZl1nLLAFY8JfCzkqnsjCmW7R1EVMaYtMLwo9k="; + hash = "sha256-R+nyKx1KyoQcbEkrRJtt4y/2gJchg+Jv57mKRcXD/uE="; }; patches = [ diff --git a/pkgs/by-name/gl/gleam/package.nix b/pkgs/by-name/gl/gleam/package.nix index 989be3a944d6..32537f95839b 100644 --- a/pkgs/by-name/gl/gleam/package.nix +++ b/pkgs/by-name/gl/gleam/package.nix @@ -1,11 +1,11 @@ { lib, - stdenv, rustPlatform, fetchFromGitHub, git, pkg-config, + aws-lc, beamPackages, nodejs, bun, @@ -32,6 +32,8 @@ rustPlatform.buildRustPackage (finalAttrs: { pkg-config ]; + buildInputs = [ aws-lc ]; + nativeCheckInputs = [ # used by several tests git @@ -53,26 +55,6 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=tests::escript_success_with_dependency" # checks files that would be gitignored, but we're not in a git repo "--skip=tests::all_files_have_copyright_notice" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Snapshot tests fail because a warning is shown on stdout - # warn: CPU lacks AVX support, strange crashes may occur. Reinstall Bun or use *-baseline build: - # https://github.com/oven-sh/bun/releases/download/bun-v1.3.1/bun-darwin-x64-baseline.zip - "--skip=tests::output::echo_bitarray" - "--skip=tests::output::echo_bool" - "--skip=tests::output::echo_charlist" - "--skip=tests::output::echo_circular_reference" - "--skip=tests::output::echo_custom_type" - "--skip=tests::output::echo_float" - "--skip=tests::output::echo_function" - "--skip=tests::output::echo_importing_module_named_inspect" - "--skip=tests::output::echo_int" - "--skip=tests::output::echo_list" - "--skip=tests::output::echo_nil" - "--skip=tests::output::echo_singleton" - "--skip=tests::output::echo_string" - "--skip=tests::output::echo_tuple" - "--skip=tests::output::echo_with_message" ]; doInstallCheck = true; diff --git a/pkgs/by-name/gl/glib-networking/package.nix b/pkgs/by-name/gl/glib-networking/package.nix index c56fdb0e5417..b3c38f6efc89 100644 --- a/pkgs/by-name/gl/glib-networking/package.nix +++ b/pkgs/by-name/gl/glib-networking/package.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "glib-networking"; - version = "2.80.1"; + version = "2.90.0"; outputs = [ "out" @@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/glib-networking/${lib.versions.majorMinor finalAttrs.version}/glib-networking-${finalAttrs.version}.tar.xz"; - hash = "sha256-uA4odBV81VBx8bZxD6C5EdWsXeEGqe4qTJx77mF4L44="; + hash = "sha256-g6dePZw2tm7obTKBwvyZeBYQGWilEmujIrKsuadN2MA="; }; patches = [ diff --git a/pkgs/by-name/gl/glib/package.nix b/pkgs/by-name/gl/glib/package.nix index 0733f0ec607e..1d6b21a8d5ad 100644 --- a/pkgs/by-name/gl/glib/package.nix +++ b/pkgs/by-name/gl/glib/package.nix @@ -81,7 +81,7 @@ in stdenv.mkDerivation (finalAttrs: { pname = "glib"; - version = "2.88.3"; + version = "2.90.0"; outputs = [ "bin" @@ -94,7 +94,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/glib/${lib.versions.majorMinor finalAttrs.version}/glib-${finalAttrs.version}.tar.xz"; - hash = "sha256-qyTSTmmN+h5Ai3vNtQj0qvyQYYWouM5y/febu9ybODs="; + hash = "sha256-F9FcrCr4CjMnESdAjgq8J0jrKXxZXComQJ6B4U59G48="; }; patches = diff --git a/pkgs/by-name/gl/glibmm_2_4/package.nix b/pkgs/by-name/gl/glibmm_2_4/package.nix index 1bcc205b000b..9801de790a8c 100644 --- a/pkgs/by-name/gl/glibmm_2_4/package.nix +++ b/pkgs/by-name/gl/glibmm_2_4/package.nix @@ -13,14 +13,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "glibmm"; - version = "2.66.8"; + version = "2.66.10"; __structuredAttrs = true; strictDeps = true; src = fetchurl { url = "mirror://gnome/sources/glibmm/${lib.versions.majorMinor finalAttrs.version}/glibmm-${finalAttrs.version}.tar.xz"; - hash = "sha256-ZPEdO5WiTiqNQWbs/1GHMPeezCciLvQfr3x+A0D8kyk="; + hash = "sha256-K2F4AgOu2Y5wHT6lfI81PnyK2pcGp5vngvbFFT3QNcA="; }; outputs = [ diff --git a/pkgs/by-name/gl/glibmm_2_68/package.nix b/pkgs/by-name/gl/glibmm_2_68/package.nix index 9745652e0e76..1b6cb629cdec 100644 --- a/pkgs/by-name/gl/glibmm_2_68/package.nix +++ b/pkgs/by-name/gl/glibmm_2_68/package.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "glibmm"; - version = "2.88.1"; + version = "2.90.0"; __structuredAttrs = true; strictDeps = true; @@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/glibmm/${lib.versions.majorMinor finalAttrs.version}/glibmm-${finalAttrs.version}.tar.xz"; - hash = "sha256-wTn5YrFXXIgnzTnRrCG3o2e+O9oUCcDH4hopCQ83FQY="; + hash = "sha256-4u+kVkPxa5/qLWKZ8vQD1nLq6s3fD/f4CU4a+bD1mAs="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gl/glitchtip/django-allauth-async.nix b/pkgs/by-name/gl/glitchtip/django-allauth-async.nix index 41156cc792d1..13486dca5011 100644 --- a/pkgs/by-name/gl/glitchtip/django-allauth-async.nix +++ b/pkgs/by-name/gl/glitchtip/django-allauth-async.nix @@ -41,7 +41,6 @@ buildPythonPackage (finalAttrs: { pname = "django-allauth-async"; version = "65.16.1.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitLab { owner = "glitchtip"; diff --git a/pkgs/by-name/gl/glycin-loaders/package.nix b/pkgs/by-name/gl/glycin-loaders/package.nix index bb6e645bb5f1..f1c4feba809f 100644 --- a/pkgs/by-name/gl/glycin-loaders/package.nix +++ b/pkgs/by-name/gl/glycin-loaders/package.nix @@ -7,7 +7,6 @@ glib, gtk4, libglycin, - lcms2, libheif, libjxl, librsvg, @@ -67,7 +66,6 @@ stdenv.mkDerivation (finalAttrs: { checkInputs = [ glib gtk4 - lcms2 ]; mesonFlags = [ @@ -85,8 +83,9 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; postPatch = '' - substituteInPlace glycin-loaders/meson.build \ - --replace-fail "cargo_target_dir / rust_target / loader," "cargo_target_dir / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / loader," + substituteInPlace meson.build --replace-fail \ + "meson.get_external_property('rust_target')" \ + "'${stdenv.hostPlatform.rust.cargoShortTarget}'" '' + lib.optionalString finalAttrs.finalPackage.doCheck '' chmod +x build-aux/setup-integration-test.py @@ -108,8 +107,6 @@ stdenv.mkDerivation (finalAttrs: { rm -r $out/share/thumbnailers ''; - env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec; - passthru = { inherit enabledLoaders; diff --git a/pkgs/by-name/gn/gnome-autoar/package.nix b/pkgs/by-name/gn/gnome-autoar/package.nix index ec5de715b8c2..bfa6d4f8d0fe 100644 --- a/pkgs/by-name/gn/gnome-autoar/package.nix +++ b/pkgs/by-name/gn/gnome-autoar/package.nix @@ -6,7 +6,6 @@ ninja, pkg-config, gnome, - gtk3, glib, gobject-introspection, libarchive, @@ -15,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-autoar"; - version = "0.4.5"; + version = "0.5.2"; outputs = [ "out" @@ -24,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gnome-autoar/${lib.versions.majorMinor finalAttrs.version}/gnome-autoar-${finalAttrs.version}.tar.xz"; - hash = "sha256-g4xTBvw4v6ovI6viQmL0vxV3HjMD+13LdPW5x6YV2r4="; + hash = "sha256-bCC9Fsh6uhWGnlZERCRIH2MqwwKYmiA+jOTcxz3qM6U="; }; nativeBuildInputs = [ @@ -35,10 +34,6 @@ stdenv.mkDerivation (finalAttrs: { vala ]; - buildInputs = [ - gtk3 - ]; - propagatedBuildInputs = [ libarchive glib diff --git a/pkgs/by-name/gn/gnome-backgrounds/package.nix b/pkgs/by-name/gn/gnome-backgrounds/package.nix index d8154407e6d9..228d0035f669 100644 --- a/pkgs/by-name/gn/gnome-backgrounds/package.nix +++ b/pkgs/by-name/gn/gnome-backgrounds/package.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-backgrounds"; - version = "50.0"; + version = "51.0.1"; src = fetchurl { url = "mirror://gnome/sources/gnome-backgrounds/${lib.versions.major finalAttrs.version}/gnome-backgrounds-${finalAttrs.version}.tar.xz"; - hash = "sha256-Gs26estPNMcyH+vGJzRENE/VX9WTYR1EbecIYBg7Urg="; + hash = "sha256-7FBTTXdJvg4VA8VQT4JsYdFGDStBy4RRj6ay9VR9Hh4="; }; patches = [ diff --git a/pkgs/by-name/gn/gnome-builder/package.nix b/pkgs/by-name/gn/gnome-builder/package.nix index e0d73bc14464..516c9ac958c7 100644 --- a/pkgs/by-name/gn/gnome-builder/package.nix +++ b/pkgs/by-name/gn/gnome-builder/package.nix @@ -5,6 +5,7 @@ cmark, desktop-file-utils, editorconfig-core-c, + fetchpatch, fetchurl, flatpak, gnome, @@ -67,6 +68,14 @@ stdenv.mkDerivation (finalAttrs: { # # Typelib file for namespace 'Pango', version '1.0' not found (g-irepository-error-quark, 0) ./fix-finding-test-typelibs.patch + + # Fix immediate crash at startup due to missing libdex initialization + # Upstream issue: https://gitlab.gnome.org/GNOME/gnome-builder/-/work_items/2413 + (fetchpatch { + name = "libdex-init.patch"; + url = "https://gitlab.gnome.org/GNOME/gnome-builder/-/commit/4dc88803f84ea11caaac78a39d2084ac6f1313d3.patch"; + hash = "sha256-O7iVyl8JQmIie5osTE0jj0hfEt3fKmcSpAE6b73g8ws="; + }) ]; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-calculator/package.nix b/pkgs/by-name/gn/gnome-calculator/package.nix index 03f314128260..2e612c99f09d 100644 --- a/pkgs/by-name/gn/gnome-calculator/package.nix +++ b/pkgs/by-name/gn/gnome-calculator/package.nix @@ -9,7 +9,6 @@ gettext, itstool, fetchurl, - fetchpatch, pkg-config, libxml2, gtk4, @@ -30,21 +29,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-calculator"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-calculator/${lib.versions.major finalAttrs.version}/gnome-calculator-${finalAttrs.version}.tar.xz"; - hash = "sha256-gFPWiRVl6IKHS2XB21HFvzEABet4i4usNUY5B0M1CpA="; + hash = "sha256-W/tMU+7GH+tsA/r4UhiATodBPstkfgj95jeb8rGDkZA="; }; - patches = [ - # Fix tests with GNU MPC 1.4.0 - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/gnome-calculator/-/commit/c9bf69ce3688390a584ca7571ea5fcda5aea8863.patch"; - hash = "sha256-FoV6SUprVdNcRORpoi+bNMTjzMM8bmXuze+6C9lqF8E="; - }) - ]; - nativeBuildInputs = [ appstream blueprint-compiler diff --git a/pkgs/by-name/gn/gnome-calendar/package.nix b/pkgs/by-name/gn/gnome-calendar/package.nix index 9f76e9a89df2..aa8b2d400118 100644 --- a/pkgs/by-name/gn/gnome-calendar/package.nix +++ b/pkgs/by-name/gn/gnome-calendar/package.nix @@ -25,11 +25,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-calendar"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-calendar/${lib.versions.major finalAttrs.version}/gnome-calendar-${finalAttrs.version}.tar.xz"; - hash = "sha256-S3XfBxpS2Y+zXmR9AYAwEp0k2QB3kNAkV3RsmGF66rA="; + hash = "sha256-d8KQRQxAg0OSzeosQEUVYemPQ9Xa6TzZ6RUFGmcI3DA="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-characters/package.nix b/pkgs/by-name/gn/gnome-characters/package.nix index bd5822f9767c..9a65361000a9 100644 --- a/pkgs/by-name/gn/gnome-characters/package.nix +++ b/pkgs/by-name/gn/gnome-characters/package.nix @@ -22,11 +22,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-characters"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-characters/${lib.versions.major finalAttrs.version}/gnome-characters-${finalAttrs.version}.tar.xz"; - hash = "sha256-QHBzTdY5swlL5Ge7BVpUYbL8MBzfyf7dy0po9HbtWq0="; + hash = "sha256-i5Dp1/z/Q2Iu00Z38AKc10tEAYXxY5r0jEOfY7663DE="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-clocks/package.nix b/pkgs/by-name/gn/gnome-clocks/package.nix index bb49f1bc8bd1..0eac44b7cf23 100644 --- a/pkgs/by-name/gn/gnome-clocks/package.nix +++ b/pkgs/by-name/gn/gnome-clocks/package.nix @@ -28,11 +28,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-clocks"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major finalAttrs.version}/gnome-clocks-${finalAttrs.version}.tar.xz"; - hash = "sha256-vxZ/f0T08vtCTUcWZSybofKeFuSQceJqG7gz+NznlMY="; + hash = "sha256-S9+cBIGoMDfaHQ+ibSwsaoDLc2RY/Rj94UrK95JIdMY="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-connections/package.nix b/pkgs/by-name/gn/gnome-connections/package.nix index 998e93f592fe..eb2a32b6addf 100644 --- a/pkgs/by-name/gn/gnome-connections/package.nix +++ b/pkgs/by-name/gn/gnome-connections/package.nix @@ -24,11 +24,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-connections"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-connections/${lib.versions.major finalAttrs.version}/gnome-connections-${finalAttrs.version}.tar.xz"; - hash = "sha256-Vnv2NcbTA66Ex083yE35+4/Pal6d/0UuFBTGcXRNldA="; + hash = "sha256-46c3KM8w8eVCrtOqTxijQuCTSbl/4B3674bhYD5Trzw="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-console/package.nix b/pkgs/by-name/gn/gnome-console/package.nix index 695bac3a631c..c30af23f8d14 100644 --- a/pkgs/by-name/gn/gnome-console/package.nix +++ b/pkgs/by-name/gn/gnome-console/package.nix @@ -21,11 +21,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-console"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-console/${lib.versions.major finalAttrs.version}/gnome-console-${finalAttrs.version}.tar.xz"; - hash = "sha256-5JUCB/BUfmpsDxjuv89uGhBGHqsPL64KrlErEETHrG4="; + hash = "sha256-9A0TkDsfBn8MAuCBL3jfjsJdjNEpeU5+Rr1WygwVby8="; }; nativeBuildInputs = [ @@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: { }; }; - passthru.tests.test = nixosTests.terminal-emulators.kgx; + passthru.tests.test = nixosTests.terminal-emulators.gnome-console; meta = { description = "Simple user-friendly terminal emulator for the GNOME desktop"; diff --git a/pkgs/by-name/gn/gnome-contacts/package.nix b/pkgs/by-name/gn/gnome-contacts/package.nix index db837086577b..b38dee575b1d 100644 --- a/pkgs/by-name/gn/gnome-contacts/package.nix +++ b/pkgs/by-name/gn/gnome-contacts/package.nix @@ -33,11 +33,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-contacts"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-contacts/${lib.versions.major finalAttrs.version}/gnome-contacts-${finalAttrs.version}.tar.xz"; - hash = "sha256-KjvqNDFxviRPErfCGkDKOOmpLeqYkDk69eisE5vA2rM="; + hash = "sha256-yLYHUvZalm4KLAy/fB4WB+47Skkxi1Cxm9rSq3/GcG0="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-control-center/package.nix b/pkgs/by-name/gn/gnome-control-center/package.nix index 11ae7b5b82f7..7cf54cc16dae 100644 --- a/pkgs/by-name/gn/gnome-control-center/package.nix +++ b/pkgs/by-name/gn/gnome-control-center/package.nix @@ -19,6 +19,7 @@ glib-networking, gcr_4, glibc, + glibcLocalesUtf8, gnome-bluetooth, gnome-color-manager, gnome-desktop, @@ -78,11 +79,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-control-center"; - version = "50.4"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-control-center/${lib.versions.major finalAttrs.version}/gnome-control-center-${finalAttrs.version}.tar.xz"; - hash = "sha256-WFbHOZm+30XnT3O6w9YeK17BaJ+LzxlDc3uu7oIE+xE="; + hash = "sha256-yMpbagrkT9DWSqxao7eag8JEUJWxWanRPRycwXKsT7k="; }; patches = [ @@ -166,6 +167,7 @@ stdenv.mkDerivation (finalAttrs: { python3.pkgs.python-dbusmock setxkbmap xorg-server # for Xvfb + glibcLocalesUtf8 ]; doCheck = true; diff --git a/pkgs/by-name/gn/gnome-control-center/paths.patch b/pkgs/by-name/gn/gnome-control-center/paths.patch index 87d8f737ba43..66ebe8687cd9 100644 --- a/pkgs/by-name/gn/gnome-control-center/paths.patch +++ b/pkgs/by-name/gn/gnome-control-center/paths.patch @@ -1,35 +1,27 @@ diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c -index dac0e51..71af3e2 100644 --- a/panels/color/cc-color-panel.c +++ b/panels/color/cc-color-panel.c -@@ -973,7 +973,7 @@ gcm_prefs_profile_view (CcColorPanel *self, CdProfile *profile) +@@ -843,7 +843,7 @@ - /* open up gcm-viewer as a info pane */ - argv = g_ptr_array_new_with_free_func (g_free); -- g_ptr_array_add (argv, g_strdup ("gcm-viewer")); -+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-viewer", NULL)); - g_ptr_array_add (argv, g_strdup ("--profile")); - g_ptr_array_add (argv, g_strdup (cd_profile_get_id (profile))); - g_ptr_array_add (argv, g_strdup ("--parent-window")); -@@ -1141,15 +1141,12 @@ gcm_prefs_device_clicked (CcColorPanel *self, CdDevice *device) - static void - gcm_prefs_profile_clicked (CcColorPanel *self, CdProfile *profile, CdDevice *device) - { -- g_autofree gchar *s = NULL; + /* open up gcm-viewer as a info pane */ + argv = g_ptr_array_new_with_free_func (g_free); +- g_ptr_array_add (argv, g_strdup ("gcm-viewer")); ++ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-viewer", NULL)); + g_ptr_array_add (argv, g_strdup ("--profile")); + g_ptr_array_add (argv, g_strdup (cd_profile_get_id (profile))); + g_ptr_array_add (argv, g_strdup ("--parent-window")); +@@ -1002,9 +1002,7 @@ + + /* allow getting profile info */ + if (filename != NULL) { +- g_autofree gchar *viewer = g_find_program_in_path ("gcm-viewer"); - - /* get profile */ - g_debug ("selected profile = %s", - cd_profile_get_filename (profile)); - - /* allow getting profile info */ -- if (cd_profile_get_filename (profile) != NULL && -- (s = g_find_program_in_path ("gcm-viewer")) != NULL) -+ if (cd_profile_get_filename (profile) != NULL) - gtk_widget_set_sensitive (self->toolbutton_profile_view, TRUE); - else - gtk_widget_set_sensitive (self->toolbutton_profile_view, FALSE); +- gtk_widget_set_sensitive (self->toolbutton_profile_view, viewer != NULL); ++ gtk_widget_set_sensitive (self->toolbutton_profile_view, TRUE); + } else { + gtk_widget_set_sensitive (self->toolbutton_profile_view, FALSE); + } diff --git a/panels/system/datetime/tz.h b/panels/system/datetime/tz.h -index feef165..4b88ef7 100644 --- a/panels/system/datetime/tz.h +++ b/panels/system/datetime/tz.h @@ -27,11 +27,7 @@ @@ -37,98 +29,92 @@ index feef165..4b88ef7 100644 G_BEGIN_DECLS -#ifndef __sun --# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab" +-#define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab" -#else --# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" +-#define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" -#endif +#define TZ_DATA_FILE "@tzdata@/share/zoneinfo/zone.tab" typedef struct _TzDB TzDB; typedef struct _TzLocation TzLocation; diff --git a/panels/network/connection-editor/net-connection-editor.c b/panels/network/connection-editor/net-connection-editor.c -index f1cae8d..faee22a 100644 --- a/panels/network/connection-editor/net-connection-editor.c +++ b/panels/network/connection-editor/net-connection-editor.c -@@ -384,7 +384,7 @@ net_connection_editor_do_fallback (NetConnectionEditor *self, const gchar *type) - GPid child_pid; +@@ -358,7 +358,7 @@ + GPid child_pid; - builder = g_strv_builder_new (); -- g_strv_builder_add (builder, "nm-connection-editor"); -+ g_strv_builder_add (builder, "@networkmanagerapplet@/bin/nm-connection-editor"); + builder = g_strv_builder_new (); +- g_strv_builder_add (builder, "nm-connection-editor"); ++ g_strv_builder_add (builder, "@networkmanagerapplet@/bin/nm-connection-editor"); - if (self->is_new_connection) { - g_autofree gchar *type_str = NULL; + if (self->is_new_connection) { + g_autofree gchar *type_str = NULL; diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c -index d0b0206..8276af0 100644 --- a/panels/network/net-device-mobile.c +++ b/panels/network/net-device-mobile.c -@@ -521,7 +521,7 @@ options_button_clicked_cb (NetDeviceMobile *self) +@@ -483,7 +483,7 @@ - connection = net_device_get_find_connection (self->client, self->device); - uuid = nm_connection_get_uuid (connection); -- cmdline = g_strdup_printf ("nm-connection-editor --edit %s", uuid); -+ cmdline = g_strdup_printf ("@networkmanagerapplet@/bin/nm-connection-editor --edit %s", uuid); - g_debug ("Launching '%s'\n", cmdline); - if (!g_spawn_command_line_async (cmdline, &error)) - g_warning ("Failed to launch nm-connection-editor: %s", error->message); -@@ -810,7 +810,7 @@ net_device_mobile_init (NetDeviceMobile *self) + connection = net_device_get_find_connection (self->client, self->device); + uuid = nm_connection_get_uuid (connection); +- cmdline = g_strdup_printf ("nm-connection-editor --edit %s", uuid); ++ cmdline = g_strdup_printf ("@networkmanagerapplet@/bin/nm-connection-editor --edit %s", uuid); + g_debug ("Launching '%s'\n", cmdline); + if (!g_spawn_command_line_async (cmdline, &error)) + g_warning ("Failed to launch nm-connection-editor: %s", error->message); +@@ -716,7 +716,7 @@ - self->cancellable = g_cancellable_new (); + self->cancellable = g_cancellable_new (); -- path = g_find_program_in_path ("nm-connection-editor"); -+ path = g_find_program_in_path ("@networkmanagerapplet@/bin/nm-connection-editor"); - gtk_widget_set_visible (GTK_WIDGET (self->options_button), path != NULL); +- path = g_find_program_in_path ("nm-connection-editor"); ++ path = g_find_program_in_path ("@networkmanagerapplet@/bin/nm-connection-editor"); + gtk_widget_set_visible (GTK_WIDGET (self->options_button), path != NULL); } diff --git a/panels/printers/pp-host.c b/panels/printers/pp-host.c -index a31a606..ed5133d 100644 --- a/panels/printers/pp-host.c +++ b/panels/printers/pp-host.c -@@ -256,7 +256,7 @@ _pp_host_get_snmp_devices_thread (GTask *task, - devices = g_ptr_array_new_with_free_func (g_object_unref); +@@ -214,7 +214,7 @@ + devices = g_ptr_array_new_with_free_func (g_object_unref); - argv = g_new0 (gchar *, 3); -- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp"); -+ argv[0] = g_strdup ("@cups@/lib/cups/backend/snmp"); - argv[1] = g_strdup (priv->hostname); + argv = g_new0 (gchar *, 3); +- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp"); ++ argv[0] = g_strdup ("@cups@/lib/cups/backend/snmp"); + argv[1] = g_strdup (priv->hostname); - /* Use SNMP to get printer's informations */ + /* Use SNMP to get printer's informations */ diff --git a/panels/system/users/run-passwd.c b/panels/system/users/run-passwd.c -index fb9efc6..452486a 100644 --- a/panels/system/users/run-passwd.c +++ b/panels/system/users/run-passwd.c -@@ -152,7 +152,7 @@ spawn_passwd (PasswdHandler *passwd_handler, GError **error) - gchar **envp; - gint my_stdin, my_stdout; +@@ -144,7 +144,7 @@ + gchar **envp; + gint my_stdin, my_stdout; -- argv[0] = "/usr/bin/passwd"; /* Is it safe to rely on a hard-coded path? */ -+ argv[0] = "/run/wrappers/bin/passwd"; /* Is it safe to rely on a hard-coded path? */ - argv[1] = NULL; +- argv[0] = "/usr/bin/passwd"; /* Is it safe to rely on a hard-coded path? */ ++ argv[0] = "/run/wrappers/bin/passwd"; /* Is it safe to rely on a hard-coded path? */ + argv[1] = NULL; - envp = g_get_environ (); + envp = g_get_environ (); diff --git a/panels/system/users/user-utils.c b/panels/system/users/user-utils.c -index 16dc79e..f543e7b 100644 --- a/panels/system/users/user-utils.c +++ b/panels/system/users/user-utils.c -@@ -217,7 +217,7 @@ is_valid_username_async (const gchar *username, - * future, so it would be nice to have some official way for this - * instead of relying on the current "--login" implementation. - */ -- argv[0] = "/usr/sbin/usermod"; -+ argv[0] = "@shadow@/bin/usermod"; - argv[1] = "--login"; - argv[2] = data->username; - argv[3] = "--"; +@@ -211,7 +211,7 @@ + * future, so it would be nice to have some official way for this + * instead of relying on the current "--login" implementation. + */ +- argv[0] = "/usr/sbin/usermod"; ++ argv[0] = "@shadow@/bin/usermod"; + argv[1] = "--login"; + argv[2] = data->username; + argv[3] = "--"; diff --git a/tests/datetime/test-endianess.c b/tests/datetime/test-endianess.c -index 9cb9200..84d2f0f 100644 --- a/tests/datetime/test-endianess.c +++ b/tests/datetime/test-endianess.c -@@ -26,7 +26,7 @@ test_endianess (void) - g_autoptr(GDir) dir = NULL; - const char *name; +@@ -26,7 +26,7 @@ + g_autoptr(GDir) dir = NULL; + const char *name; -- dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL); -+ dir = g_dir_open ("@glibc@/share/i18n/locales/", 0, NULL); - if (dir == NULL) { - /* Try with /usr/share/locale/ - * https://bugzilla.gnome.org/show_bug.cgi?id=646780 */ +- dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL); ++ dir = g_dir_open ("@glibc@/share/i18n/locales/", 0, NULL); + if (dir == NULL) { + /* Try with /usr/share/locale/ + * https://bugzilla.gnome.org/show_bug.cgi?id=646780 */ diff --git a/pkgs/by-name/gn/gnome-desktop/package.nix b/pkgs/by-name/gn/gnome-desktop/package.nix index 53bd7c4007aa..0eaa540befbd 100644 --- a/pkgs/by-name/gn/gnome-desktop/package.nix +++ b/pkgs/by-name/gn/gnome-desktop/package.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-desktop"; - version = "44.5"; + version = "51.0"; outputs = [ "out" @@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gnome-desktop/${lib.versions.major finalAttrs.version}/gnome-desktop-${finalAttrs.version}.tar.xz"; - sha256 = "sha256-IOCZWm46A+jBAmxaJ7w/Reaf/MOSrXQ9yrYQelQdIy8="; + sha256 = "sha256-nr658XadPDEMrq3ZIas0yPJkuSk3dAUYs7yFmleaaRI="; }; patches = lib.optionals stdenv.hostPlatform.isLinux [ diff --git a/pkgs/by-name/gn/gnome-extensions-app/package.nix b/pkgs/by-name/gn/gnome-extensions-app/package.nix new file mode 100644 index 000000000000..18be66d3ea27 --- /dev/null +++ b/pkgs/by-name/gn/gnome-extensions-app/package.nix @@ -0,0 +1,70 @@ +{ + desktop-file-utils, + fetchurl, + gjs, + glib, + gnome, + gobject-introspection, + gtk4, + lib, + libadwaita, + meson, + ninja, + pkg-config, + stdenv, + wrapGAppsHook4, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "gnome-extensions-app"; + version = "51.alpha"; + + src = fetchurl { + url = "mirror://gnome/sources/gnome-extensions-app/${lib.versions.major finalAttrs.version}/gnome-extensions-app-${finalAttrs.version}.tar.xz"; + hash = "sha256-xgmY+rH2fnP86+qkDFgG3B6//W4esW47dHLcQmkcheY="; + }; + + __structuredAttrs = true; + strictDeps = true; + + patches = [ + # Use absolute path for libshew installation to make our patched gobject-introspection + # aware of the location to hardcode in the generated GIR file. + ./shew-gir-path.patch + ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace-fail "gjs = find_program('gjs')" "gjs = find_program('${lib.getExe gjs}')" + ''; + + nativeBuildInputs = [ + desktop-file-utils + glib + gobject-introspection + meson + ninja + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + gjs + gtk4 + libadwaita + ]; + + passthru = { + updateScript = gnome.updateScript { packageName = "gnome-extensions-app"; }; + }; + + meta = { + description = "Small app for managing GNOME Shell extensions"; + homepage = "https://gitlab.gnome.org/GNOME/gnome-extensions-app"; + changelog = "https://gitlab.gnome.org/GNOME/gnome-extensions-app/-/blob/${finalAttrs.version}/NEWS"; + license = lib.licenses.gpl2Plus; + teams = [ lib.teams.gnome ]; + platforms = lib.platforms.linux; + mainProgram = "gnome-extensions-app"; + }; +}) diff --git a/pkgs/by-name/gn/gnome-extensions-app/shew-gir-path.patch b/pkgs/by-name/gn/gnome-extensions-app/shew-gir-path.patch new file mode 100644 index 000000000000..6efdff420d04 --- /dev/null +++ b/pkgs/by-name/gn/gnome-extensions-app/shew-gir-path.patch @@ -0,0 +1,11 @@ +--- a/subprojects/libshew/src/meson.build ++++ b/subprojects/libshew/src/meson.build +@@ -15,7 +15,7 @@ shew_sources = [ + libshew = library(full_name, + sources: shew_sources, + dependencies: [gtk_dep], +- install_dir: pkglibdir, ++ install_dir: get_option('prefix') / pkglibdir, + install: true, + ) + diff --git a/pkgs/by-name/gn/gnome-initial-setup/0001-fix-paths.patch b/pkgs/by-name/gn/gnome-initial-setup/0001-fix-paths.patch index f429b4830144..40b8649db98d 100644 --- a/pkgs/by-name/gn/gnome-initial-setup/0001-fix-paths.patch +++ b/pkgs/by-name/gn/gnome-initial-setup/0001-fix-paths.patch @@ -1,32 +1,14 @@ -From 1ae0eca39ba6af27f37e2fe81395b91a2761a408 Mon Sep 17 00:00:00 2001 -Message-Id: <1ae0eca39ba6af27f37e2fe81395b91a2761a408.1600627676.git-series.worldofpeace@protonmail.ch> -From: WORLDofPEACE -Date: Sun, 20 Sep 2020 14:46:59 -0400 -Subject: [PATCH] fix paths - ---- - gnome-initial-setup/pages/keyboard/cc-input-chooser.c | 6 +++--- - gnome-initial-setup/pages/timezone/tz.h | 4 ++-- - 3 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c -index 196abf6..613d0e5 100644 --- a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c +++ b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c -@@ -177,9 +177,9 @@ preview_cb (GtkLabel *label, - return TRUE; - - if (variant[0]) -- commandline = g_strdup_printf ("tecla \"%s+%s\"", layout, variant); -+ commandline = g_strdup_printf ("@tecla@/bin/tecla \"%s+%s\"", layout, variant); +@@ -185,7 +185,7 @@ else -- commandline = g_strdup_printf ("tecla %s", layout); -+ commandline = g_strdup_printf ("@tecla@/bin/tecla %s", layout); - g_spawn_command_line_async (commandline, NULL); - g_free (commandline); + layout_variant = g_strdup (layout); + +- argv[0] = "tecla"; ++ argv[0] = "@tecla@/bin/tecla"; + argv[1] = layout_variant; + argv[2] = NULL; -diff --git a/gnome-initial-setup/pages/timezone/tz.h b/gnome-initial-setup/pages/timezone/tz.h -index a2376f8..5cb7bc9 100644 --- a/gnome-initial-setup/pages/timezone/tz.h +++ b/gnome-initial-setup/pages/timezone/tz.h @@ -28,7 +28,7 @@ @@ -38,7 +20,3 @@ index a2376f8..5cb7bc9 100644 #else # define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" #endif - -base-commit: 5132e206a6bf81964450561d68473ac015760455 --- -git-series 0.9.1 diff --git a/pkgs/by-name/gn/gnome-initial-setup/package.nix b/pkgs/by-name/gn/gnome-initial-setup/package.nix index 6789de3656ff..51d4f0bda246 100644 --- a/pkgs/by-name/gn/gnome-initial-setup/package.nix +++ b/pkgs/by-name/gn/gnome-initial-setup/package.nix @@ -37,11 +37,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-initial-setup"; - version = "50.1"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-initial-setup/${lib.versions.major finalAttrs.version}/gnome-initial-setup-${finalAttrs.version}.tar.xz"; - hash = "sha256-su0FI1iW9H9VJJirWrKfVQHmqMQe5kXyqRhiCx3pHmA="; + hash = "sha256-IqG2H8z55NqfklRSmE5FjYWzQyP0OZElzTaFT162bMQ="; }; patches = [ diff --git a/pkgs/by-name/gn/gnome-manuals/package.nix b/pkgs/by-name/gn/gnome-manuals/package.nix index 52a8f74c2ca1..1c5d407fcae4 100644 --- a/pkgs/by-name/gn/gnome-manuals/package.nix +++ b/pkgs/by-name/gn/gnome-manuals/package.nix @@ -2,6 +2,7 @@ stdenv, lib, desktop-file-utils, + fetchpatch, fetchurl, flatpak, glib, @@ -28,6 +29,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-foRBdV0N5xdCjIAORa4GyF7JZK9GrFO53GW0G8OjLHQ="; }; + patches = [ + # Fix immediate crash at startup due to missing libdex initialization + (fetchpatch { + name = "libdex-init.patch"; + url = "https://gitlab.gnome.org/GNOME/manuals/-/commit/e516710da9e9d586a0b3fa08cf82d7f2e02afb78.patch"; + hash = "sha256-YZXs09s2GTI7x3+N4jWq8KyMq3X5O+IWvka/s/NokeE="; + }) + ]; + nativeBuildInputs = [ desktop-file-utils meson diff --git a/pkgs/by-name/gn/gnome-maps/package.nix b/pkgs/by-name/gn/gnome-maps/package.nix index 9471f41ecf3b..ea9324f4ed57 100644 --- a/pkgs/by-name/gn/gnome-maps/package.nix +++ b/pkgs/by-name/gn/gnome-maps/package.nix @@ -27,15 +27,18 @@ geocode-glib_2, tzdata, writeText, + sqlite, }: stdenv.mkDerivation (finalAttrs: { pname = "gnome-maps"; - version = "50.3"; + version = "51.0"; + + strictDeps = true; src = fetchurl { url = "mirror://gnome/sources/gnome-maps/${lib.versions.major finalAttrs.version}/gnome-maps-${finalAttrs.version}.tar.xz"; - hash = "sha256-CJyo4Vq9cqyD2zhs7xnOveBe74t26qyBkGpLBTVUTiw="; + hash = "sha256-kTbU/bWUdJtj6S+kYIJgzLxPccxtvxliDbZWXrVuj2c="; }; doCheck = !stdenv.hostPlatform.isDarwin; @@ -69,6 +72,7 @@ stdenv.mkDerivation (finalAttrs: { librest libsecret libsoup_3 + sqlite ]; mesonFlags = [ diff --git a/pkgs/by-name/gn/gnome-remote-desktop/package.nix b/pkgs/by-name/gn/gnome-remote-desktop/package.nix index c06ce4f8bf58..43ba76e5f9aa 100644 --- a/pkgs/by-name/gn/gnome-remote-desktop/package.nix +++ b/pkgs/by-name/gn/gnome-remote-desktop/package.nix @@ -35,11 +35,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-remote-desktop"; - version = "50.2"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-remote-desktop/${lib.versions.major finalAttrs.version}/gnome-remote-desktop-${finalAttrs.version}.tar.xz"; - hash = "sha256-Md9ij0ETVz8Tb/yNwAF2Ou1jPNhb7SHli8YfihffCR8="; + hash = "sha256-x5VLNNpXZiiOoZtWAmQhycH+LCPvN55X7CCdwM8T3ys="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-session/package.nix b/pkgs/by-name/gn/gnome-session/package.nix index 594bb0b47b20..3a5afa1994dc 100644 --- a/pkgs/by-name/gn/gnome-session/package.nix +++ b/pkgs/by-name/gn/gnome-session/package.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-session"; # Also bump ../gnome-session-ctl/package.nix when bumping major version. - version = "50.1"; + version = "51.0"; outputs = [ "out" @@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gnome-session/${lib.versions.major finalAttrs.version}/gnome-session-${finalAttrs.version}.tar.xz"; - hash = "sha256-Yom2r6RNPkyZnOV2H/iywQujCfVflCXysT+YIIyB9vs="; + hash = "sha256-UZXE9gVCqVOrbr0ojzeFuOd0YpLYwWfgyZ01NDihhNE="; }; patches = [ diff --git a/pkgs/by-name/gn/gnome-settings-daemon/package.nix b/pkgs/by-name/gn/gnome-settings-daemon/package.nix index 51e304dca688..7da7db27cea1 100644 --- a/pkgs/by-name/gn/gnome-settings-daemon/package.nix +++ b/pkgs/by-name/gn/gnome-settings-daemon/package.nix @@ -42,14 +42,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-settings-daemon"; - version = "50.1"; + version = "51.0"; __structuredAttrs = true; strictDeps = true; src = fetchurl { url = "mirror://gnome/sources/gnome-settings-daemon/${lib.versions.major finalAttrs.version}/gnome-settings-daemon-${finalAttrs.version}.tar.xz"; - hash = "sha256-3SyXMJFPDs7KAindiowpQKV93rCAJDRVjUsWTXnP4Fw="; + hash = "sha256-fGJJEY3f/8S7NNaz7aqGs+oCoa0rdxHXlIB0mQZ2dmU="; }; patches = [ diff --git a/pkgs/by-name/gn/gnome-shell/greeter-logo-size.patch b/pkgs/by-name/gn/gnome-shell/greeter-logo-size.patch index 93965a475216..89142594f667 100644 --- a/pkgs/by-name/gn/gnome-shell/greeter-logo-size.patch +++ b/pkgs/by-name/gn/gnome-shell/greeter-logo-size.patch @@ -2,15 +2,15 @@ diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 28db1a9de..805b686bf 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js -@@ -46,6 +46,7 @@ const _FADE_ANIMATION_TIME = 250; - const _SCROLL_ANIMATION_TIME = 500; - const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0; +@@ -52,6 +52,7 @@ const _CONFLICTING_SESSION_DIALOG_TIMEOUT = 60; + const _PRIMARY_LOGIN_METHOD_SECTION_NAME = _('Login Options'); + const _SESSION_TYPE_SECTION_NAME = _('Session Type'); +const _LOGO_ICON_HEIGHT = 48; - export const UserListItem = GObject.registerClass({ - Signals: {'activate': {}}, -@@ -908,7 +909,7 @@ export const LoginDialog = GObject.registerClass({ + const N_A11Y_MENU_COLUMNS = 2; + +@@ -957,7 +958,7 @@ const scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor; const texture = this._textureCache.load_file_async( this._logoFile, diff --git a/pkgs/by-name/gn/gnome-shell/package.nix b/pkgs/by-name/gn/gnome-shell/package.nix index 3c6c98093f4e..3c77826fd669 100644 --- a/pkgs/by-name/gn/gnome-shell/package.nix +++ b/pkgs/by-name/gn/gnome-shell/package.nix @@ -1,6 +1,5 @@ { fetchurl, - fetchpatch, replaceVars, lib, stdenv, @@ -24,7 +23,6 @@ librsvg, webp-pixbuf-loader, geoclue2, - desktop-file-utils, libpulseaudio, libical, gobject-introspection, @@ -39,7 +37,6 @@ libnma-gtk4, gnome-desktop, gsettings-desktop-schemas, - gnome-keyring, glib, gjs, mutter, @@ -49,6 +46,7 @@ sassc, systemdLibs, pipewire, + libgudev, gst_all_1, adwaita-icon-theme, glycin-loaders, @@ -66,6 +64,8 @@ libsoup_3, libxml2, webkitgtk_6_0, + cairo, + libglycin, }: let @@ -73,7 +73,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "gnome-shell"; - version = "50.4"; + version = "51.0"; outputs = [ "out" @@ -82,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gnome-shell/${lib.versions.major finalAttrs.version}/gnome-shell-${finalAttrs.version}.tar.xz"; - hash = "sha256-xTGTlTnbMWpBrvI2cDcKvRMw0yVPhLyw+fTa5dbjYs8="; + hash = "sha256-IXm6sTrzU0JwZQlq+L89MNp7huDFFuW6hqFJmK+VdfY="; }; patches = [ @@ -107,12 +107,6 @@ stdenv.mkDerivation (finalAttrs: { # https://gitlab.gnome.org/GNOME/gnome-shell/issues/2591 # Reverts https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1101 ./greeter-logo-size.patch - - # Work around failing fingerprint auth - (fetchpatch { - url = "https://src.fedoraproject.org/rpms/gnome-shell/raw/dcd112d9708954187e7490564c2229d82ba5326f/f/0001-gdm-Work-around-failing-fingerprint-auth.patch"; - hash = "sha256-mgXty5HhiwUO1UV3/eDgWtauQKM0cRFQ0U7uocST25s="; - }) ]; nativeBuildInputs = [ @@ -124,7 +118,6 @@ stdenv.mkDerivation (finalAttrs: { gi-docgen wrapGAppsHook4 sassc - desktop-file-utils libxslt.bin gobject-introspection ]; @@ -132,7 +125,6 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ systemdLibs gsettings-desktop-schemas - gnome-keyring glib gcr_4 accountsservice @@ -166,6 +158,9 @@ stdenv.mkDerivation (finalAttrs: { libxkbcommon libsoup_3 libxml2 + cairo + json-glib + libglycin # recording pipewire @@ -174,6 +169,7 @@ stdenv.mkDerivation (finalAttrs: { gst_all_1.gst-plugins-good # not declared at build time, but typelib is needed at runtime + libgudev libgweather libnma-gtk4 webkitgtk_6_0 # for gnome-shell-portal-helper @@ -181,7 +177,6 @@ stdenv.mkDerivation (finalAttrs: { # for gnome-extension tool bash-completion gnome-autoar - json-glib # for tools pythonEnv @@ -201,7 +196,7 @@ stdenv.mkDerivation (finalAttrs: { rm -f man/gnome-shell.1 rm data/theme/gnome-shell-{light,dark}.css - substituteInPlace meson.build subprojects/extensions-app/meson.build \ + substituteInPlace meson.build \ --replace-fail "gjs = find_program('gjs')" "gjs = find_program('${lib.getExe gjs}')" ''; diff --git a/pkgs/by-name/gn/gnome-software/package.nix b/pkgs/by-name/gn/gnome-software/package.nix index b66d27c741bc..75ccce9aec17 100644 --- a/pkgs/by-name/gn/gnome-software/package.nix +++ b/pkgs/by-name/gn/gnome-software/package.nix @@ -31,6 +31,7 @@ malcontent, json-glib, glib-networking, + glib-testing, libsecret, valgrind-light, docbook-xsl-nons, @@ -48,11 +49,11 @@ in stdenv.mkDerivation (finalAttrs: { pname = "gnome-software"; - version = "50.3"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-software/${lib.versions.major finalAttrs.version}/gnome-software-${finalAttrs.version}.tar.xz"; - hash = "sha256-sTGOaPArs5AvzY+QTVbwP1NOpQmPZeTGu5wskk2n+CM="; + hash = "sha256-g0tgNeYeNt1yM56z4V0pm0cq4LOTRnpbs2uwBF4LoSM="; }; patches = [ @@ -82,6 +83,7 @@ stdenv.mkDerivation (finalAttrs: { gtk4 glib glib-networking + glib-testing packagekit appstream libsoup_3 diff --git a/pkgs/by-name/gn/gnome-system-monitor/package.nix b/pkgs/by-name/gn/gnome-system-monitor/package.nix index 7d2fea2a0c51..f177d2ebbb12 100644 --- a/pkgs/by-name/gn/gnome-system-monitor/package.nix +++ b/pkgs/by-name/gn/gnome-system-monitor/package.nix @@ -6,7 +6,6 @@ pkg-config, gtkmm4, bash, - catch2_3, gtk4, libadwaita, glib, @@ -25,11 +24,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-system-monitor"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-system-monitor/${lib.versions.major finalAttrs.version}/gnome-system-monitor-${finalAttrs.version}.tar.xz"; - hash = "sha256-pBOKp1S0WExG3pH60daF4nsSvCRX3nYYY7a+AthMSGI="; + hash = "sha256-iIewNCcjCsCBbUsMgBzmYorR/JE57TBykU6fqogbqGg="; }; patches = [ @@ -49,7 +48,6 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ bash - catch2_3 gtk4 libadwaita glib diff --git a/pkgs/by-name/gn/gnome-tecla/package.nix b/pkgs/by-name/gn/gnome-tecla/package.nix index cd095dddf795..09d18420776a 100644 --- a/pkgs/by-name/gn/gnome-tecla/package.nix +++ b/pkgs/by-name/gn/gnome-tecla/package.nix @@ -16,11 +16,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "tecla"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/tecla/${lib.versions.major finalAttrs.version}/tecla-${finalAttrs.version}.tar.xz"; - hash = "sha256-JUKsskhQCC4Mz2qhevllHbcdIvDiM/2/XtDP/i5FvAY="; + hash = "sha256-3fGoVVBEFx0NhLWA1tVBw8YhrneZb2vF7d5ZjeL4Yls="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-text-editor/package.nix b/pkgs/by-name/gn/gnome-text-editor/package.nix index 8c8fb7beaaaf..13e67aca39aa 100644 --- a/pkgs/by-name/gn/gnome-text-editor/package.nix +++ b/pkgs/by-name/gn/gnome-text-editor/package.nix @@ -23,11 +23,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-text-editor"; - version = "50.1"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-text-editor/${lib.versions.major finalAttrs.version}/gnome-text-editor-${finalAttrs.version}.tar.xz"; - hash = "sha256-9oA2sJ03j6qIO/6Tbkecb/NwJ8L/7RAdr5Et9wxR0OY="; + hash = "sha256-K3bm2hUGNGxUs2uho67tzSj0y31qh5PSF/IJRWyS3Uw="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gn/gnome-user-docs/package.nix b/pkgs/by-name/gn/gnome-user-docs/package.nix index 3a55e12ccb93..d576e93e4be7 100644 --- a/pkgs/by-name/gn/gnome-user-docs/package.nix +++ b/pkgs/by-name/gn/gnome-user-docs/package.nix @@ -6,22 +6,28 @@ gnome, itstool, libxml2, + meson, + ninja, yelp-tools, }: stdenv.mkDerivation (finalAttrs: { pname = "gnome-user-docs"; - version = "50.4"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-user-docs/${lib.versions.major finalAttrs.version}/gnome-user-docs-${finalAttrs.version}.tar.xz"; - hash = "sha256-zYdoQ1NDY1uy3P9pygORZxVTJGnEZd9IBMN63ZihNJc="; + hash = "sha256-vz69f6HacGF4hLBzkt6NYFMFz+9xwuiDdJywj/DWp9E="; }; + strictDeps = true; + nativeBuildInputs = [ gettext itstool libxml2 + meson + ninja yelp-tools ]; diff --git a/pkgs/by-name/gn/gnugrep/package.nix b/pkgs/by-name/gn/gnugrep/package.nix index 03b965b7268b..191b30fd6125 100644 --- a/pkgs/by-name/gn/gnugrep/package.nix +++ b/pkgs/by-name/gn/gnugrep/package.nix @@ -33,7 +33,6 @@ stdenv.mkDerivation (finalAttrs: { # Some gnulib tests fail # - on Musl: https://github.com/NixOS/nixpkgs/pull/228714 - # - on x86_64-darwin: https://github.com/NixOS/nixpkgs/pull/228714#issuecomment-1576826330 # - when building on Darwin (cross-compilation): test-nl_langinfo-mt fails postPatch = lib.optionalString (stdenv.hostPlatform.isMusl || stdenv.buildPlatform.isDarwin) '' substituteInPlace Makefile.in --replace-fail "gnulib-tests" "" @@ -59,12 +58,10 @@ stdenv.mkDerivation (finalAttrs: { # cygwin: FAIL: multibyte-white-space # freebsd: FAIL mb-non-UTF8-performance - # x86_64-darwin: fails 'stack-overflow' tests on Rosetta 2 emulator # aarch32: fails 'stack-overflow' when run on qemu under x86_64 doCheck = !stdenv.hostPlatform.isCygwin && !stdenv.hostPlatform.isFreeBSD - && !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) && !stdenv.buildPlatform.isRiscV64 && !stdenv.hostPlatform.isAarch32; diff --git a/pkgs/by-name/gn/gnulib/package.nix b/pkgs/by-name/gn/gnulib/package.nix index 56effb7fb204..48a7df32030c 100644 --- a/pkgs/by-name/gn/gnulib/package.nix +++ b/pkgs/by-name/gn/gnulib/package.nix @@ -2,7 +2,6 @@ lib, stdenv, fetchgit, - python3, perl, }: @@ -17,20 +16,24 @@ stdenv.mkDerivation { }; postPatch = '' + patchShebangs gnulib-tool patchShebangs gnulib-tool.py - substituteInPlace build-aux/{prefix-gnulib-mk,useless-if-before-free,update-copyright,gitlog-to-changelog,announce-gen} \ - --replace-fail 'exec perl' 'exec ${lib.getExe perl}' - ''; - buildInputs = [ python3 ]; + substituteInPlace build-aux/{prefix-gnulib-mk,useless-if-before-free,update-copyright,gitlog-to-changelog,announce-gen} \ + --replace-fail 'exec perl' 'exec ${lib.getExe perl}' + ''; strictDeps = true; installPhase = '' + runHook preInstall + mkdir -p $out/bin cp -r * $out/ ln -s $out/lib $out/include ln -s $out/gnulib-tool $out/bin/ + + runHook postInstall ''; # do not change headers to not update all vendored build files diff --git a/pkgs/by-name/gn/gnupatch/package.nix b/pkgs/by-name/gn/gnupatch/package.nix index 361365accfb3..b52a9cedee7e 100644 --- a/pkgs/by-name/gn/gnupatch/package.nix +++ b/pkgs/by-name/gn/gnupatch/package.nix @@ -6,13 +6,18 @@ autoreconfHook, }: +# Note: this package is used for bootstrapping fetchurl, and thus cannot use +# fetchpatch! Any mutable patches (retrieved from GitHub, cgit or any other +# place) that are needed here should be directly included together as regular +# files. + stdenv.mkDerivation (finalAttrs: { pname = "patch"; - version = "2.8"; + version = "2.8.1"; src = fetchurl { url = "mirror://gnu/patch/patch-${finalAttrs.version}.tar.xz"; - hash = "sha256-+Hzuae7CtPy/YKOWsDCtaqNBXxkqpffuhMrV4R9/WuM="; + hash = "sha256-MkDHlZxTR8jtNH48QgHAM3v0JA1c8J1oiJ5Y7qujDhc="; }; # This test is filesystem-dependent - observed failing on ZFS. diff --git a/pkgs/by-name/go/go-mockery/package.nix b/pkgs/by-name/go/go-mockery/package.nix index 5887a11f011f..b6d8265aa083 100644 --- a/pkgs/by-name/go/go-mockery/package.nix +++ b/pkgs/by-name/go/go-mockery/package.nix @@ -3,7 +3,6 @@ # version that mockery supports rather than buildGoLatestModule. # This should be bumped when a mockery release includes support for a new version of Go. lib, - stdenv, buildGo127Module, fetchFromGitHub, versionCheckHook, @@ -82,12 +81,6 @@ buildGo127Module (finalAttrs: { checkPhase = '' runHook preCheck - ${ - # TestRemoteTemplates/schema_validation_OK fails only on x86_64-darwin - (lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86 - ) "rm -rf e2e/test_remote_templates/") - } # run unit tests and e2e tests plus pre-gen necessary mocks task test.ci diff --git a/pkgs/by-name/gp/gperf/package.nix b/pkgs/by-name/gp/gperf/package.nix index debd4c1caf14..8b3318a0d0b6 100644 --- a/pkgs/by-name/gp/gperf/package.nix +++ b/pkgs/by-name/gp/gperf/package.nix @@ -13,8 +13,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-/Yfgq6fkOuBUg3r9bNTbA6PyaT3rNhkIXm7Z2NlgStg="; }; + strictDeps = true; + enableParallelBuilding = true; + __structuredAttrs = true; + meta = { description = "Perfect hash function generator"; diff --git a/pkgs/by-name/gp/gpu-viewer/package.nix b/pkgs/by-name/gp/gpu-viewer/package.nix index eb632499f8b7..cb9ee14c3708 100644 --- a/pkgs/by-name/gp/gpu-viewer/package.nix +++ b/pkgs/by-name/gp/gpu-viewer/package.nix @@ -31,7 +31,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "gpu-viewer"; version = "4.05"; pyproject = false; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arunsivaramanneo"; diff --git a/pkgs/by-name/gr/gradia/package.nix b/pkgs/by-name/gr/gradia/package.nix index b4766d61f9e7..4b41f8ab1021 100644 --- a/pkgs/by-name/gr/gradia/package.nix +++ b/pkgs/by-name/gr/gradia/package.nix @@ -27,8 +27,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.13.0"; pyproject = false; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "AlexanderVanhee"; repo = "Gradia"; diff --git a/pkgs/by-name/gr/gradlew-fdroid/package.nix b/pkgs/by-name/gr/gradlew-fdroid/package.nix index 7318cdb15619..848431cf2fc9 100644 --- a/pkgs/by-name/gr/gradlew-fdroid/package.nix +++ b/pkgs/by-name/gr/gradlew-fdroid/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "gradlew-fdroid"; version = "0-unstable-2026-06-06"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitLab { owner = "fdroid"; diff --git a/pkgs/by-name/gr/graphify/package.nix b/pkgs/by-name/gr/graphify/package.nix index ec15a0a1b26d..b8332a95533b 100644 --- a/pkgs/by-name/gr/graphify/package.nix +++ b/pkgs/by-name/gr/graphify/package.nix @@ -5,8 +5,7 @@ python3, }: -python3Packages.buildPythonApplication rec { - __structuredAttrs = true; +python3Packages.buildPythonApplication (finalAttrs: { pname = "graphify"; version = "0.9.91"; pyproject = true; @@ -14,7 +13,7 @@ python3Packages.buildPythonApplication rec { src = fetchFromGitHub { owner = "Graphify-Labs"; repo = "graphify"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-rVR7VNV95vrftrym4gBG6Tib4Dae4fIYnTO0X0dkZIk="; }; @@ -130,7 +129,7 @@ python3Packages.buildPythonApplication rec { meta = { description = "AI coding assistant skill. Turn any folder of code, docs, papers, images, or videos into a queryable knowledge graph."; homepage = "https://github.com/Graphify-Labs/graphify"; - changelog = "https://github.com/Graphify-Labs/graphify/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/Graphify-Labs/graphify/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = with lib.licenses; [ asl20 mit @@ -138,4 +137,4 @@ python3Packages.buildPythonApplication rec { maintainers = with lib.maintainers; [ stunkymonkey ]; mainProgram = "graphify"; }; -} +}) diff --git a/pkgs/by-name/gr/graphlan/package.nix b/pkgs/by-name/gr/graphlan/package.nix index e49f5eb6f7f6..fc4d1c2dacfc 100644 --- a/pkgs/by-name/gr/graphlan/package.nix +++ b/pkgs/by-name/gr/graphlan/package.nix @@ -21,7 +21,6 @@ python3Packages.buildPythonApplication { sed -i 's|biopython==|biopython>=|' setup.py ''; - __structuredAttrs = true; build-system = with python3Packages; [ setuptools ]; dependencies = with python3Packages; [ biopython diff --git a/pkgs/by-name/gr/greptimedb/package.nix b/pkgs/by-name/gr/greptimedb/package.nix index d5a8e95532b6..b023d0a5cf31 100644 --- a/pkgs/by-name/gr/greptimedb/package.nix +++ b/pkgs/by-name/gr/greptimedb/package.nix @@ -2,10 +2,14 @@ lib, rustPlatform, fetchFromGitHub, - cmake, + aws-lc, pkg-config, protobuf, zlib, + zstd, + libgit2, + oniguruma, + rust-jemalloc-sys-unprefixed, nix-update-script, versionCheckHook, }: @@ -42,16 +46,19 @@ rustPlatform.buildRustPackage (finalAttrs: { ''; nativeBuildInputs = [ - cmake pkg-config protobuf rustPlatform.bindgenHook ]; - buildInputs = [ zlib ]; - - # cmake is here only to build the vendored C sources of aws-lc-sys - dontUseCmakeConfigure = true; + buildInputs = [ + zlib + aws-lc + zstd + libgit2 + oniguruma + rust-jemalloc-sys-unprefixed + ]; env = { # Installed binaries are stripped during fixup, so delete. diff --git a/pkgs/by-name/gr/groestlcoin/package.nix b/pkgs/by-name/gr/groestlcoin/package.nix index c5d4818514a8..fcc2a35288f1 100644 --- a/pkgs/by-name/gr/groestlcoin/package.nix +++ b/pkgs/by-name/gr/groestlcoin/package.nix @@ -45,7 +45,7 @@ stdenv.mkDerivation (finalAttrs: { pkg-config installShellFiles ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ] ++ lib.optionals withGui [ qt5.wrapQtAppsHook ]; diff --git a/pkgs/by-name/gr/grpc/package.nix b/pkgs/by-name/gr/grpc/package.nix index b6768dcf1854..f9c5b5b53d63 100644 --- a/pkgs/by-name/gr/grpc/package.nix +++ b/pkgs/by-name/gr/grpc/package.nix @@ -25,7 +25,7 @@ # nixpkgs-update: no auto update stdenv.mkDerivation (finalAttrs: { pname = "grpc"; - version = "1.84.0"; # N.B: if you change this, please update: + version = "1.84.1"; # N.B: if you change this, please update: # pythonPackages.grpcio # pythonPackages.grpcio-channelz # pythonPackages.grpcio-health-checking @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "grpc"; repo = "grpc"; tag = "v${finalAttrs.version}"; - hash = "sha256-cuNa/Juh8/whghdtbSaEDMqGRASt6vbzeEtHp34STrc="; + hash = "sha256-+QV48Mf4TZPwqBbvAhNYwDMiYBaMtu+3cUh690EUknI="; fetchSubmodules = true; }; @@ -51,6 +51,11 @@ stdenv.mkDerivation (finalAttrs: { }) ]; + outputs = [ + "out" + "dev" + ]; + nativeBuildInputs = [ cmake pkg-config @@ -68,6 +73,8 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libnsl ]; + strictDeps = true; + cmakeFlags = [ "-DgRPC_ZLIB_PROVIDER=package" "-DgRPC_CARES_PROVIDER=package" @@ -109,6 +116,13 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail '-msse2' "" ''; + postInstall = '' + substituteInPlace \ + $out/lib/cmake/grpc/gRPCTargets-release.cmake \ + $out/lib/cmake/grpc/gRPCPluginTargets-release.cmake \ + --replace-fail "\''${_IMPORT_PREFIX}" "$out" + ''; + # When natively compiling, grpc_cpp_plugin is executed from the build directory, # needing to load dynamic libraries from the build directory, so we set # LD_LIBRARY_PATH to enable this. When cross compiling we need to avoid this, @@ -137,6 +151,8 @@ stdenv.mkDerivation (finalAttrs: { inherit arrow-cpp; }; + __structuredAttrs = true; + meta = { description = "C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)"; license = lib.licenses.asl20; diff --git a/pkgs/by-name/gs/gsettings-desktop-schemas/package.nix b/pkgs/by-name/gs/gsettings-desktop-schemas/package.nix index bcff3cd981a2..5775054e8e3b 100644 --- a/pkgs/by-name/gs/gsettings-desktop-schemas/package.nix +++ b/pkgs/by-name/gs/gsettings-desktop-schemas/package.nix @@ -17,11 +17,11 @@ stdenv.mkDerivation rec { pname = "gsettings-desktop-schemas"; - version = "50.1"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gsettings-desktop-schemas/${lib.versions.major version}/gsettings-desktop-schemas-${version}.tar.xz"; - hash = "sha256-CiqiUIJnJYXRb82rYcew4z8DX7h0dlBceU8pVlr6SFs="; + hash = "sha256-HiQZpfIdJsMksorhwA4p6Rdei1lv/zhaBMIXKzZlIiY="; }; strictDeps = true; diff --git a/pkgs/by-name/gs/gst-thumbnailers/package.nix b/pkgs/by-name/gs/gst-thumbnailers/package.nix index 939c0567e5e3..cc3015ca39f3 100644 --- a/pkgs/by-name/gs/gst-thumbnailers/package.nix +++ b/pkgs/by-name/gs/gst-thumbnailers/package.nix @@ -21,19 +21,19 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-thumbnailers"; - version = "1.0.0"; + version = "1.1.0"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "GNOME"; repo = "gst-thumbnailers"; tag = finalAttrs.version; - hash = "sha256-QxOdjtPnX4ulGsenASQzKJckbIqfSU7FeR+iW1ZL878="; + hash = "sha256-LWQ8a4sMz3XalPuToSlOOWczqQsEwVs+UUEid+nTWO4="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-irXwoGGcVeZza02Ob5HTkeTBD3PaXmfJ4vuqXk9BadA="; + hash = "sha256-+smvLJ+Zz1uM39f6inZitJaz2CWKDwYOynJI00OPFSg="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gt/gtk-doc/package.nix b/pkgs/by-name/gt/gtk-doc/package.nix index 97117f61992b..542ea8b19a3b 100644 --- a/pkgs/by-name/gt/gtk-doc/package.nix +++ b/pkgs/by-name/gt/gtk-doc/package.nix @@ -85,8 +85,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { }; }; - __structuredAttrs = true; - meta = { changelog = "https://gitlab.gnome.org/GNOME/gtk-doc/-/blob/${finalAttrs.src.tag}/NEWS"; description = "Tools to extract documentation embedded in GTK and GNOME source code"; diff --git a/pkgs/by-name/gt/gtk4/package.nix b/pkgs/by-name/gt/gtk4/package.nix index e3ad4dbb9358..57032714ce70 100644 --- a/pkgs/by-name/gt/gtk4/package.nix +++ b/pkgs/by-name/gt/gtk4/package.nix @@ -4,7 +4,6 @@ buildPackages, replaceVars, fetchurl, - fetchpatch, pkg-config, docutils, gettext, @@ -76,7 +75,7 @@ in stdenv.mkDerivation (finalAttrs: { pname = "gtk4"; - version = "4.22.4"; + version = "4.24.0"; outputs = [ "out" @@ -92,22 +91,9 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gtk/${lib.versions.majorMinor finalAttrs.version}/gtk-${finalAttrs.version}.tar.xz"; - hash = "sha256-Ub2fYMfSOmZaVWxzZMIfsuTiglZrPn4JJFXo+RAzCJM="; + hash = "sha256-KLpKwcBPhurAm3mhY8sWOkwrVEQtn37MwEZ5BipYEEQ="; }; - patches = [ - (fetchpatch { - name = "fix-32bit-VkImage-null.patch"; - url = "https://gitlab.gnome.org/GNOME/gtk/-/commit/10d43de8f4f942cb591ada3103474bd7213425f1.patch"; - hash = "sha256-DJIL6M3XcsjBoMO77OxNi84d1DxAphAfot3N7Nq1QqQ="; - }) - (fetchpatch { - name = "gtkapplication-wayland-null-check.patch"; - url = "https://gitlab.gnome.org/GNOME/gtk/-/commit/221cd8e1904f2ca35d89dff3c1068616c6ce588c.patch"; - hash = "sha256-SLMmWDZ2mLXW3/GJfFdoszthNg4Hd15yvZO2XOld4Uw="; - }) - ]; - depsBuildBuild = [ pkg-config ]; @@ -210,9 +196,6 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonEnable "vulkan" vulkanSupport) (lib.mesonEnable "print-cups" cupsSupport) (lib.mesonBool "x11-backend" x11Support) - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isAarch64) [ - "-Dmedia-gstreamer=disabled" # requires gstreamer-gl ]; doCheck = false; # needs X11 @@ -261,11 +244,6 @@ stdenv.mkDerivation (finalAttrs: { moveToOutput bin/gtk4-update-icon-cache "$out" # Launcher moveToOutput bin/gtk-launch "$out" - - # TODO: patch glib directly - for f in $dev/bin/gtk4-encode-symbolic-svg; do - wrapProgram $f --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" - done '' + lib.optionalString broadwaySupport '' # Broadway daemon diff --git a/pkgs/by-name/gt/gtkmm3/package.nix b/pkgs/by-name/gt/gtkmm3/package.nix index 4d8d9cd78ae8..bf927ede983d 100644 --- a/pkgs/by-name/gt/gtkmm3/package.nix +++ b/pkgs/by-name/gt/gtkmm3/package.nix @@ -19,11 +19,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gtkmm"; - version = "3.24.10"; + version = "3.24.11"; src = fetchurl { url = "mirror://gnome/sources/gtkmm/${lib.versions.majorMinor finalAttrs.version}/gtkmm-${finalAttrs.version}.tar.xz"; - sha256 = "erfiJmgIcW4mw5kkrOH7RtqGwX7znZiWJMQjFLMrWnY="; + hash = "sha256-GeODyC1d2J2ydeALgoZOkEFNTD+z0QCy+Za8wjOKTMc="; }; outputs = [ diff --git a/pkgs/by-name/gt/gtkmm4/package.nix b/pkgs/by-name/gt/gtkmm4/package.nix index f68769073f25..fa1efa2a26c8 100644 --- a/pkgs/by-name/gt/gtkmm4/package.nix +++ b/pkgs/by-name/gt/gtkmm4/package.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gtkmm"; - version = "4.22.0"; + version = "4.24.0"; outputs = [ "out" @@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gtkmm/${lib.versions.majorMinor finalAttrs.version}/gtkmm-${finalAttrs.version}.tar.xz"; - hash = "sha256-LoohtLByX2IOM6ruDNND7RIbUzJ1tjKJZhmxyJ6W3mc="; + hash = "sha256-f9nOo1bn07dL99KlHX4OZ2Pz+fHN3F53yLC1t/qdXlo="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gt/gtranslator/package.nix b/pkgs/by-name/gt/gtranslator/package.nix index e27439a8d875..0b65d62a0f54 100644 --- a/pkgs/by-name/gt/gtranslator/package.nix +++ b/pkgs/by-name/gt/gtranslator/package.nix @@ -24,11 +24,11 @@ stdenv.mkDerivation rec { pname = "gtranslator"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/gtranslator/${lib.versions.major version}/gtranslator-${version}.tar.xz"; - hash = "sha256-hXtRx49U30JBj/b6nmK4VU338CHLEjOMH8DYW5nJGO8="; + hash = "sha256-LcKDtONmJAZL3IXmV+tN4esB/rpiobDrOyIh/GwCx1o="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/gu/gurk-rs/package.nix b/pkgs/by-name/gu/gurk-rs/package.nix index ca85b78132cc..8e5acb96812b 100644 --- a/pkgs/by-name/gu/gurk-rs/package.nix +++ b/pkgs/by-name/gu/gurk-rs/package.nix @@ -1,5 +1,4 @@ { - stdenvNoCC, lib, protobuf, rustPlatform, @@ -39,9 +38,6 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ openssl ]; env = { - NIX_LDFLAGS = lib.optionalString ( - with stdenvNoCC.hostPlatform; (isDarwin && isx86_64) - ) "-framework AppKit"; OPENSSL_NO_VENDOR = true; PROTOC = "${lib.getExe pkgsBuildHost.protobuf}"; }; diff --git a/pkgs/by-name/gv/gvfs/package.nix b/pkgs/by-name/gv/gvfs/package.nix index a325a1b12c83..1d9be5eb5e2c 100644 --- a/pkgs/by-name/gv/gvfs/package.nix +++ b/pkgs/by-name/gv/gvfs/package.nix @@ -16,7 +16,6 @@ polkit, libgphoto2, avahi, - libarchive, fuse3, libcdio, libxml2, @@ -45,11 +44,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gvfs"; - version = "1.60.3"; + version = "1.62.0"; src = fetchurl { url = "mirror://gnome/sources/gvfs/${lib.versions.majorMinor finalAttrs.version}/gvfs-${finalAttrs.version}.tar.xz"; - hash = "sha256-TLIdURwuKVEamfOhk96qkUqLt9njciKGc8awha/2P0s="; + hash = "sha256-3Y5sJV/TvtXusZC1kCfIizjmPBvgky3c6c/rSPPEPQ8="; }; patches = [ @@ -79,7 +78,6 @@ stdenv.mkDerivation (finalAttrs: { dbus libgphoto2 avahi - libarchive libimobiledevice libbluray libnfs diff --git a/pkgs/by-name/gw/gwyddion/package.nix b/pkgs/by-name/gw/gwyddion/package.nix index 5664c4d6c203..08b0dbd696f6 100644 --- a/pkgs/by-name/gw/gwyddion/package.nix +++ b/pkgs/by-name/gw/gwyddion/package.nix @@ -83,6 +83,6 @@ stdenv.mkDerivation (finalAttrs: { platforms = with lib.platforms; linux ++ darwin; maintainers = [ ]; # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; }) diff --git a/pkgs/by-name/gz/gz-math/package.nix b/pkgs/by-name/gz/gz-math/package.nix index 58eadd924ce8..e40567f58b9e 100644 --- a/pkgs/by-name/gz/gz-math/package.nix +++ b/pkgs/by-name/gz/gz-math/package.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: { python3Packages.python ]; - disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ # Non-deterministic random tests fail on aarch64-darwin "GaussMarkovProcess_TEST.rb" "Rand_TEST.rb" diff --git a/pkgs/by-name/ha/handy/add-plugin-path-for-swift-macros.patch b/pkgs/by-name/ha/handy/add-plugin-path-for-swift-macros.patch new file mode 100644 index 000000000000..50f576560a7e --- /dev/null +++ b/pkgs/by-name/ha/handy/add-plugin-path-for-swift-macros.patch @@ -0,0 +1,14 @@ +diff --git a/src-tauri/build.rs b/src-tauri/build.rs +index 9f8ada79ec..1f020aa6a0 100644 +--- a/src-tauri/build.rs ++++ b/src-tauri/build.rs +@@ -483,6 +483,9 @@ fn build_apple_intelligence_bridge() { + // `-parse-as-library` keeps the compilation in library mode so + // no `_main` is emitted. See: + // https://forums.swift.org/t/main-in-a-single-swift-file/63079 ++ "-external-plugin-path", ++ "@open-apple-macros@/lib/swift/host/plugins#@open-apple-macros@/libexec/swift/plugins/OpenAppleMacrosServer", ++ "-disable-sandbox", // Because Nixpkgs builds already happen in a sandbox. + "-parse-as-library", + "-target", + "arm64-apple-macosx11.0", diff --git a/pkgs/by-name/ha/handy/package.nix b/pkgs/by-name/ha/handy/package.nix index 138b0f9c61d6..122f4140ed19 100644 --- a/pkgs/by-name/ha/handy/package.nix +++ b/pkgs/by-name/ha/handy/package.nix @@ -10,10 +10,13 @@ cctools, cargo-tauri, jq, + sqlite, writableTmpDirAsHomeHook, makeBinaryWrapper, swift, apple-sdk_26, + open-apple-macros, + replaceVars, symlinkJoin, nix-update-script, @@ -72,6 +75,14 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeInstallInputs = [ jq ]; + patches = + # Use apple-open-macros to enable using Apple Intelligence on Darwin. + lib.optionals stdenv.hostPlatform.isDarwin [ + (replaceVars ./add-plugin-path-for-swift-macros.patch { + inherit open-apple-macros; + }) + ]; + postPatch = '' patch_json() { local file=$1 filter=$2 @@ -92,10 +103,6 @@ rustPlatform.buildRustPackage (finalAttrs: { # Strip cbindgen build steps find "$cargoDepsCopy" -path "*/ferrous-opencc-*/build.rs" \ -exec sed -i -e '/cbindgen::Builder::new/{:l;/write_to_file/!{N;bl};d}' {} + - - # FoundationModels requires macros that are only shipped with Xcode. The 26.x SDK in Nixpkgs does not have them. - substituteInPlace src-tauri/build.rs \ - --replace-fail 'has_foundation_models = framework_path.exists()' ' has_foundation_models = false' '' + lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace "$cargoDepsCopy"/*/libappindicator-sys-*/src/lib.rs \ @@ -125,6 +132,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + sqlite onnxruntime openssl ] diff --git a/pkgs/by-name/ha/haproxy/package.nix b/pkgs/by-name/ha/haproxy/package.nix index e45638672ce1..bdbbb257585d 100644 --- a/pkgs/by-name/ha/haproxy/package.nix +++ b/pkgs/by-name/ha/haproxy/package.nix @@ -25,10 +25,15 @@ assert lib.assertOneOf "sslLibrary" sslLibrary [ let sslPkgs = { inherit - aws-lc libressl openssl ; + aws-lc = aws-lc.override { + # HAProxy wants to link against -lssl and -lcrypto + withOpenSSLShim = true; + # HAProxy gets confused with symbol prefixing enabled + symbolPrefix = null; + }; }; sslPkg = sslPkgs.${sslLibrary}; in diff --git a/pkgs/by-name/ha/harlequin/package.nix b/pkgs/by-name/ha/harlequin/package.nix index 9351f6291540..e29c82d24c8c 100644 --- a/pkgs/by-name/ha/harlequin/package.nix +++ b/pkgs/by-name/ha/harlequin/package.nix @@ -15,7 +15,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "harlequin"; version = "2.17.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tconbeer"; diff --git a/pkgs/by-name/ha/harmonia/package.nix b/pkgs/by-name/ha/harmonia/package.nix index 3a47b0f8c98c..491fb2e9ed11 100644 --- a/pkgs/by-name/ha/harmonia/package.nix +++ b/pkgs/by-name/ha/harmonia/package.nix @@ -2,6 +2,8 @@ lib, fetchFromGitHub, openssl, + zstd, + sqlite, pkg-config, rustPlatform, nix-update-script, @@ -28,6 +30,8 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl + zstd + sqlite ]; passthru = { diff --git a/pkgs/by-name/ha/harper/package.nix b/pkgs/by-name/ha/harper/package.nix index 4856b3ad3d8b..7e087746f4f3 100644 --- a/pkgs/by-name/ha/harper/package.nix +++ b/pkgs/by-name/ha/harper/package.nix @@ -4,6 +4,8 @@ fetchFromGitHub, installShellFiles, stdenv, + pkg-config, + zstd, nix-update-script, versionCheckHook, vscode-extensions, @@ -33,7 +35,11 @@ rustPlatform.buildRustPackage (finalAttrs: { "--package=harper-ls" ]; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + pkg-config + ]; + buildInputs = [ zstd ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd harper-cli \ diff --git a/pkgs/by-name/hc/hci/package.nix b/pkgs/by-name/hc/hci/package.nix index 2429e32d1d76..b8fdfb2c3032 100644 --- a/pkgs/by-name/hc/hci/package.nix +++ b/pkgs/by-name/hc/hci/package.nix @@ -45,13 +45,9 @@ let addBuildTools [ makeWrapper ] # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 ( - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables + (if stdenv.hostPlatform.isDarwin then lib.id else haskell.lib.compose.justStaticExecutables) ( + haskellPackages.hercules-ci-cli.override overrides ) - (haskellPackages.hercules-ci-cli.override overrides) ) ); in diff --git a/pkgs/by-name/he/helion/package.nix b/pkgs/by-name/he/helion/package.nix index f873c818f001..8e9f29edd2c5 100644 --- a/pkgs/by-name/he/helion/package.nix +++ b/pkgs/by-name/he/helion/package.nix @@ -25,7 +25,7 @@ libxrender, libxxf86vm, pipewire, - swift, + swiftPackages, udev, wayland, zlib, @@ -90,7 +90,7 @@ buildDotnetModule (finalAttrs: { ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ] # Required by the NativeAOT runtime on darwin ++ lib.optionals stdenv.hostPlatform.isDarwin [ - swift + swiftPackages.stdlib darwin.ICU ]; diff --git a/pkgs/by-name/he/hercules-ci-agent/package.nix b/pkgs/by-name/he/hercules-ci-agent/package.nix index 00a0fc7cfad3..103b86a53f9a 100644 --- a/pkgs/by-name/he/hercules-ci-agent/package.nix +++ b/pkgs/by-name/he/hercules-ci-agent/package.nix @@ -28,7 +28,7 @@ let overrideCabal (o: { postInstall = '' ${o.postInstall or ""} - ${lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + ${lib.optionalString stdenv.hostPlatform.isDarwin '' remove-references-to -t ${haskellPackages.hercules-ci-cnix-expr} $out/bin/hercules-ci-agent remove-references-to -t ${haskellPackages.hercules-ci-cnix-expr} $out/bin/hercules-ci-agent-worker ''} diff --git a/pkgs/by-name/he/hexora/package.nix b/pkgs/by-name/he/hexora/package.nix index 425e9ee7edae..b4f11ee7f776 100644 --- a/pkgs/by-name/he/hexora/package.nix +++ b/pkgs/by-name/he/hexora/package.nix @@ -14,7 +14,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "hexora"; version = "0.3.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "rushter"; diff --git a/pkgs/by-name/ho/hol_light/package.nix b/pkgs/by-name/ho/hol_light/package.nix index 00297dfc320e..47061b8237e8 100644 --- a/pkgs/by-name/ho/hol_light/package.nix +++ b/pkgs/by-name/ho/hol_light/package.nix @@ -22,14 +22,14 @@ let in let - ocamlPath = lib.makeSearchPath "/lib/ocaml/${ocaml.version}/site-lib" [ + ocamlPath = lib.makeSearchPathOutput "dev" "/lib/ocaml/${ocaml.version}/site-lib" [ camlp5 camlp-streams fmt pcre2 zarith ]; - stublibsPath = lib.makeSearchPath "/lib/ocaml/${ocaml.version}/site-lib/stublibs" [ + stublibsPath = lib.makeSearchPathOutput "dev" "/lib/ocaml/${ocaml.version}/site-lib/stublibs" [ zarith pcre2 ]; diff --git a/pkgs/by-name/hu/hunspell/0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch b/pkgs/by-name/hu/hunspell/0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch deleted file mode 100644 index 4607f8b8ee09..000000000000 --- a/pkgs/by-name/hu/hunspell/0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 8c67f314de2684d77315eecd99ef091d441f17dd Mon Sep 17 00:00:00 2001 -From: Matthew Bauer -Date: Wed, 24 Jul 2019 15:35:18 -0400 -Subject: [PATCH] Make hunspell look in XDG_DATA_DIRS for dictionaries - -Some dictionaries may exist but only show up under XDG_DATA_DIRS. For -instance, $HOME/.local/share/hunspell could contain some dictionaries. - -This patch adds each directory in the hunspell subdir of each -XDG_DATA_DIRS to the lookup path. - -Upstream pr is available at: https://github.com/hunspell/hunspell/pull/637 ---- - src/tools/hunspell.cxx | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/src/tools/hunspell.cxx b/src/tools/hunspell.cxx -index 690e34a..6cd127e 100644 ---- a/src/tools/hunspell.cxx -+++ b/src/tools/hunspell.cxx -@@ -2044,6 +2044,13 @@ int main(int argc, char** argv) { - if (getenv("DICPATH")) { - path_std_str.append(getenv("DICPATH")).append(PATHSEP); - } -+ if (getenv("XDG_DATA_DIRS")) { -+ char* dir = strtok(getenv("XDG_DATA_DIRS"), ":"); -+ while (dir != NULL) { -+ path_std_str.append(dir).append("/hunspell:"); -+ dir = strtok(NULL, ":"); -+ } -+ } - path_std_str.append(LIBDIR).append(PATHSEP); - if (HOME) { - const char * userooodir[] = USEROOODIR; --- -2.22.0 - diff --git a/pkgs/by-name/hu/hunspell/package.nix b/pkgs/by-name/hu/hunspell/package.nix index 96679d18afa5..5addf391fe39 100644 --- a/pkgs/by-name/hu/hunspell/package.nix +++ b/pkgs/by-name/hu/hunspell/package.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "hunspell"; - version = "1.7.3"; + version = "1.7.5"; outputs = [ "bin" @@ -26,11 +26,9 @@ stdenv.mkDerivation (finalAttrs: { owner = "hunspell"; repo = "hunspell"; rev = "v${finalAttrs.version}"; - hash = "sha256-NoLlH+4Hb6w+HYl2fSBzroav1Pb3GojFSTJGBxlteBM="; + hash = "sha256-K7r7t1ZIy1/LD1c24hpPEG8/+M9lmuwo2yVJ08I3YPE="; }; - patches = [ ./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch ]; - postPatch = '' patchShebangs tests ''; diff --git a/pkgs/by-name/hy/hyprmod/package.nix b/pkgs/by-name/hy/hyprmod/package.nix index 8c5d67350faf..5ca4fa149e5f 100644 --- a/pkgs/by-name/hy/hyprmod/package.nix +++ b/pkgs/by-name/hy/hyprmod/package.nix @@ -16,8 +16,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "BlueManCZ"; repo = "hyprmod"; diff --git a/pkgs/by-name/i3/i3altlayout/package.nix b/pkgs/by-name/i3/i3altlayout/package.nix index ef080a0da547..752b3a6bd9f1 100644 --- a/pkgs/by-name/i3/i3altlayout/package.nix +++ b/pkgs/by-name/i3/i3altlayout/package.nix @@ -9,8 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-DhOYeSCxKthr2fEMGMBXjUYeCJjj6AV4d05So4eDF8A="; diff --git a/pkgs/by-name/ig/igraph/package.nix b/pkgs/by-name/ig/igraph/package.nix index 9c9dfffaaa7d..1ea0a0886ad7 100644 --- a/pkgs/by-name/ig/igraph/package.nix +++ b/pkgs/by-name/ig/igraph/package.nix @@ -18,7 +18,7 @@ pkg-config, plfit, python3, - sourceHighlight, + source-highlight, xmlto, }: @@ -55,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: { docbook_xsl pkg-config python3 - sourceHighlight + source-highlight xmlto ]; diff --git a/pkgs/by-name/ig/igraph_0/package.nix b/pkgs/by-name/ig/igraph_0/package.nix index 8a54b75e24b0..f6fef1fa3baa 100644 --- a/pkgs/by-name/ig/igraph_0/package.nix +++ b/pkgs/by-name/ig/igraph_0/package.nix @@ -18,7 +18,7 @@ pkg-config, plfit, python3, - sourceHighlight, + source-highlight, xmlto, }: @@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: { libxslt pkg-config python3 - sourceHighlight + source-highlight xmlto ]; diff --git a/pkgs/by-name/il/ilspycmd/package.nix b/pkgs/by-name/il/ilspycmd/package.nix index 58ed7373d0fd..1bbf1742bad8 100644 --- a/pkgs/by-name/il/ilspycmd/package.nix +++ b/pkgs/by-name/il/ilspycmd/package.nix @@ -22,7 +22,7 @@ buildDotnetModule (finalAttrs: { nativeBuildInputs = [ powershell ] - ++ lib.optionals (stdenvNoCC.hostPlatform.isDarwin && stdenvNoCC.hostPlatform.isAarch64) [ + ++ lib.optionals stdenvNoCC.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/im/imagemagick/package.nix b/pkgs/by-name/im/imagemagick/package.nix index ae5f93029c3e..7900a4546f4e 100644 --- a/pkgs/by-name/im/imagemagick/package.nix +++ b/pkgs/by-name/im/imagemagick/package.nix @@ -69,13 +69,13 @@ assert libraqmSupport -> freetypeSupport; stdenv.mkDerivation (finalAttrs: { pname = "imagemagick"; - version = "7.1.2-34"; + version = "7.1.2-35"; src = fetchFromGitHub { owner = "ImageMagick"; repo = "ImageMagick"; tag = finalAttrs.version; - hash = "sha256-H2tXlEsW2JbvJJpUxEkwbV3zRXjwtPBxpbvs2xdKNZY="; + hash = "sha256-L+yqK3APjISn6n61hliMlb0bEWZMNU5YcxOsJRDXVJw="; }; outputs = [ diff --git a/pkgs/by-name/im/imapdedup/package.nix b/pkgs/by-name/im/imapdedup/package.nix index 5b0fc3e35304..34a3a01f5e96 100644 --- a/pkgs/by-name/im/imapdedup/package.nix +++ b/pkgs/by-name/im/imapdedup/package.nix @@ -8,8 +8,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "quentinsf"; repo = "IMAPdedup"; diff --git a/pkgs/by-name/im/immich-machine-learning/immich-model.nix b/pkgs/by-name/im/immich-machine-learning/immich-model.nix index cb70ca60a579..571c5f9e0b15 100644 --- a/pkgs/by-name/im/immich-machine-learning/immich-model.nix +++ b/pkgs/by-name/im/immich-machine-learning/immich-model.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "immich-model"; version = "0-unstable-2026-10-06"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "immich-app"; diff --git a/pkgs/by-name/im/immich-machine-learning/package.nix b/pkgs/by-name/im/immich-machine-learning/package.nix index 59017d460784..9b1e29fff117 100644 --- a/pkgs/by-name/im/immich-machine-learning/package.nix +++ b/pkgs/by-name/im/immich-machine-learning/package.nix @@ -18,8 +18,6 @@ python.pkgs.buildPythonApplication (finalAttrs: { src = "${immich.src}/machine-learning"; pyproject = true; - __structuredAttrs = true; - postPatch = '' substituteInPlace immich_ml/sessions/ort.py \ --replace-fail 'Path(ort.__file__).parent / "capi" / "libopenvino_c.so"' '"${lib.getLib openvino}/lib/libopenvino_c.so"' \ @@ -29,6 +27,7 @@ python.pkgs.buildPythonApplication (finalAttrs: { pythonRelaxDeps = [ "huggingface-hub" "onnx" + "pillow" ]; build-system = with python.pkgs; [ diff --git a/pkgs/by-name/in/inform7/package.nix b/pkgs/by-name/in/inform7/package.nix index bd536931b852..72c8520aea40 100644 --- a/pkgs/by-name/in/inform7/package.nix +++ b/pkgs/by-name/in/inform7/package.nix @@ -44,7 +44,6 @@ stdenv.mkDerivation { platforms = lib.platforms.unix; # never built on aarch64-darwin since first introduction in nixpkgs broken = - (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) - || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); + stdenv.hostPlatform.isDarwin || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); }; } diff --git a/pkgs/by-name/in/inngest/package.nix b/pkgs/by-name/in/inngest/package.nix index 089d1669572a..25ff6ed5bee1 100644 --- a/pkgs/by-name/in/inngest/package.nix +++ b/pkgs/by-name/in/inngest/package.nix @@ -104,6 +104,6 @@ buildGoModule (finalAttrs: { kikos0 ]; mainProgram = "inngest"; - platforms = lib.lists.remove "x86_64-darwin" lib.platforms.all; + platforms = lib.platforms.all; }; }) diff --git a/pkgs/by-name/in/installShellFiles/setup-hook.sh b/pkgs/by-name/in/installShellFiles/setup-hook.sh index 7835e320b6cb..48b791c58e19 100644 --- a/pkgs/by-name/in/installShellFiles/setup-hook.sh +++ b/pkgs/by-name/in/installShellFiles/setup-hook.sh @@ -100,14 +100,14 @@ installManPage() { done } -# installShellCompletion [--cmd ] ([--bash|--fish|--zsh] [--name ] )... +# installShellCompletion [--cmd ] ([--bash|--fish|--nushell|--powershell|--zsh] [--name ] )... # # Each path is installed into the appropriate directory for shell completions for the given shell. -# If one of `--bash`, `--fish`, `--zsh`, or `--nushell` is given the path is assumed to belong to -# that shell. Otherwise the file extension will be examined to pick a shell. If the shell is -# unknown a warning will be logged and the command will return a non-zero status code after -# processing any remaining paths. Any of the shell flags will affect all subsequent paths (unless -# another shell flag is given). +# If one of `--bash`, `--fish`, `--nushell`, `--powershell`, or `--zsh` is given, the path is +# assumed to belong to that shell. Otherwise the file extension will be examined to pick a shell. If +# the shell is unknown, a warning will be logged and the command will return a non-zero status code +# after processing any remaining paths. Any of the shell flags will affect all subsequent paths +# (unless another shell flag is given). # # If the shell completion needs to be renamed before installing the optional `--name ` flag # may be given. Any name provided with this flag only applies to the next path. @@ -137,6 +137,7 @@ installManPage() { # installShellCompletion --bash --name foobar.bash share/completions.bash # installShellCompletion --fish --name foobar.fish share/completions.fish # installShellCompletion --nushell --name foobar share/completions.nu +# installShellCompletion --powershell --name foobar.Completion.ps1 share/completions.ps1 # installShellCompletion --zsh --name _foobar share/completions.zsh # # Or to use shell newline escaping to split a single invocation across multiple lines: @@ -144,7 +145,8 @@ installManPage() { # installShellCompletion --cmd foobar \ # --bash <($out/bin/foobar --bash-completion) \ # --fish <($out/bin/foobar --fish-completion) \ -# --nushell <($out/bin/foobar --nushell-completion) +# --nushell <($out/bin/foobar --nushell-completion) \ +# --powershell <($out/bin/foobar --powershell-completion) \ # --zsh <($out/bin/foobar --zsh-completion) # # If any argument is `--` the remaining arguments will be treated as paths. @@ -154,7 +156,7 @@ installShellCompletion() { # Parse arguments if (( parseArgs )); then case "$arg" in - --bash|--fish|--zsh|--nushell) + --bash|--fish|--powershell|--zsh|--nushell) shell=${arg#--} continue;; --name) @@ -200,7 +202,7 @@ installShellCompletion() { elif [[ -p "$arg" ]]; then # this is a named fd or fifo if [[ -z "$curShell" ]]; then - nixErrorLog "${FUNCNAME[0]}: named pipe requires one of --bash, --fish, --zsh, or --nushell" + nixErrorLog "${FUNCNAME[0]}: named pipe requires one of --bash, --fish, --powershell, --zsh, or --nushell" return 1 elif [[ -z "$name" && -z "$cmdname" ]]; then nixErrorLog "${FUNCNAME[0]}: named pipe requires one of --cmd or --name" @@ -216,6 +218,7 @@ installShellCompletion() { ?*.bash) curShell=bash;; ?*.fish) curShell=fish;; ?*.nu) curShell=nushell;; + ?*.ps1) curShell=powershell;; ?*.zsh) curShell=zsh;; *) if [[ "$argbase" = _* && "$argbase" != *.* ]]; then @@ -238,6 +241,7 @@ installShellCompletion() { case "$curShell" in bash|fish) outName=$cmdname.$curShell;; nushell) outName=$cmdname.nu;; + powershell) outName=$cmdname.Completion.ps1;; zsh) outName=_$cmdname;; *) # Our list of shells is out of sync with the flags we accept or extensions we detect. @@ -250,6 +254,13 @@ installShellCompletion() { bash) sharePath=bash-completion/completions;; fish) sharePath=fish/vendor_completions.d;; nushell) sharePath=nushell/vendor/autoload;; + powershell) + sharePath=powershell + # only apply automatic renaming if we didn't have a manual rename + if [[ -z "$name" && -z "$cmdname" ]]; then + # convert a name like `foo.ps1` into `foo.Completion.ps1` + outName=${outName%.ps1}.Completion.ps1 + fi;; zsh) sharePath=zsh/site-functions # only apply automatic renaming if we didn't have a manual rename diff --git a/pkgs/by-name/in/installShellFiles/tests/install-completion-cmd.nix b/pkgs/by-name/in/installShellFiles/tests/install-completion-cmd.nix index 78bf08277832..1900c137f6b7 100644 --- a/pkgs/by-name/in/installShellFiles/tests/install-completion-cmd.nix +++ b/pkgs/by-name/in/installShellFiles/tests/install-completion-cmd.nix @@ -15,16 +15,19 @@ runCommandLocal "install-shell-files--install-completion-cmd" echo baz > baz.fish echo qux > qux.fish echo buzz > buzz.nu + echo corge > corge.ps1 installShellCompletion \ --cmd foobar --bash foo.bash \ --zsh bar.zsh \ --fish baz.fish --name qux qux.fish \ - --nushell --cmd buzzbar buzz.nu + --nushell --cmd buzzbar buzz.nu \ + --powershell --cmd corgebar corge.ps1 cmp foo.bash $out/share/bash-completion/completions/foobar.bash cmp bar.zsh $out/share/zsh/site-functions/_foobar cmp baz.fish $out/share/fish/vendor_completions.d/foobar.fish cmp qux.fish $out/share/fish/vendor_completions.d/qux cmp buzz.nu $out/share/nushell/vendor/autoload/buzzbar.nu + cmp corge.ps1 $out/share/powershell/corgebar.Completion.ps1 '' diff --git a/pkgs/by-name/in/installShellFiles/tests/install-completion-fifo.nix b/pkgs/by-name/in/installShellFiles/tests/install-completion-fifo.nix index d9a4d98b9422..d16e3b579451 100644 --- a/pkgs/by-name/in/installShellFiles/tests/install-completion-fifo.nix +++ b/pkgs/by-name/in/installShellFiles/tests/install-completion-fifo.nix @@ -14,10 +14,12 @@ runCommandLocal "install-shell-files--install-completion-fifo" --bash --name foo.bash <(echo foo) \ --zsh --name _foo <(echo bar) \ --fish --name foo.fish <(echo baz) \ - --nushell --name foo.nu <(echo bucks) + --nushell --name foo.nu <(echo bucks) \ + --powershell --name foo.Completion.ps1 <(echo corge) [[ $(<$out/share/bash-completion/completions/foo.bash) == foo ]] || { echo "foo.bash comparison failed"; exit 1; } [[ $(<$out/share/zsh/site-functions/_foo) == bar ]] || { echo "_foo comparison failed"; exit 1; } [[ $(<$out/share/fish/vendor_completions.d/foo.fish) == baz ]] || { echo "foo.fish comparison failed"; exit 1; } [[ $(<$out/share/nushell/vendor/autoload/foo.nu) == bucks ]] || { echo "foo.nu comparison failed"; exit 1; } + [[ $(<$out/share/powershell/foo.Completion.ps1) == corge ]] || { echo "foo.Completion.ps1 comparison failed"; exit 1; } '' diff --git a/pkgs/by-name/in/installShellFiles/tests/install-completion.nix b/pkgs/by-name/in/installShellFiles/tests/install-completion.nix index 37fec86e8afa..e110f0e2d5ef 100644 --- a/pkgs/by-name/in/installShellFiles/tests/install-completion.nix +++ b/pkgs/by-name/in/installShellFiles/tests/install-completion.nix @@ -16,12 +16,14 @@ runCommandLocal "install-shell-files--install-completion" echo qux > qux.zsh echo quux > quux echo quokka > quokka + echo corge > corge.ps1 installShellCompletion \ --bash foo bar \ --zsh baz qux.zsh \ --fish quux \ - --nushell quokka + --nushell quokka \ + --powershell corge.ps1 cmp foo $out/share/bash-completion/completions/foo cmp bar $out/share/bash-completion/completions/bar @@ -29,4 +31,5 @@ runCommandLocal "install-shell-files--install-completion" cmp qux.zsh $out/share/zsh/site-functions/_qux cmp quux $out/share/fish/vendor_completions.d/quux cmp quokka $out/share/nushell/vendor/autoload/quokka + cmp corge.ps1 $out/share/powershell/corge.Completion.ps1 '' diff --git a/pkgs/by-name/in/interactive-html-bom-inti-cmnb/package.nix b/pkgs/by-name/in/interactive-html-bom-inti-cmnb/package.nix index b67b76e188a0..51f00892dd31 100644 --- a/pkgs/by-name/in/interactive-html-bom-inti-cmnb/package.nix +++ b/pkgs/by-name/in/interactive-html-bom-inti-cmnb/package.nix @@ -51,8 +51,6 @@ python3Packages.buildPythonApplication (finalAttrs: { ln -s $out/bin/generate_interactive_bom $out/bin/generate_interactive_bom.py ''; - __structuredAttrs = true; - meta = { description = "Interactive HTML BOM generation for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer"; homepage = "https://github.com/INTI-CMNB/InteractiveHtmlBom"; diff --git a/pkgs/by-name/in/intltool/package.nix b/pkgs/by-name/in/intltool/package.nix index 111b08d4111f..67d3468c4274 100644 --- a/pkgs/by-name/in/intltool/package.nix +++ b/pkgs/by-name/in/intltool/package.nix @@ -5,6 +5,7 @@ fetchpatch, gettext, perlPackages, + bashNonInteractive, buildPackages, }: @@ -33,6 +34,9 @@ stdenv.mkDerivation (finalAttrs: { perl XMLParser ]; + + buildInputs = lib.optional (lib.meta.availableOn stdenv.hostPlatform bashNonInteractive) bashNonInteractive; + propagatedBuildInputs = [ gettext ] @@ -41,11 +45,16 @@ stdenv.mkDerivation (finalAttrs: { XMLParser ]); + strictDeps = true; + postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' for f in $out/bin/*; do substituteInPlace $f --replace "${buildPackages.perl}" "${perlPackages.perl}" done ''; + + __structuredAttrs = true; + meta = { description = "Translation helper tool"; homepage = "https://launchpad.net/intltool/"; diff --git a/pkgs/by-name/in/inventree-part-import/package.nix b/pkgs/by-name/in/inventree-part-import/package.nix index d673e1d2bb95..b91b5c7fe2f5 100644 --- a/pkgs/by-name/in/inventree-part-import/package.nix +++ b/pkgs/by-name/in/inventree-part-import/package.nix @@ -11,7 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "inventree-part-import"; version = "1.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "30350n"; diff --git a/pkgs/by-name/io/iocaine/package.nix b/pkgs/by-name/io/iocaine/package.nix index 1f9837580d72..506a33ce60a8 100644 --- a/pkgs/by-name/io/iocaine/package.nix +++ b/pkgs/by-name/io/iocaine/package.nix @@ -2,10 +2,10 @@ lib, fetchFromGitea, nftables, + zstd, nixosTests, pkg-config, rustPlatform, - ... }: rustPlatform.buildRustPackage (finalAttrs: { pname = "iocaine"; @@ -30,6 +30,7 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ nftables + zstd ]; passthru = { diff --git a/pkgs/by-name/io/iozone/package.nix b/pkgs/by-name/io/iozone/package.nix index 510489a16a99..8b554ac0ea71 100644 --- a/pkgs/by-name/io/iozone/package.nix +++ b/pkgs/by-name/io/iozone/package.nix @@ -11,8 +11,6 @@ let "linux" else if stdenv.hostPlatform.system == "x86_64-linux" then "linux-AMD64" - else if stdenv.hostPlatform.system == "x86_64-darwin" then - "macosx" else if stdenv.hostPlatform.system == "aarch64-linux" then "linux-arm" # iozone has no riscv64 so use linux diff --git a/pkgs/by-name/ip/iptables/package.nix b/pkgs/by-name/ip/iptables/package.nix index edac9389c652..bcd4fdb9668a 100644 --- a/pkgs/by-name/ip/iptables/package.nix +++ b/pkgs/by-name/ip/iptables/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, autoreconfHook, pkg-config, pruneLibtoolFiles, @@ -40,6 +41,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-GvzTPano+ROs5qISZ4gWLiB+JvXV4pxlc8Dlgf/Fi5k="; }; + # Fix build with linux-headers 7.3 + patches = lib.optionals stdenv.hostPlatform.isAarch64 [ + (fetchpatch { + url = "https://lore.kernel.org/netfilter-devel/20261024135509.4097035-1-yegorslists@googlemail.com/raw"; + hash = "sha256-SYL0oqQObaQz03jriWbSckmGL2LwCUV4our0W4TmCus="; + }) + ]; + outputs = [ "out" "lib" diff --git a/pkgs/by-name/ir/iredis/package.nix b/pkgs/by-name/ir/iredis/package.nix index bef043b7dcbd..698ae6d625c8 100644 --- a/pkgs/by-name/ir/iredis/package.nix +++ b/pkgs/by-name/ir/iredis/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "iredis"; version = "1.16.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "laixintao"; diff --git a/pkgs/by-name/ir/ironcalc/python.nix b/pkgs/by-name/ir/ironcalc/python.nix index 1b96d2cd7c64..f2dd25148b2f 100644 --- a/pkgs/by-name/ir/ironcalc/python.nix +++ b/pkgs/by-name/ir/ironcalc/python.nix @@ -19,8 +19,6 @@ buildPythonPackage { cd bindings/python ''; - __structuredAttrs = true; - cargoDeps = rustPlatform.fetchCargoVendor { inherit (ironcalc) src; hash = ironcalc.cargoHash; diff --git a/pkgs/by-name/is/isabelle/package.nix b/pkgs/by-name/is/isabelle/package.nix index 112dbfc00805..aa2b19b6fc2f 100644 --- a/pkgs/by-name/is/isabelle/package.nix +++ b/pkgs/by-name/is/isabelle/package.nix @@ -245,10 +245,6 @@ stdenv.mkDerivation (finalAttrs: { rm -r heaps '' - + lib.optionalString (stdenv.hostPlatform.system == "x86_64-darwin") '' - substituteInPlace lib/scripts/isabelle-platform \ - --replace-fail 'ISABELLE_APPLE_PLATFORM64=arm64-darwin' "" - '' + lib.optionalString stdenv.hostPlatform.isLinux '' arch=${ if stdenv.hostPlatform.system == "aarch64-linux" then "arm64-linux" else stdenv.hostPlatform.system diff --git a/pkgs/by-name/ja/jameica/package.nix b/pkgs/by-name/ja/jameica/package.nix index e8d99bf3996e..817f1f1fe850 100644 --- a/pkgs/by-name/ja/jameica/package.nix +++ b/pkgs/by-name/ja/jameica/package.nix @@ -22,8 +22,6 @@ let "linux64" else if stdenv.hostPlatform.system == "aarch64-linux" then "linux-arm64" - else if stdenv.hostPlatform.system == "x86_64-darwin" then - "macos64" else if stdenv.hostPlatform.system == "aarch64-darwin" then "macos-aarch64" else diff --git a/pkgs/by-name/ja/jansson/package.nix b/pkgs/by-name/ja/jansson/package.nix index 41ed3cfde9c7..78847091d09d 100644 --- a/pkgs/by-name/ja/jansson/package.nix +++ b/pkgs/by-name/ja/jansson/package.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "jansson"; - version = "2.15.0"; + version = "2.15.1"; outputs = [ "dev" @@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "akheron"; repo = "jansson"; tag = "v${finalAttrs.version}"; - hash = "sha256-s7g1QvJjl9LsWw+VZsTQHCoEgw2Ad9+8V0b2NFml5rw="; + hash = "sha256-iOOZyrNlCbibT7qozH7B2RjAgG9yv+B2ldAaz8U6IhQ="; }; nativeBuildInputs = [ @@ -34,13 +34,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ # networkmanager relies on libjansson.so: # https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453 - "-DJANSSON_BUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" - - # Fix the build with CMake 4. - # - # Remove on next release; upstream fix is coupled with additional - # changes in . - "-DCMAKE_POLICY_VERSION_MINIMUM=3.10" + (lib.cmakeBool "JANSSON_BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) ]; postFixup = '' diff --git a/pkgs/by-name/je/jemalloc/package.nix b/pkgs/by-name/je/jemalloc/package.nix index 56c26cc29d1b..353a43bbacfc 100644 --- a/pkgs/by-name/je/jemalloc/package.nix +++ b/pkgs/by-name/je/jemalloc/package.nix @@ -87,10 +87,7 @@ stdenv.mkDerivation (finalAttrs: { # https://sources.debian.org/src/jemalloc/5.3.0-3/debian/rules/ ++ [ "--with-lg-page=${toString pageSizeMap."${toString pageSizeKiB}"}" - ] - # See https://github.com/jemalloc/jemalloc/issues/1997 - # Using a value of 48 should work on both emulated and native x86_64-darwin. - ++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) "--with-lg-vaddr=48"; + ]; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=array-bounds"; diff --git a/pkgs/by-name/jr/jrl-cmakemodules-scripts/package.nix b/pkgs/by-name/jr/jrl-cmakemodules-scripts/package.nix index 8745a63f2c92..5279410455f9 100644 --- a/pkgs/by-name/jr/jrl-cmakemodules-scripts/package.nix +++ b/pkgs/by-name/jr/jrl-cmakemodules-scripts/package.nix @@ -27,8 +27,6 @@ python3Packages.buildPythonApplication (finalAttrs: { python3Packages.pytestCheckHook ]; - __structuredAttrs = true; - meta = jrl-cmakemodules.meta // { description = "Release scripting tools for JRL CMake modules"; mainProgram = "jrl-release"; diff --git a/pkgs/by-name/js/json_c/package.nix b/pkgs/by-name/js/json_c/package.nix index b84b4e89f7d3..725ee97e1937 100644 --- a/pkgs/by-name/js/json_c/package.nix +++ b/pkgs/by-name/js/json_c/package.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "json-c"; - version = "0.18"; + version = "0.19"; src = fetchFromGitHub { owner = "json-c"; repo = "json-c"; - tag = "json-c-0.18-20240915"; - hash = "sha256-UyMXr8Vc6kDOx1/lD2YKPiHdaTotXAF9ak0yQuwrSUA="; + tag = "json-c-0.19-20260627"; + hash = "sha256-ZfwVOU6PJKHSj7XVZh5BUb3VJ+lHXZVMPdHh5fgrock="; }; outputs = [ diff --git a/pkgs/by-name/ju/julec/package.nix b/pkgs/by-name/ju/julec/package.nix index 1204eb46cc68..2aafd5c367c7 100644 --- a/pkgs/by-name/ju/julec/package.nix +++ b/pkgs/by-name/ju/julec/package.nix @@ -13,8 +13,6 @@ let "linux-arm64.cpp" else if clangStdenv.hostPlatform.system == "i686-linux" then "linux-i386.cpp" - else if clangStdenv.hostPlatform.system == "x86_64-darwin" then - "darwin-amd64.cpp" else if clangStdenv.hostPlatform.system == "aarch64-darwin" then "darwin-arm64.cpp" else diff --git a/pkgs/by-name/jw/jwtcat/package.nix b/pkgs/by-name/jw/jwtcat/package.nix index 33bacfa9b013..b5985e3454fb 100644 --- a/pkgs/by-name/jw/jwtcat/package.nix +++ b/pkgs/by-name/jw/jwtcat/package.nix @@ -9,8 +9,6 @@ python3Packages.buildPythonApplication { version = "0-unstable-2022-10-15"; pyproject = false; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "aress31"; repo = "jwtcat"; diff --git a/pkgs/by-name/k9/k9s/package.nix b/pkgs/by-name/k9/k9s/package.nix index c354f2441e8f..1fb2a8b6b23c 100644 --- a/pkgs/by-name/k9/k9s/package.nix +++ b/pkgs/by-name/k9/k9s/package.nix @@ -37,7 +37,7 @@ buildGoModule (finalAttrs: { vendorHash = "sha256-PkYDJK2oGl+siCG9p4R8shC0e5BhGFdJsc+ksL9J5zw="; # TODO investigate why some config tests are failing - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; # For arch != x86 # {"level":"fatal","error":"could not create any of the following paths: /homeless-shelter/.config, /etc/xdg","time":"2022-06-28T15:52:36Z","message":"Unable to create configuration directory for k9s"} diff --git a/pkgs/by-name/ka/kalamine/package.nix b/pkgs/by-name/ka/kalamine/package.nix index 5963e2cd1375..baf7be2fb888 100644 --- a/pkgs/by-name/ka/kalamine/package.nix +++ b/pkgs/by-name/ka/kalamine/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.40"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "OneDeadKey"; repo = "kalamine"; diff --git a/pkgs/by-name/ke/kerbwolf/package.nix b/pkgs/by-name/ke/kerbwolf/package.nix index 1070d723b1bb..1615df373f9f 100644 --- a/pkgs/by-name/ke/kerbwolf/package.nix +++ b/pkgs/by-name/ke/kerbwolf/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "StrongWind1"; repo = "KerbWolf"; diff --git a/pkgs/by-name/kh/khal/package.nix b/pkgs/by-name/kh/khal/package.nix index 2f471375bbae..95213d1d1a9b 100644 --- a/pkgs/by-name/kh/khal/package.nix +++ b/pkgs/by-name/kh/khal/package.nix @@ -63,10 +63,9 @@ python3Packages.buildPythonApplication (finalAttrs: { "doc" "man" ]; - - # TODO: revert to [ "html" "man" ] once #573479 is on unstable sphinxBuilders = [ - "html man" + "html" + "man" ]; postInstall = '' diff --git a/pkgs/by-name/ki/kibot/package.nix b/pkgs/by-name/ki/kibot/package.nix index 7b642ff11caa..bef710fb8f50 100644 --- a/pkgs/by-name/ki/kibot/package.nix +++ b/pkgs/by-name/ki/kibot/package.nix @@ -76,8 +76,6 @@ python3Packages.buildPythonApplication (finalAttrs: { extraArgs = [ "--version-regex=v(\\d.\\d.\\d)" ]; }; - __structuredAttrs = true; - meta = { description = "Tool for generating fabrication and documentation files for KiCad"; homepage = "https://github.com/INTI-CMNB/KiBot"; diff --git a/pkgs/by-name/ki/kime/package.nix b/pkgs/by-name/ki/kime/package.nix index ca1cf7d2c3fb..f2af6c2b68a2 100644 --- a/pkgs/by-name/ki/kime/package.nix +++ b/pkgs/by-name/ki/kime/package.nix @@ -95,10 +95,6 @@ stdenv.mkDerivation (finalAttrs: { export PKG_CONFIG_PATH="${qt6.qtbase}/lib/pkgconfig''${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" ''; - preBuild = '' - export CARGO_BUILD_JOBS="$NIX_BUILD_CORES" - ''; - doCheck = true; checkPhase = '' runHook preCheck diff --git a/pkgs/by-name/ko/kotonoha/package.nix b/pkgs/by-name/ko/kotonoha/package.nix index 347f58f0bdec..7c3088ded91b 100644 --- a/pkgs/by-name/ko/kotonoha/package.nix +++ b/pkgs/by-name/ko/kotonoha/package.nix @@ -16,7 +16,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "kotonoha"; version = "0.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "locez"; diff --git a/pkgs/by-name/ku/kubexhunt/package.nix b/pkgs/by-name/ku/kubexhunt/package.nix index 700b99f407c2..32169ded49ad 100644 --- a/pkgs/by-name/ku/kubexhunt/package.nix +++ b/pkgs/by-name/ku/kubexhunt/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "mr-xhunt"; repo = "kubeXhunt"; diff --git a/pkgs/by-name/kv/kvrocks/package.nix b/pkgs/by-name/kv/kvrocks/package.nix index 0ff130ae0eab..f7e4ef29010d 100644 --- a/pkgs/by-name/kv/kvrocks/package.nix +++ b/pkgs/by-name/kv/kvrocks/package.nix @@ -102,7 +102,7 @@ let # RocksDB's startup path via unique_ptr bounds checks. hardeningDisable = (oldAttrs.hardeningDisable or [ ]) - ++ (lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ (lib.optionals stdenv.hostPlatform.isDarwin [ "libcxxhardeningfast" ]); }); diff --git a/pkgs/by-name/la/lapack-reference/package.nix b/pkgs/by-name/la/lapack-reference/package.nix index c0de4ce76a46..2e03a1e46a75 100644 --- a/pkgs/by-name/la/lapack-reference/package.nix +++ b/pkgs/by-name/la/lapack-reference/package.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: { ]; # Configure stage fails on aarch64-darwin otherwise, due to either clang 11 or gfortran 10. - hardeningDisable = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + hardeningDisable = lib.optionals stdenv.hostPlatform.isDarwin [ "stackprotector" ]; diff --git a/pkgs/by-name/la/lapack/package.nix b/pkgs/by-name/la/lapack/package.nix index ba24b000b827..41ad359d895e 100644 --- a/pkgs/by-name/la/lapack/package.nix +++ b/pkgs/by-name/la/lapack/package.nix @@ -50,10 +50,6 @@ stdenv.mkDerivation { implementation = lapackImplementation; }; - # TODO: drop this forced rebuild, as it was needed just once. - rebuild_salt = - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 then "J4AQ" else null; - dontBuild = true; dontConfigure = true; unpackPhase = "src=$PWD"; diff --git a/pkgs/by-name/la/lasuite-drive/package.nix b/pkgs/by-name/la/lasuite-drive/package.nix index 4bf4ad969a84..d31a959cfb9e 100644 --- a/pkgs/by-name/la/lasuite-drive/package.nix +++ b/pkgs/by-name/la/lasuite-drive/package.nix @@ -153,8 +153,6 @@ python.pkgs.buildPythonApplication (finalAttrs: { }; }; - __structuredAttrs = true; - meta = meta // { description = "A collaborative file sharing and document management platform that scales. Built with Django and React. Opensource alternative to Sharepoint or Google Drive"; mainProgram = "drive"; diff --git a/pkgs/by-name/lc/lcdproc/package.nix b/pkgs/by-name/lc/lcdproc/package.nix index 306126129217..0d9cc9cf5987 100644 --- a/pkgs/by-name/lc/lcdproc/package.nix +++ b/pkgs/by-name/lc/lcdproc/package.nix @@ -88,6 +88,6 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ peterhoeg ]; platforms = lib.platforms.unix; # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; }) diff --git a/pkgs/by-name/ld/ldc/bootstrap.nix b/pkgs/by-name/ld/ldc/bootstrap.nix index 8652ac18c47b..12264240dab8 100644 --- a/pkgs/by-name/ld/ldc/bootstrap.nix +++ b/pkgs/by-name/ld/ldc/bootstrap.nix @@ -12,8 +12,7 @@ let inherit (stdenv) hostPlatform; OS = if hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name; - ARCH = - if hostPlatform.isDarwin && hostPlatform.isAarch64 then "arm64" else hostPlatform.parsed.cpu.name; + ARCH = if hostPlatform.isDarwin then hostPlatform.darwinArch else hostPlatform.parsed.cpu.name; version = "1.42.0"; hashes = { # Get these from `nix store prefetch-file https://github.com/ldc-developers/ldc/releases/download/v1.19.0/ldc2-1.19.0-osx-x86_64.tar.xz` etc.. diff --git a/pkgs/by-name/le/lean-lsp-mcp/package.nix b/pkgs/by-name/le/lean-lsp-mcp/package.nix index 5c4641507e51..bdbb2b13f391 100644 --- a/pkgs/by-name/le/lean-lsp-mcp/package.nix +++ b/pkgs/by-name/le/lean-lsp-mcp/package.nix @@ -9,8 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.31.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "oOo0oOo"; repo = "lean-lsp-mcp"; diff --git a/pkgs/by-name/le/leangz/package.nix b/pkgs/by-name/le/leangz/package.nix index 9d278567070f..6d2c60f5497d 100644 --- a/pkgs/by-name/le/leangz/package.nix +++ b/pkgs/by-name/le/leangz/package.nix @@ -3,6 +3,8 @@ rustPlatform, fetchFromGitHub, versionCheckHook, + pkg-config, + zstd, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "leangz"; @@ -20,6 +22,10 @@ rustPlatform.buildRustPackage (finalAttrs: { __structuredAttrs = true; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ zstd ]; + nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; diff --git a/pkgs/by-name/le/lemmy-server/package.nix b/pkgs/by-name/le/lemmy-server/package.nix index 27361c48b03a..9b4b2a2f7413 100644 --- a/pkgs/by-name/le/lemmy-server/package.nix +++ b/pkgs/by-name/le/lemmy-server/package.nix @@ -3,9 +3,12 @@ stdenv, rustPlatform, fetchFromGitHub, - openssl, + aws-lc, libpq, + rust-jemalloc-sys, + zstd, libiconv, + pkg-config, protobuf, rustfmt, nixosTests, @@ -31,20 +34,16 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-GjuP5ci1f6xGGrDkS8KyfP15Owj42YNITfK3T4MuHp0="; buildInputs = [ + aws-lc libpq + rust-jemalloc-sys + zstd ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; env = { - # Using OPENSSL_NO_VENDOR is not an option on darwin - # As of version 0.10.35 rust-openssl looks for openssl on darwin - # with a hardcoded path to /usr/lib/libssl.x.x.x.dylib - # https://github.com/sfackler/rust-openssl/blob/master/openssl-sys/build/find_normal.rs#L115 - OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib"; - OPENSSL_INCLUDE_DIR = "${openssl.dev}/include"; - PROTOC = "${protobuf}/bin/protoc"; PROTOC_INCLUDE = "${protobuf}/include"; @@ -52,6 +51,7 @@ rustPlatform.buildRustPackage (finalAttrs: { RUSTFLAGS = "--cap-lints warn"; }; nativeBuildInputs = [ + pkg-config protobuf rustfmt ]; diff --git a/pkgs/by-name/li/libadwaita/package.nix b/pkgs/by-name/li/libadwaita/package.nix index c158da4ee9af..b6c6f5f3bfda 100644 --- a/pkgs/by-name/li/libadwaita/package.nix +++ b/pkgs/by-name/li/libadwaita/package.nix @@ -1,15 +1,16 @@ { lib, stdenv, - fetchFromGitLab, + fetchurl, gi-docgen, + glibcLocalesUtf8, meson, + ministream, ninja, pkg-config, sassc, vala, gobject-introspection, - appstream, fribidi, glib, gtk4, @@ -23,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "libadwaita"; - version = "1.9.3"; + version = "1.10.0"; outputs = [ "out" @@ -32,12 +33,9 @@ stdenv.mkDerivation (finalAttrs: { ]; outputBin = "devdoc"; # demo app - src = fetchFromGitLab { - domain = "gitlab.gnome.org"; - owner = "GNOME"; - repo = "libadwaita"; - tag = finalAttrs.version; - hash = "sha256-1V3L10YgRnOoJud/lybfSj2AYOY0kRAJdfamJg+S1fo="; + src = fetchurl { + url = "mirror://gnome/sources/libadwaita/${lib.versions.majorMinor finalAttrs.version}/libadwaita-${finalAttrs.version}.tar.xz"; + hash = "sha256-sb9WI5Jp0QGmORrUVTyRDv+cxhcLgDkWQFR372CmbIQ="; }; depsBuildBuild = [ @@ -63,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ - appstream + ministream fribidi ]; @@ -73,6 +71,7 @@ stdenv.mkDerivation (finalAttrs: { nativeCheckInputs = [ adwaita-icon-theme + glibcLocalesUtf8 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ xvfb-run @@ -128,7 +127,7 @@ stdenv.mkDerivation (finalAttrs: { }; meta = { - changelog = "https://gitlab.gnome.org/GNOME/libadwaita/-/blob/${finalAttrs.src.tag}/NEWS"; + changelog = "https://gitlab.gnome.org/GNOME/libadwaita/-/blob/${finalAttrs.version}/NEWS"; description = "Library to help with developing UI for mobile devices using GTK/GNOME"; mainProgram = "adwaita-1-demo"; homepage = "https://gitlab.gnome.org/GNOME/libadwaita"; diff --git a/pkgs/by-name/li/libajantv2/demos-ntv2overlay-no-makefile.patch b/pkgs/by-name/li/libajantv2/demos-ntv2overlay-no-makefile.patch deleted file mode 100644 index 02fc44a5e79a..000000000000 --- a/pkgs/by-name/li/libajantv2/demos-ntv2overlay-no-makefile.patch +++ /dev/null @@ -1,23 +0,0 @@ -From f822ffa9f886b668fe0a6269f0ba8bf48043d190 Mon Sep 17 00:00:00 2001 -From: Luke Granger-Brown -Date: Sun, 22 Jun 2025 14:12:08 +0100 -Subject: [PATCH 4/4] Don't attempt to install a non-existent Makefile - ---- - demos/ntv2overlay/CMakeLists.txt | 3 --- - 1 file changed, 3 deletions(-) - -diff --git a/demos/ntv2overlay/CMakeLists.txt b/demos/ntv2overlay/CMakeLists.txt -index 4520e795..ae94906f 100644 ---- a/demos/ntv2overlay/CMakeLists.txt -+++ b/demos/ntv2overlay/CMakeLists.txt -@@ -48,6 +48,3 @@ endif() - if (AJA_INSTALL_CMAKE) - install(FILES CMakeLists.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/libajantv2/demos/ntv2overlay) - endif() --if (AJA_INSTALL_MISC) -- install(FILES Makefile DESTINATION ${CMAKE_INSTALL_PREFIX}/libajantv2/demos/ntv2overlay) --endif() --- -2.49.0 - diff --git a/pkgs/by-name/li/libajantv2/device-info-list.patch b/pkgs/by-name/li/libajantv2/device-info-list.patch index b0a9d05e93ee..a9a110bbbca0 100644 --- a/pkgs/by-name/li/libajantv2/device-info-list.patch +++ b/pkgs/by-name/li/libajantv2/device-info-list.patch @@ -1,7 +1,7 @@ -From 5d6984729190139ddcbefb825e4d59a8bdfc3551 Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 22 Jun 2025 14:05:49 +0100 -Subject: [PATCH 2/3] Properly mark CNTV2DeviceScanner::GetDeviceInfoList as a +Subject: [PATCH] Properly mark CNTV2DeviceScanner::GetDeviceInfoList as a class member method --- @@ -9,10 +9,10 @@ Subject: [PATCH 2/3] Properly mark CNTV2DeviceScanner::GetDeviceInfoList as a 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajantv2/src/ntv2devicescanner.cpp b/ajantv2/src/ntv2devicescanner.cpp -index 11d145be..1fb0b433 100644 +index b135d6d7a40e13c40711e317655a66af5580f789..3bcd540c0c2f0c6e1de847aea4252f2b8b276c6e 100644 --- a/ajantv2/src/ntv2devicescanner.cpp +++ b/ajantv2/src/ntv2devicescanner.cpp -@@ -117,7 +117,7 @@ CNTV2DeviceScanner::CNTV2DeviceScanner (const bool inScanNow) +@@ -94,7 +94,7 @@ CNTV2DeviceScanner::CNTV2DeviceScanner (const bool inScanNow) } #endif // !defined(NTV2_DEPRECATE_16_3) @@ -21,6 +21,3 @@ index 11d145be..1fb0b433 100644 { AJAAutoLock tmpLock(&sDevInfoListLock); return sDevInfoList; --- -2.49.0 - diff --git a/pkgs/by-name/li/libajantv2/musl.patch b/pkgs/by-name/li/libajantv2/musl.patch index 5221be4e3f96..191b7661f729 100644 --- a/pkgs/by-name/li/libajantv2/musl.patch +++ b/pkgs/by-name/li/libajantv2/musl.patch @@ -1,7 +1,7 @@ -From 8312398dbc1f0a960c0e64c2faaa756277c0f67c Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 3 Jan 2025 12:21:28 +0100 -Subject: [PATCH 3/3] Don't use non-standard ACCESSPERMS macro +Subject: [PATCH] Don't use non-standard ACCESSPERMS macro This macro is non-standard, and is not defined by e.g. musl libc. It's just a define for 0777, so just use that instead. @@ -12,10 +12,10 @@ Link: https://github.com/aja-video/libajantv2/pull/42 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajabase/test/main.cpp b/ajabase/test/main.cpp -index 78196446..e18b10a3 100644 +index ce7c693d5a84af27804b56fc83324a4c3b3e0d80..522858b659d878253f7cbf7423a524f2dc1fad67 100644 --- a/ajabase/test/main.cpp +++ b/ajabase/test/main.cpp -@@ -1951,9 +1951,9 @@ TEST_SUITE("file" * doctest::description("functions in ajabase/system/file_io.h" +@@ -2124,9 +2124,9 @@ TEST_SUITE("file" * doctest::description("functions in ajabase/system/file_io.h" _mkdir(tempDir.c_str()); _getcwd(cwdBuf, AJA_MAX_PATH); #else @@ -27,6 +27,3 @@ index 78196446..e18b10a3 100644 } char* result = getcwd(cwdBuf, AJA_MAX_PATH); AJA_UNUSED(result); --- -2.49.0 - diff --git a/pkgs/by-name/li/libajantv2/package.nix b/pkgs/by-name/li/libajantv2/package.nix index dffc8bf3a642..eb7bfc656ddc 100644 --- a/pkgs/by-name/li/libajantv2/package.nix +++ b/pkgs/by-name/li/libajantv2/package.nix @@ -6,25 +6,28 @@ ninja, pkg-config, mbedtls, + python3, + alsa-lib, udev, linuxPackages, + enableQt ? false, + qt6, }: stdenv.mkDerivation (finalAttrs: { pname = "libajantv2"; - version = "17.5.0"; + version = "18.0.0"; src = fetchFromGitHub { owner = "aja-video"; repo = "libajantv2"; rev = "ntv2_${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}"; - hash = "sha256-/BfFbBScS75TpUZEeYzAHd1PtnZgnCNfGtjwYPJJjkg="; + hash = "sha256-SdS2cV/jqSn1OMbRlvtQesXkV4ZAL5n1BIFl43p4WKQ="; }; patches = [ ./use-system-mbedtls.patch ./device-info-list.patch ./musl.patch - ./demos-ntv2overlay-no-makefile.patch ]; outputs = [ @@ -36,16 +39,32 @@ stdenv.mkDerivation (finalAttrs: { cmake ninja pkg-config + ] + ++ lib.optionals enableQt [ + qt6.wrapQtAppsHook ]; buildInputs = [ mbedtls udev + python3 + alsa-lib + ] + ++ lib.optionals enableQt [ + qt6.qtbase + qt6.qtmultimedia ]; + dontWrapQtApps = true; + cmakeFlags = [ (lib.cmakeBool "AJANTV2_BUILD_SHARED" true) + (lib.cmakeBool "AJA_DISABLE_QT" (!enableQt)) ]; + preFixup = lib.optionalString enableQt '' + wrapQtApp "$out/bin/ntv2qtmultiinput" + wrapQtApp "$out/bin/ntv2qtpreview" + ''; postInstall = '' mkdir -p "$dev/lib/pkgconfig" cat >"$dev/lib/pkgconfig/libajantv2.pc" < Date: Fri, 20 Dec 2024 18:03:16 +0000 -Subject: [PATCH 1/3] Use system mbedtls, rather than downloading from a random - Git branch... +Subject: [PATCH] Use system mbedtls, rather than downloading from a random Git + branch... --- ajantv2/CMakeLists.txt | 50 +++--------------------------------------- 1 file changed, 3 insertions(+), 47 deletions(-) diff --git a/ajantv2/CMakeLists.txt b/ajantv2/CMakeLists.txt -index 8037dd4b..aa6e6577 100644 +index fa97393f56a910acb5039228e5f1be03357c8c52..908aebbf2d4aaf83f14e94ceacd3c09a428de3a1 100644 --- a/ajantv2/CMakeLists.txt +++ b/ajantv2/CMakeLists.txt -@@ -55,49 +55,13 @@ else() +@@ -65,49 +65,13 @@ else() endif() message(STATUS "NTV2 SDK will load signed 3rd-party plugins") @@ -65,18 +65,18 @@ index 8037dd4b..aa6e6577 100644 endif() -@@ -671,10 +635,6 @@ if (NOT TARGET ${PROJECT_NAME}) - aja_ntv2_log_build_info() +@@ -685,10 +649,6 @@ if (NOT TARGET ${PROJECT_NAME}) add_library(${PROJECT_NAME} SHARED ${TARGET_SOURCES}) -- + - if (NOT AJANTV2_DISABLE_PLUGIN_LOAD) - add_dependencies(${PROJECT_NAME} mbedtls) - endif() - +- target_compile_definitions(${PROJECT_NAME} PUBLIC ${TARGET_COMPILE_DEFS_DYNAMIC} -@@ -690,10 +650,6 @@ if (NOT TARGET ${PROJECT_NAME}) + ${AJANTV2_TARGET_COMPILE_DEFS}) +@@ -773,10 +733,6 @@ if (NOT TARGET ${PROJECT_NAME}) add_library(${PROJECT_NAME} STATIC ${TARGET_SOURCES}) @@ -87,6 +87,3 @@ index 8037dd4b..aa6e6577 100644 target_compile_definitions(${PROJECT_NAME} PUBLIC ${TARGET_COMPILE_DEFS_STATIC} ${AJANTV2_TARGET_COMPILE_DEFS}) --- -2.49.0 - diff --git a/pkgs/by-name/li/libaom/package.nix b/pkgs/by-name/li/libaom/package.nix index fb5976f23267..15a5afaaa49f 100644 --- a/pkgs/by-name/li/libaom/package.nix +++ b/pkgs/by-name/li/libaom/package.nix @@ -23,11 +23,11 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "libaom"; - version = "3.15.1"; + version = "3.15.2"; src = fetchzip { url = "https://aomedia.googlesource.com/aom/+archive/v${finalAttrs.version}.tar.gz"; - hash = "sha256-TlAgiu+vv2DkxVYvnPyX4UqYFyewkSuNB73gZCifCYM="; + hash = "sha256-RjAg0vm4uPQPiM48pObD6A87HMhBiwyV9CZ3a3qeJCo="; stripRoot = false; }; diff --git a/pkgs/by-name/li/libarchive/package.nix b/pkgs/by-name/li/libarchive/package.nix index 7164e86c9d7a..d15d1f944852 100644 --- a/pkgs/by-name/li/libarchive/package.nix +++ b/pkgs/by-name/li/libarchive/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, acl, attr, autoreconfHook, @@ -32,15 +33,33 @@ assert xarSupport -> libxml2 != null; stdenv.mkDerivation (finalAttrs: { pname = "libarchive"; - version = "3.8.9"; + version = "3.8.10"; src = fetchFromGitHub { owner = "libarchive"; repo = "libarchive"; rev = "v${finalAttrs.version}"; - hash = "sha256-/CoInUlOiFvR83mEeV3Tx+2SQGywWDQ4nY+NstE/cP4="; + hash = "sha256-B2leEyMwSy7YSEMKSTsgfeBbKo4kOQPU0ME0XWuZMik="; }; + patches = [ + # fixes test_create_child_environment test + # https://github.com/libarchive/libarchive/issues/3676 + # https://github.com/libarchive/libarchive/pull/3677 + (fetchpatch { + name = "archive-read-fix-large-child-environment-test.patch"; + url = "https://github.com/libarchive/libarchive/commit/28d2900e51b6d20f22d3a74eca6ddac5939ef104.patch"; + hash = "sha256-4vL54mn8iblIMB7i46nSDc/CXl2eyrZ43Tj+QOgC4mk="; + }) + + # fixes Lix test deadlock and general questionable behavior + # https://github.com/libarchive/libarchive/pull/3693 + (fetchpatch { + url = "https://github.com/libarchive/libarchive/commit/032c0ddead2f7acb5be56a0577159e03b3d4dc69.patch"; + hash = "sha256-KM4/R15uwNT7A0qhwrxfpMzYulxLFkuicVnvN7EnFbs="; + }) + ]; + outputs = [ "out" "lib" diff --git a/pkgs/by-name/li/libass/package.nix b/pkgs/by-name/li/libass/package.nix index 045b0d926bdb..ac1199162deb 100644 --- a/pkgs/by-name/li/libass/package.nix +++ b/pkgs/by-name/li/libass/package.nix @@ -17,11 +17,11 @@ assert fontconfigSupport -> fontconfig != null; stdenv.mkDerivation (finalAttrs: { pname = "libass"; - version = "0.17.4"; + version = "0.17.5"; src = fetchurl { url = "https://github.com/libass/libass/releases/download/${finalAttrs.version}/libass-${finalAttrs.version}.tar.xz"; - hash = "sha256-ePEXm4ONAl6cJuj+8z+AkvZWEURP+hv8DPrGozURoFo="; + hash = "sha256-LcolwODIN93wC1IBGz+CysHk3dOtAYIngGsMIoiGSsw="; }; outputs = [ diff --git a/pkgs/by-name/li/libbsd/package.nix b/pkgs/by-name/li/libbsd/package.nix index e4e7af96ce99..d9deb23b871f 100644 --- a/pkgs/by-name/li/libbsd/package.nix +++ b/pkgs/by-name/li/libbsd/package.nix @@ -29,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ autoreconfHook ]; propagatedBuildInputs = [ libmd ]; + strictDeps = true; + patches = [ # `strtonum(3)` is not available on our default SDK version. # https://gitlab.freedesktop.org/libbsd/libbsd/-/issues/30 @@ -45,6 +47,8 @@ stdenv.mkDerivation (finalAttrs: { stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17" ) [ "LDFLAGS=-Wl,--undefined-version" ]; + __structuredAttrs = true; + meta = { description = "Common functions found on BSD systems"; homepage = "https://libbsd.freedesktop.org/"; diff --git a/pkgs/by-name/li/libcloudproviders/package.nix b/pkgs/by-name/li/libcloudproviders/package.nix index 352e77bd3c79..41150139759f 100644 --- a/pkgs/by-name/li/libcloudproviders/package.nix +++ b/pkgs/by-name/li/libcloudproviders/package.nix @@ -17,11 +17,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "libcloudproviders"; - version = "0.4.0"; + version = "0.4.1"; src = fetchurl { url = "mirror://gnome/sources/libcloudproviders/${lib.versions.majorMinor finalAttrs.version}/libcloudproviders-${finalAttrs.version}.tar.xz"; - hash = "sha256-JHsijRAnsmg4aOfXCA04aTpFfpCKrdDBGdUt5Zo5gGQ="; + hash = "sha256-PhI/oqNPbf2ZiX6+X+w9+jXZz0sZLCj+f8kMWq+vz1s="; }; outputs = [ diff --git a/pkgs/by-name/li/libdaemon/package.nix b/pkgs/by-name/li/libdaemon/package.nix index e71e21ebdc2c..809de332ffaa 100644 --- a/pkgs/by-name/li/libdaemon/package.nix +++ b/pkgs/by-name/li/libdaemon/package.nix @@ -21,6 +21,8 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./fix-includes.patch ]; + strictDeps = true; + configureFlags = [ "--disable-lynx" ] @@ -29,6 +31,8 @@ stdenv.mkDerivation (finalAttrs: { "ac_cv_func_setpgrp_void=${lib.boolToYesNo (!stdenv.hostPlatform.isBSD)}" ]; + __structuredAttrs = true; + meta = { description = "Lightweight C library that eases the writing of UNIX daemons"; homepage = "http://0pointer.de/lennart/projects/libdaemon/"; diff --git a/pkgs/by-name/li/libde265/package.nix b/pkgs/by-name/li/libde265/package.nix index dca0f96860c0..f2acd36086bf 100644 --- a/pkgs/by-name/li/libde265/package.nix +++ b/pkgs/by-name/li/libde265/package.nix @@ -15,14 +15,14 @@ }: stdenv.mkDerivation (finalAttrs: { - version = "1.1.2"; + version = "1.1.3"; pname = "libde265"; src = fetchFromGitHub { owner = "strukturag"; repo = "libde265"; tag = "v${finalAttrs.version}"; - hash = "sha256-dXUkSGviRfQkWacxMpH2vyLiSMvsetFw6ncrTW1SZaQ="; + hash = "sha256-3bU0xevUSCkyzQUed9PS9p5hXb689Hr9acCAdeWfk0g="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/li/libdex/package.nix b/pkgs/by-name/li/libdex/package.nix index ad6f4543be9b..85d0f66a8c6a 100644 --- a/pkgs/by-name/li/libdex/package.nix +++ b/pkgs/by-name/li/libdex/package.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "libdex"; - version = "1.1.0"; + version = "1.2.0"; outputs = [ "out" @@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/libdex/${lib.versions.majorMinor finalAttrs.version}/libdex-${finalAttrs.version}.tar.xz"; - hash = "sha256-qeBMir7gHJp88RSMW3qma6N37+avbYOAHU/RqlUhmqo="; + hash = "sha256-afWyRMIfZAKDHDq4r4WgF3L3L7EYZ3OIQ28S8yv7Btk="; }; nativeBuildInputs = [ @@ -53,8 +53,8 @@ stdenv.mkDerivation (finalAttrs: { # test-dbus tries to access /etc/machine-id postPatch = '' substituteInPlace "testsuite/meson.build" --replace-fail \ - "'test-dbus': {'extra-sources': dbus_foo, 'disable': not have_gdbus_codegen}," \ - "'test-dbus': {'extra-sources': dbus_foo, 'disable': true}," + "'test-dbus': {'extra-sources': dbus_foo, 'disable': not have_gdbus_codegen, 'is_parallel': false}," \ + "'test-dbus': {'extra-sources': dbus_foo, 'disable': true, 'is_parallel': false}," ''; postFixup = '' diff --git a/pkgs/by-name/li/libdrm/package.nix b/pkgs/by-name/li/libdrm/package.nix index 7e0b8d177df9..4fb5bb258b6f 100644 --- a/pkgs/by-name/li/libdrm/package.nix +++ b/pkgs/by-name/li/libdrm/package.nix @@ -41,6 +41,8 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optional withIntel libpciaccess ++ lib.optional withValgrind valgrind-light; + strictDeps = true; + mesonFlags = [ "-Dinstall-test-programs=true" "-Dcairo-tests=disabled" @@ -53,6 +55,8 @@ stdenv.mkDerivation (finalAttrs: { "-Detnaviv=disabled" ]; + __structuredAttrs = true; + passthru = { updateScript = gitUpdater { url = "https://gitlab.freedesktop.org/mesa/drm.git"; diff --git a/pkgs/by-name/li/libepoxy/package.nix b/pkgs/by-name/li/libepoxy/package.nix index 5d3c8acf681a..1e315cda1aaf 100644 --- a/pkgs/by-name/li/libepoxy/package.nix +++ b/pkgs/by-name/li/libepoxy/package.nix @@ -62,6 +62,8 @@ stdenv.mkDerivation (finalAttrs: { libx11 ]; + strictDeps = true; + mesonFlags = [ "-Degl=${lib.boolToYesNo (x11Support && !stdenv.hostPlatform.isDarwin)}" "-Dglx=${lib.boolToYesNo x11Support}" @@ -81,6 +83,8 @@ stdenv.mkDerivation (finalAttrs: { }; }; + __structuredAttrs = true; + meta = { description = "Library for handling OpenGL function pointer management"; homepage = "https://github.com/anholt/libepoxy"; diff --git a/pkgs/by-name/li/libffi_3_3/package.nix b/pkgs/by-name/li/libffi_3_3/package.nix index 791799bc3337..c275ed085da7 100644 --- a/pkgs/by-name/li/libffi_3_3/package.nix +++ b/pkgs/by-name/li/libffi_3_3/package.nix @@ -80,6 +80,6 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ armeenm ]; platforms = lib.platforms.all; # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; }) diff --git a/pkgs/by-name/li/libfontenc/package.nix b/pkgs/by-name/li/libfontenc/package.nix index 3e3409ced6ae..e1a6168f0f21 100644 --- a/pkgs/by-name/li/libfontenc/package.nix +++ b/pkgs/by-name/li/libfontenc/package.nix @@ -38,6 +38,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "X font encoding library"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libfontenc"; diff --git a/pkgs/by-name/li/libfoundry/package.nix b/pkgs/by-name/li/libfoundry/package.nix index 81cab3fc6ec7..abfe28362d61 100644 --- a/pkgs/by-name/li/libfoundry/package.nix +++ b/pkgs/by-name/li/libfoundry/package.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "libfoundry${lib.optionalString withGtk "-gtk"}"; - version = "1.1.1"; + version = "1.2.0"; outputs = [ "out" @@ -48,7 +48,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/foundry/${lib.versions.majorMinor finalAttrs.version}/foundry-${finalAttrs.version}.tar.xz"; - hash = "sha256-RtsNZENsMTYRyv37TKDVzsK5e+fXpfG+fujQFQ1PJcg="; + hash = "sha256-fIaqeQyJUga2aMnxjCGo9dIAeL2bJx+Yd2lNMelWSzQ="; }; patches = [ diff --git a/pkgs/by-name/li/libgcrypt/package.nix b/pkgs/by-name/li/libgcrypt/package.nix index b78c294706fb..0b3c35895961 100644 --- a/pkgs/by-name/li/libgcrypt/package.nix +++ b/pkgs/by-name/li/libgcrypt/package.nix @@ -55,9 +55,7 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--with-libgpg-error-prefix=${libgpg-error.dev}" ] - ++ lib.optional ( - stdenv.hostPlatform.isMusl || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) - ) "--disable-asm" # for darwin see https://dev.gnupg.org/T5157 + ++ lib.optional (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isDarwin) "--disable-asm" # for darwin see https://dev.gnupg.org/T5157 # Fix undefined reference errors with version script under LLVM. ++ lib.optional ( stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17" diff --git a/pkgs/by-name/li/libglvnd/package.nix b/pkgs/by-name/li/libglvnd/package.nix index 063a5a7fbfe5..4d049173991a 100644 --- a/pkgs/by-name/li/libglvnd/package.nix +++ b/pkgs/by-name/li/libglvnd/package.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: { domain = "gitlab.freedesktop.org"; owner = "glvnd"; repo = "libglvnd"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-2U9JtpGyP4lbxtVJeP5GUgh5XthloPvFIw28+nldYx8="; }; @@ -46,6 +46,8 @@ stdenv.mkDerivation (finalAttrs: { xorgproto ]; + strictDeps = true; + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace src/GLX/Makefile.am \ --replace "-Wl,-Bsymbolic " "" @@ -74,7 +76,7 @@ stdenv.mkDerivation (finalAttrs: { # Indirectly: https://bugs.freedesktop.org/show_bug.cgi?id=35268 ++ lib.optional stdenv.hostPlatform.isMusl "--disable-tls" # Remove when aarch64-darwin asm support is upstream: https://gitlab.freedesktop.org/glvnd/libglvnd/-/issues/216 - ++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) "--disable-asm"; + ++ lib.optional stdenv.hostPlatform.isDarwin "--disable-asm"; outputs = [ "out" @@ -90,6 +92,8 @@ stdenv.mkDerivation (finalAttrs: { passthru = { inherit (addDriverRunpath) driverLink; }; + __structuredAttrs = true; + meta = { description = "GL Vendor-Neutral Dispatch library"; longDescription = '' diff --git a/pkgs/by-name/li/libglycin-gtk4/package.nix b/pkgs/by-name/li/libglycin-gtk4/package.nix index b5181f595b22..fbf4c7170f12 100644 --- a/pkgs/by-name/li/libglycin-gtk4/package.nix +++ b/pkgs/by-name/li/libglycin-gtk4/package.nix @@ -7,7 +7,6 @@ glib, gobject-introspection, gtk4, - lcms2, libglycin, libseccomp, meson, @@ -53,7 +52,6 @@ stdenv.mkDerivation (finalAttrs: { fontconfig glib libseccomp - lcms2 gtk4 ]; @@ -63,7 +61,6 @@ stdenv.mkDerivation (finalAttrs: { # TODO: these should not be required by .pc file fontconfig libseccomp - lcms2 ]; mesonFlags = [ @@ -79,9 +76,10 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' patchShebangs \ build-aux/crates-version.py - substituteInPlace libglycin/meson.build --replace-fail \ - "cargo_output = cargo_target_dir / rust_target" \ - "cargo_output = cargo_target_dir / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target" + + substituteInPlace meson.build --replace-fail \ + "meson.get_external_property('rust_target')" \ + "'${stdenv.hostPlatform.rust.cargoShortTarget}'" ''; postFixup = '' @@ -89,8 +87,6 @@ stdenv.mkDerivation (finalAttrs: { moveToOutput "share/doc" "$devdoc" ''; - env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec; - strictDeps = true; meta = { diff --git a/pkgs/by-name/li/libglycin/package.nix b/pkgs/by-name/li/libglycin/package.nix index d8cb4a7d5938..7e299f3361e7 100644 --- a/pkgs/by-name/li/libglycin/package.nix +++ b/pkgs/by-name/li/libglycin/package.nix @@ -19,7 +19,6 @@ libglycin-gtk4, fontconfig, libseccomp, - lcms2, gnome, replaceVars, bubblewrap, @@ -32,7 +31,7 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "libglycin"; - version = "2.1.5"; + version = "2.2.1"; outputs = [ "out" @@ -44,12 +43,12 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/glycin/${lib.versions.majorMinor finalAttrs.version}/glycin-${finalAttrs.version}.tar.xz"; - hash = "sha256-bAl1fukGMwpgtnBXU6pWvKAHrSGblebjU3UQ1BvDQcg="; + hash = "sha256-k3rlcddsDeXlnblE0RlJgTYL437peHVyl4G8OBbd6v4="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-6vCucnT3xPWSm3TSi3WzgJdiiBFHvGMpab4d53OfThg="; + hash = "sha256-juN2dr0zknZIXIQNgxsJHhnR2kn4bDtlyc6P6AwNKOU="; }; nativeBuildInputs = [ @@ -71,7 +70,6 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ fontconfig libseccomp - lcms2 ]; propagatedBuildInputs = [ @@ -79,7 +77,6 @@ stdenv.mkDerivation (finalAttrs: { # TODO: these should not be required by .pc file fontconfig libseccomp - lcms2 ]; mesonFlags = [ @@ -95,9 +92,10 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' patchShebangs \ build-aux/crates-version.py - substituteInPlace libglycin/meson.build --replace-fail \ - "cargo_output = cargo_target_dir / rust_target" \ - "cargo_output = cargo_target_dir / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target" + + substituteInPlace meson.build --replace-fail \ + "meson.get_external_property('rust_target')" \ + "'${stdenv.hostPlatform.rust.cargoShortTarget}'" ''; postFixup = '' @@ -105,8 +103,6 @@ stdenv.mkDerivation (finalAttrs: { moveToOutput "share/doc" "$devdoc" ''; - env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec; - strictDeps = true; passthru = { diff --git a/pkgs/by-name/li/libheif/package.nix b/pkgs/by-name/li/libheif/package.nix index 592510d94101..89222dcb3e7b 100644 --- a/pkgs/by-name/li/libheif/package.nix +++ b/pkgs/by-name/li/libheif/package.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "libheif"; - version = "1.23.6"; + version = "1.23.7"; outputs = [ "bin" @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "strukturag"; repo = "libheif"; rev = "v${finalAttrs.version}"; - hash = "sha256-pZuVZWnk/gIvjZQ8G7k5HMMC3E4vGuLNID96KT7Qo7c="; + hash = "sha256-cC7a+xeEbWTw748+gYzpj0H9MGGgExXUndZrpFMoH40="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/li/libice/package.nix b/pkgs/by-name/li/libice/package.nix index c28044fa877e..d8f7df1ac902 100644 --- a/pkgs/by-name/li/libice/package.nix +++ b/pkgs/by-name/li/libice/package.nix @@ -44,6 +44,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Inter-Client Exchange Library"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libice"; diff --git a/pkgs/by-name/li/libimagequant/package.nix b/pkgs/by-name/li/libimagequant/package.nix index d9920927a8ce..6c0b0c7ae95e 100644 --- a/pkgs/by-name/li/libimagequant/package.nix +++ b/pkgs/by-name/li/libimagequant/package.nix @@ -17,6 +17,8 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "libimagequant"; version = "4.4.1"; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "ImageOptim"; repo = "libimagequant"; diff --git a/pkgs/by-name/li/libjxl/package.nix b/pkgs/by-name/li/libjxl/package.nix index 92806f98b041..c0f412da3128 100644 --- a/pkgs/by-name/li/libjxl/package.nix +++ b/pkgs/by-name/li/libjxl/package.nix @@ -171,9 +171,7 @@ stdenv.mkDerivation rec { CXXFLAGS = "-mfp16-format=ieee"; }; - # FIXME x86_64-darwin: - # https://github.com/NixOS/nixpkgs/pull/204030#issuecomment-1352768690 - doCheck = with stdenv.hostPlatform; !(isi686 || isDarwin && isx86_64); + doCheck = with stdenv.hostPlatform; !isi686; disabledTests = lib.optionals stdenv.hostPlatform.isBigEndian [ # https://github.com/libjxl/libjxl/issues/3629 diff --git a/pkgs/by-name/li/libkrun/package.nix b/pkgs/by-name/li/libkrun/package.nix index d27e07a3f97f..77b32f08c92a 100644 --- a/pkgs/by-name/li/libkrun/package.nix +++ b/pkgs/by-name/li/libkrun/package.nix @@ -6,6 +6,7 @@ cargo, pkg-config, glibc, + zstd, openssl, libcap_ng, libepoxy, @@ -90,7 +91,8 @@ stdenv.mkDerivation (finalAttrs: { virglrenderer ] ++ lib.optional withSound pipewire - ++ lib.optional (variant == "sev" || variant == "tdx") openssl; + ++ lib.optional (variant == "sev" || variant == "tdx") openssl + ++ lib.optional stdenv.hostPlatform.isx86_64 zstd; makeFlags = [ "PREFIX=${placeholder "out"}" diff --git a/pkgs/by-name/li/libmad/package.nix b/pkgs/by-name/li/libmad/package.nix index e2054f281db0..98a437f470c0 100644 --- a/pkgs/by-name/li/libmad/package.nix +++ b/pkgs/by-name/li/libmad/package.nix @@ -1,9 +1,10 @@ { lib, stdenv, - fetchurl, - fetchpatch, - autoconf, + fetchFromCodeberg, + cmake, + ninja, + testers, # for passthru.tests audacity, @@ -16,11 +17,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "libmad"; - version = "0.15.1b"; + version = "0.16.5"; - src = fetchurl { - url = "mirror://sourceforge/mad/libmad-${finalAttrs.version}.tar.gz"; - sha256 = "14460zhacxhswnzb36qfpd1f2wbk10qvksvm6wyq5hpvdgnw7ymv"; + src = fetchFromCodeberg { + owner = "tenacityteam"; + repo = "libmad"; + tag = finalAttrs.version; + hash = "sha256-zfjfP5xiijRTVaYauVTY6Pwsq4XhjYMpHZ/aH0e5Tds="; }; outputs = [ @@ -28,51 +31,14 @@ stdenv.mkDerivation (finalAttrs: { "dev" ]; - patches = [ - (fetchpatch { - url = "https://github.com/openwrt/packages/raw/openwrt-19.07/libs/libmad/patches/001-mips_removal_h_constraint.patch"; - sha256 = "0layswr6qg6axf4vyz6xrv73jwga34mkma3ifk9w9vrk41454hr5"; - }) - (fetchpatch { - url = "https://github.com/KaOSx/main/raw/1270b8080f37fb6cca562829a521991800b0a497/libmad/libmad.patch"; - sha256 = "0rysq0sn3dfdz6pa6bfqkmk4ymc4rzk5ym7p16dyk37sldg1pbzs"; - }) - (fetchpatch { - url = "https://github.com/KaOSx/main/raw/1270b8080f37fb6cca562829a521991800b0a497/libmad/amd64-64bit.diff"; - sha256 = "0mx56dmkbvw3zxnqd2hjng48q0d7q7473pns4n0ksdam29b0c5ar"; - }) - (fetchpatch { - name = "CVE-2017-8372-CVE-2017-8373.patch"; - url = "https://github.com/openwrt/packages/raw/openwrt-19.07/libs/libmad/patches/102-CVE-2017-8373-CVE-2017-8372-md-size.patch"; - sha256 = "0p6mkpn66h1ds8jvww28q4vlr58jwm58m9vb7pkvvyvy764agqnk"; - }) - (fetchpatch { - name = "CVE-2017-8374.patch"; - url = "https://github.com/openwrt/packages/raw/openwrt-19.07/libs/libmad/patches/101-CVE-2017-8374-length-check.patch"; - sha256 = "1j1ssxwmx9nfahzl62frbzck93xrjc2v3w30c12vmk29iflf1890"; - }) - ] - # optimize.diff is taken from https://projects.archlinux.org/svntogit/packages.git/tree/trunk/optimize.diff?h=packages/libmad - # It is included here in order to fix a build failure in Clang - # But it may be useful to fix other, currently unknown problems as well - ++ lib.optionals stdenv.cc.isClang [ - (fetchpatch { - url = "https://github.com/KaOSx/main/raw/1270b8080f37fb6cca562829a521991800b0a497/libmad/optimize.diff"; - sha256 = "0hcxzz9ql1fizyqbsgdchdwi7bvchfr72172j43hpyj53p0yabc6"; - }) - ]; - - # The -fforce-mem flag has been removed in GCC 4.3. - postPatch = '' - substituteInPlace configure.ac --replace "-fforce-mem" "" - substituteInPlace configure.ac --replace "arch=\"-march=i486\"" "" - ''; - - nativeBuildInputs = [ autoconf ]; - strictDeps = true; - preConfigure = "autoconf"; + nativeBuildInputs = [ + cmake + ninja + ]; + + cmakeFlags = [ (lib.cmakeBool "EXAMPLE" false) ]; passthru.tests = { inherit @@ -83,15 +49,20 @@ stdenv.mkDerivation (finalAttrs: { vlc ; ocaml-mad = ocamlPackages.mad; + pkg-cconfig = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + versionCheck = true; + }; }; __structuredAttrs = true; meta = { - homepage = "https://sourceforge.net/projects/mad/"; + homepage = "https://codeberg.org/tenacityteam/libmad"; description = "High-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2"; - license = lib.licenses.gpl2; + license = lib.licenses.gpl2Plus; maintainers = [ ]; + pkgConfigModules = [ "mad" ]; platforms = lib.platforms.unix; }; }) diff --git a/pkgs/by-name/li/libmsgraph/package.nix b/pkgs/by-name/li/libmsgraph/package.nix index 52e4b01fc4bb..51bb30f65ee5 100644 --- a/pkgs/by-name/li/libmsgraph/package.nix +++ b/pkgs/by-name/li/libmsgraph/package.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "libmsgraph"; - version = "0.3.4"; + version = "0.3.5"; outputs = [ "out" @@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/msgraph/${lib.versions.majorMinor finalAttrs.version}/msgraph-${finalAttrs.version}.tar.xz"; - hash = "sha256-BzHs5rArMu7/u72Y79x3vAPd0gZR7q46Q0Pwh5sE1sc="; + hash = "sha256-49rb9jjQIHBA9tpthS21FuRjQj2nEK9svDXQBXLxfZs="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/li/libmspub/package.nix b/pkgs/by-name/li/libmspub/package.nix index cab88cdc233e..95a94751a567 100644 --- a/pkgs/by-name/li/libmspub/package.nix +++ b/pkgs/by-name/li/libmspub/package.nix @@ -53,6 +53,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.mpl20; maintainers = [ ]; platforms = lib.platforms.all; - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; }) diff --git a/pkgs/by-name/li/libnl/package.nix b/pkgs/by-name/li/libnl/package.nix index 4e7ec50f0d16..7d010499a298 100644 --- a/pkgs/by-name/li/libnl/package.nix +++ b/pkgs/by-name/li/libnl/package.nix @@ -15,7 +15,7 @@ graphviz, mscgen, asciidoc, - sourceHighlight, + source-highlight, python3Packages, }: @@ -58,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: { graphviz mscgen asciidoc - sourceHighlight + source-highlight python3Packages.pygments ]; diff --git a/pkgs/by-name/li/libnotify/package.nix b/pkgs/by-name/li/libnotify/package.nix index d31ba706e0a8..9d71e6d6a59c 100644 --- a/pkgs/by-name/li/libnotify/package.nix +++ b/pkgs/by-name/li/libnotify/package.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { pname = "libnotify"; - version = "0.8.8"; + version = "0.8.9"; outputs = [ "out" @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://gnome/sources/libnotify/${lib.versions.majorMinor version}/libnotify-${version}.tar.xz"; - hash = "sha256-I0IO9hncLLWuutYT9II6L6QcB+Wh0FYo1A9uxLNb/d0="; + hash = "sha256-yQa7CEAn6lEvlKYPv8DMjU8X5LTVJb7TcNB6bYcUySM="; }; mesonFlags = [ diff --git a/pkgs/by-name/li/liboil/package.nix b/pkgs/by-name/li/liboil/package.nix index 62a9d328de65..a20cb91595c3 100644 --- a/pkgs/by-name/li/liboil/package.nix +++ b/pkgs/by-name/li/liboil/package.nix @@ -25,12 +25,6 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ pkg-config ]; - # fix "argb_paint_i386.c:53:Incorrect register `%rax' used with `l' suffix" - # errors - configureFlags = lib.optional ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 - ) "--build=x86_64"; - # fixes a cast in inline asm: easier than patching buildFlags = lib.optional stdenv.hostPlatform.isDarwin "CFLAGS=-fheinous-gnu-extensions"; diff --git a/pkgs/by-name/li/libpciaccess/package.nix b/pkgs/by-name/li/libpciaccess/package.nix index a9b96e07c577..8b41c2c172b5 100644 --- a/pkgs/by-name/li/libpciaccess/package.nix +++ b/pkgs/by-name/li/libpciaccess/package.nix @@ -56,6 +56,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Generic PCI access library"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libpciaccess"; diff --git a/pkgs/by-name/li/libpkg-config/package.nix b/pkgs/by-name/li/libpkg-config/package.nix new file mode 100644 index 000000000000..682174835d81 --- /dev/null +++ b/pkgs/by-name/li/libpkg-config/package.nix @@ -0,0 +1,49 @@ +{ + lib, + stdenv, + # Dependency of build2, so we must break cycle for this + build2-bootstrap, + darwin, + fetchurl, + enableShared ? !stdenv.hostPlatform.isStatic, + enableStatic ? !enableShared, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libpkg-config"; + version = "0.1.4"; + + src = fetchurl { + url = "https://pkg.cppget.org/1/alpha/libpkg-config/libpkg-config-${finalAttrs.version}.tar.gz"; + hash = "sha256-1WhB2D1W/piNU8dJB0V37ZiOU6CWneapq4mqS5ypoN0="; + }; + + nativeBuildInputs = [ + build2-bootstrap + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + darwin.DarwinTools + ]; + + __structuredAttrs = true; + strictDeps = true; + + # Should be true for anything built with build2, + # but especially important when bootstrapping + disallowedReferences = [ build2-bootstrap ]; + + build2ConfigureFlags = [ + "config.bin.lib=${build2-bootstrap.configSharedStatic enableShared enableStatic}" + ]; + + doCheck = true; + + meta = { + description = "Fork of libpkgconf for build2"; + homepage = "https://build2.org/"; + downloadPage = "https://github.com/build2/libpkg-config"; + license = lib.licenses.isc; + maintainers = with lib.maintainers; [ tmarkus ]; + platforms = lib.platforms.all; + }; +}) diff --git a/pkgs/by-name/li/libpkgconf/package.nix b/pkgs/by-name/li/libpkgconf/package.nix index 82685483cd77..0e703c50334d 100644 --- a/pkgs/by-name/li/libpkgconf/package.nix +++ b/pkgs/by-name/li/libpkgconf/package.nix @@ -2,22 +2,20 @@ lib, stdenv, fetchurl, - autoconf, - automake, - libtool, + meson, + ninja, removeReferencesTo, gitUpdater, - autoreconfHook, }: stdenv.mkDerivation (finalAttrs: { pname = "pkgconf"; - version = "2.5.1"; + version = "3.0.8"; # fetchFromGitHub isn't used because it's unavailable during bootstrapping src = fetchurl { url = "https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-${finalAttrs.version}.tar.gz"; - hash = "sha256-eXIbrcrRmH3q2cNgnrSHerm1iCHAa9rLgk8siJfBHyo="; + hash = "sha256-RPZ83agZLv7Nm+n43y/lTwh/jIQGLd/wAnEz+UVDv4o="; }; outputs = [ @@ -29,14 +27,12 @@ stdenv.mkDerivation (finalAttrs: { ]; nativeBuildInputs = [ - automake - autoconf - libtool + meson + ninja removeReferencesTo - autoreconfHook ]; - enableParallelBuilding = true; + strictDeps = true; # Debian has outputs like these too # (https://packages.debian.org/source/bullseye/pkgconf), so it is safe to @@ -64,6 +60,8 @@ stdenv.mkDerivation (finalAttrs: { rev-prefix = "pkgconf-"; }; + __structuredAttrs = true; + meta = { homepage = "https://github.com/pkgconf/pkgconf"; description = "Package compiler and linker metadata toolkit"; diff --git a/pkgs/by-name/li/libplist/package.nix b/pkgs/by-name/li/libplist/package.nix index 91b60fc95f71..66a78b3d711c 100644 --- a/pkgs/by-name/li/libplist/package.nix +++ b/pkgs/by-name/li/libplist/package.nix @@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: { ]; # Tests segfault on aarch64-darwin: https://hydra.nixos.org/build/323410364 - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; postFixup = lib.optionalString enablePython '' moveToOutput "lib/${python3.libPrefix}" "$py" diff --git a/pkgs/by-name/li/libpsl/package.nix b/pkgs/by-name/li/libpsl/package.nix index bd488b29599c..87c5bc3f80df 100644 --- a/pkgs/by-name/li/libpsl/package.nix +++ b/pkgs/by-name/li/libpsl/package.nix @@ -1,53 +1,46 @@ { lib, stdenv, - fetchurl, - fetchpatch, - autoreconfHook, + fetchFromGitHub, + buildPackages, docbook_xsl, docbook_xml_dtd_43, gtk-doc, - lzip, + meson, + ninja, + pkg-config, libidn2, libunistring, libxslt, - pkg-config, - buildPackages, publicsuffix-list, }: stdenv.mkDerivation (finalAttrs: { pname = "libpsl"; - version = "0.21.5"; + version = "0.23.3"; - src = fetchurl { - url = "https://github.com/rockdaboot/libpsl/releases/download/${finalAttrs.version}/libpsl-${finalAttrs.version}.tar.lz"; - hash = "sha256-mp9qjG7bplDPnqVUdc0XLdKEhzFoBOnHMgLZdXLNOi0="; + src = fetchFromGitHub { + owner = "rockdaboot"; + repo = "libpsl"; + tag = finalAttrs.version; + hash = "sha256-Me22tepjCn1IvILw/Q286QemXs+B5q/h8xxtUs6bLss="; }; - patches = [ - # Can be dropped on next release, or if we switch to Meson for - # this package. Test pkgsStatic.curl still builds. - (fetchpatch { - name = "static.patch"; - url = "https://github.com/rockdaboot/libpsl/commit/490bd6f98a2addcade55028ea60c36cce07e21e4.patch"; - hash = "sha256-7Uu9gaVuA9Aly2mmnhUVgv2BYQTSBODJ2rDl5xp0uVY="; - }) - ]; - outputs = [ "out" "dev" ]; + depsBuildBuild = [ buildPackages.stdenv.cc ]; + nativeBuildInputs = [ - autoreconfHook - docbook_xsl docbook_xml_dtd_43 + docbook_xsl gtk-doc - lzip - pkg-config libxslt + meson + ninja + pkg-config ]; buildInputs = [ @@ -62,27 +55,19 @@ stdenv.mkDerivation (finalAttrs: { publicsuffix-list ]; + mesonFlags = [ + (lib.mesonBool "docs" true) + (lib.mesonOption "psl_distfile" "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat") + (lib.mesonOption "psl_file" "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat") + (lib.mesonOption "psl_testfile" "${publicsuffix-list}/share/publicsuffix/test_psl.txt") + ]; + # bin/psl-make-dafsa brings a large runtime closure through python3 # use the libpsl-with-scripts package if you need this postInstall = '' rm $out/bin/psl-make-dafsa $out/share/man/man1/psl-make-dafsa* ''; - preAutoreconf = '' - gtkdocize - ''; - - configureFlags = [ - # "--enable-gtk-doc" - "--enable-man" - "--with-psl-distfile=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat" - "--with-psl-file=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat" - "--with-psl-testfile=${publicsuffix-list}/share/publicsuffix/test_psl.txt" - "PYTHON=${lib.getExe buildPackages.python3}" - ]; - - enableParallelBuilding = true; - doCheck = true; __structuredAttrs = true; diff --git a/pkgs/by-name/li/libpthread-stubs/package.nix b/pkgs/by-name/li/libpthread-stubs/package.nix index c55a3fb36b3b..d5eeed0b2c99 100644 --- a/pkgs/by-name/li/libpthread-stubs/package.nix +++ b/pkgs/by-name/li/libpthread-stubs/package.nix @@ -15,6 +15,8 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-WdpWbezOunwqeXCkoDtI2ZBfEmL/lEEKZJIk4z0kQrw="; }; + strictDeps = true; + passthru = { updateScript = writeScript "update-${finalAttrs.pname}" '' #!/usr/bin/env nix-shell @@ -29,6 +31,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Provides a pkg-config file `pthread-stubs.pc` containing the Cflags/Libs flags applicable to programs/libraries that use only lightweight pthread API"; homepage = "https://gitlab.freedesktop.org/xorg/lib/pthread-stubs"; diff --git a/pkgs/by-name/li/libraw/package.nix b/pkgs/by-name/li/libraw/package.nix index 1cf3f9046b55..f9253189c323 100644 --- a/pkgs/by-name/li/libraw/package.nix +++ b/pkgs/by-name/li/libraw/package.nix @@ -38,6 +38,8 @@ stdenv.mkDerivation (finalAttrs: { pkg-config ]; + strictDeps = true; + enableParallelBuilding = true; postPatch = lib.optionalString stdenv.hostPlatform.isFreeBSD '' @@ -50,6 +52,8 @@ stdenv.mkDerivation (finalAttrs: { inherit (python3.pkgs) rawkit; }; + __structuredAttrs = true; + meta = { description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)"; homepage = "https://www.libraw.org/"; diff --git a/pkgs/by-name/li/libredirect/package.nix b/pkgs/by-name/li/libredirect/package.nix index 2981d4d41a20..a8102b2861d9 100644 --- a/pkgs/by-name/li/libredirect/package.nix +++ b/pkgs/by-name/li/libredirect/package.nix @@ -43,7 +43,7 @@ else runHook preBuild ${ - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then + if stdenv.hostPlatform.isDarwin then '' # We need the unwrapped binutils and clang: # We also want to build a fat library with x86_64, arm64, arm64e in there. @@ -93,7 +93,7 @@ else install -vD "$libName" "$out/lib/$libName" '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' # dylib will be rejected unless dylib rpath gets explicitly set install_name_tool \ -change $libName $out/lib/$libName \ diff --git a/pkgs/by-name/li/librelane/package.nix b/pkgs/by-name/li/librelane/package.nix index d939c3407676..7705d66101c5 100644 --- a/pkgs/by-name/li/librelane/package.nix +++ b/pkgs/by-name/li/librelane/package.nix @@ -25,7 +25,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "librelane"; version = "3.0.17"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "librelane"; diff --git a/pkgs/by-name/li/librsvg/package.nix b/pkgs/by-name/li/librsvg/package.nix index 0500a7ee115b..57f0dd709127 100644 --- a/pkgs/by-name/li/librsvg/package.nix +++ b/pkgs/by-name/li/librsvg/package.nix @@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "librsvg"; - version = "2.62.3"; + version = "2.63.0"; outputs = [ "out" @@ -62,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/librsvg/${lib.versions.majorMinor finalAttrs.version}/librsvg-${finalAttrs.version}.tar.xz"; - hash = "sha256-frRJsnIqdoAhNW9m3+4yAsIptU7U5qcM5AwJDpf/FvI="; + hash = "sha256-yrf30TJvsAHk6583mQ3mbUV4pfSEZVB0caaTItizJuM="; }; # FIXME: This patch should be made unconditional the next time librsvg is @@ -76,7 +76,7 @@ stdenv.mkDerivation (finalAttrs: { cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) src; name = "librsvg-deps-${finalAttrs.version}"; - hash = "sha256-9ubfIl9R2BdcAWn7i050KBbb4cMdlakvrKdnjpZCQjA="; + hash = "sha256-QJjP4VpIl/0vXjvsOQCkh+0zsKanEva9A1YlkGi3BL4="; dontConfigure = true; }; @@ -187,6 +187,7 @@ stdenv.mkDerivation (finalAttrs: { let updateSource = gnome.updateScript { packageName = "librsvg"; + versionPolicy = "ninety-micro-unstable"; }; updateLockfile = { diff --git a/pkgs/by-name/li/libsecret/package.nix b/pkgs/by-name/li/libsecret/package.nix index 0926483b7cd7..c21d84bebbc2 100644 --- a/pkgs/by-name/li/libsecret/package.nix +++ b/pkgs/by-name/li/libsecret/package.nix @@ -71,7 +71,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "libsecret"; - version = "0.21.7"; + version = "0.21.8.2"; outputs = [ "out" @@ -81,7 +81,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/libsecret/${lib.versions.majorMinor finalAttrs.version}/libsecret-${finalAttrs.version}.tar.xz"; - hash = "sha256-a0UuR1BZCitWF63EACbyjS9JA94V8SUOHRxAv9aO1V4="; + hash = "sha256-FClIM5xblx2PaoxwmVIfb9MZtv5z0mlLTm0zEO0otuY="; }; depsBuildBuild = [ @@ -129,6 +129,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonBool "tpm2" withTpm2Tss) (lib.mesonOption "bashcompdir" "share/bash-completion/completions") (lib.mesonOption "crypto" "gnutls") + # interactive test environment relies on dbus-run-session + (lib.mesonEnable "test_setup" finalAttrs.finalPackage.doCheck) ]; doCheck = stdenv.hostPlatform.isLinux && withIntrospection; diff --git a/pkgs/by-name/li/libshumate/package.nix b/pkgs/by-name/li/libshumate/package.nix index 1070378b3b8a..1cf4ebb2eb68 100644 --- a/pkgs/by-name/li/libshumate/package.nix +++ b/pkgs/by-name/li/libshumate/package.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "libshumate"; - version = "1.6.3"; + version = "1.7.0"; outputs = [ "out" @@ -34,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/libshumate/${lib.versions.majorMinor finalAttrs.version}/libshumate-${finalAttrs.version}.tar.xz"; - hash = "sha256-/RXJE5bc2C/OMCFkhUGqiR5xpr3e/8A9OFl1gKfajKE="; + hash = "sha256-OJbMS2p7+DFBwn3yPOSM3WhGdgO8a3ZJYDB83LvvgOU="; }; depsBuildBuild = [ diff --git a/pkgs/by-name/li/libslirp/package.nix b/pkgs/by-name/li/libslirp/package.nix index eed59bc2e4b2..cb5667333522 100644 --- a/pkgs/by-name/li/libslirp/package.nix +++ b/pkgs/by-name/li/libslirp/package.nix @@ -10,14 +10,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "libslirp"; - version = "4.9.5"; + version = "4.9.6"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "slirp"; repo = "libslirp"; tag = "v${finalAttrs.version}"; - hash = "sha256-iWu3/Klsm8e9MH147BJhn9Vqyneq5ROqPvll1cnieL0="; + hash = "sha256-nfR5eQrcpbkmn2tx/8l649NVPOsIFSFSBkW/vw0meCM="; }; __structuredAttrs = true; diff --git a/pkgs/by-name/li/libsm/package.nix b/pkgs/by-name/li/libsm/package.nix index f214efa55cc4..767ee5402f9f 100644 --- a/pkgs/by-name/li/libsm/package.nix +++ b/pkgs/by-name/li/libsm/package.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "X Session Management Library"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libsm"; diff --git a/pkgs/by-name/li/libsndfile/package.nix b/pkgs/by-name/li/libsndfile/package.nix index 9fadf930ba0e..c8d8f217dcb0 100644 --- a/pkgs/by-name/li/libsndfile/package.nix +++ b/pkgs/by-name/li/libsndfile/package.nix @@ -43,6 +43,28 @@ stdenv.mkDerivation (finalAttrs: { url = "https://github.com/libsndfile/libsndfile/commit/2251737b3b175925684ec0d37029ff4cb521d302.patch"; hash = "sha256-LaeptEicnjpVBExlK4dNMlN8+AAJhW8dIvemF6S4W2M="; }) + # Fix an out-of-bounds read in `vorbis_analysis_wrote` (CVE-2024-50612) + # https://github.com/libsndfile/libsndfile/pull/1045 + (fetchpatch { + name = "CVE-2024-50612.patch"; + url = "https://github.com/libsndfile/libsndfile/commit/4755f5bd7854611d92ad0f1295587b439f9950ba.patch"; + hash = "sha256-PtDNAOxzy0f6YmK84uznh+3qQF3bbbKeZTNCs0I7lXA="; + }) + # Fix integer overflows in the IMA ADPCM codec. + # The first patch fixes the AIFF path and is a part of the CVE-2022-33065 fixes. + # The second patch fixes the WAV and close paths (CVE-2026-37555). + # https://github.com/libsndfile/libsndfile/pull/979 + (fetchpatch { + name = "ima-adpcm-int-overflow-aiff.patch"; + url = "https://github.com/libsndfile/libsndfile/commit/9a829113c88a51e57c1e46473e90609e4b7df151.patch"; + hash = "sha256-gUCNPSj/F5M9QhkSPwhFV7r0tm9eIWSzEltWtIp/3cE="; + }) + # https://github.com/libsndfile/libsndfile/pull/1123 + (fetchpatch { + name = "CVE-2026-37555.patch"; + url = "https://github.com/libsndfile/libsndfile/commit/cdadf9a65fdc1f28da9d235eb443d5f5e57010d2.patch"; + hash = "sha256-GxyE9rYHFVT0RXjHYzHyrooqboa9SZKIR8kw1oEHffI="; + }) ]; nativeBuildInputs = [ @@ -61,6 +83,8 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]; + strictDeps = true; + enableParallelBuilding = true; outputs = [ @@ -109,6 +133,8 @@ stdenv.mkDerivation (finalAttrs: { lame = (lame.override { sndfileFileIOSupport = true; }); }; + __structuredAttrs = true; + meta = { description = "C library for reading and writing files containing sampled sound"; homepage = "https://libsndfile.github.io/libsndfile/"; diff --git a/pkgs/by-name/li/libsodium/package.nix b/pkgs/by-name/li/libsodium/package.nix index eef03b5648f1..7b4fe092ad96 100644 --- a/pkgs/by-name/li/libsodium/package.nix +++ b/pkgs/by-name/li/libsodium/package.nix @@ -9,13 +9,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "libsodium"; - version = "1.0.22-unstable-2026-09-28"; + version = "1.0.22-unstable-2026-10-15"; + + strictDeps = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "jedisct1"; repo = "libsodium"; - rev = "9dcaa81943641565585482c20f2a211200aa1d89"; - hash = "sha256-QQlxeUgQDdFweGqsUOso+II64zMfjmmB2sUuF3Vu53o="; + rev = "dc7ca095739fe15abf8fdb6122f333da54cb7f7b"; + hash = "sha256-krfwT/OFcxRGXMvnLSFPJqDUnfqygHGp0TSFHbpV0TA="; }; outputs = [ diff --git a/pkgs/by-name/li/libtiff/package.nix b/pkgs/by-name/li/libtiff/package.nix index eb0aa4320537..ad8964f8ddd1 100644 --- a/pkgs/by-name/li/libtiff/package.nix +++ b/pkgs/by-name/li/libtiff/package.nix @@ -42,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitLab { owner = "libtiff"; repo = "libtiff"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-60Lpg5WRfWMzlOoOUA+C6KLlYIZ+3BjXidOVqv4M2GA="; }; @@ -96,6 +96,8 @@ stdenv.mkDerivation (finalAttrs: { lerc ]; + strictDeps = true; + cmakeFlags = [ "-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON" ]; @@ -126,6 +128,8 @@ stdenv.mkDerivation (finalAttrs: { updateScript = nix-update-script { }; }; + __structuredAttrs = true; + meta = { description = "Library and utilities for working with the TIFF image file format"; homepage = "https://libtiff.gitlab.io/libtiff"; diff --git a/pkgs/by-name/li/libtracefs/package.nix b/pkgs/by-name/li/libtracefs/package.nix index 69cac9e47593..4019d55811d4 100644 --- a/pkgs/by-name/li/libtracefs/package.nix +++ b/pkgs/by-name/li/libtracefs/package.nix @@ -8,7 +8,7 @@ xmlto, docbook_xml_dtd_45, docbook_xsl, - sourceHighlight, + source-highlight, meson, flex, bison, @@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: { xmlto docbook_xml_dtd_45 docbook_xsl - sourceHighlight + source-highlight flex bison ]; diff --git a/pkgs/by-name/li/libx11/package.nix b/pkgs/by-name/li/libx11/package.nix index 08e2b297af61..bba2cd52eac7 100644 --- a/pkgs/by-name/li/libx11/package.nix +++ b/pkgs/by-name/li/libx11/package.nix @@ -67,6 +67,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Core X11 protocol client library (aka \"Xlib\")"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libx11"; diff --git a/pkgs/by-name/li/libxau/package.nix b/pkgs/by-name/li/libxau/package.nix index e9c67d2beb87..5e724f01b45a 100644 --- a/pkgs/by-name/li/libxau/package.nix +++ b/pkgs/by-name/li/libxau/package.nix @@ -37,6 +37,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Functions for handling Xauthority files and entries."; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxau"; diff --git a/pkgs/by-name/li/libxcb-cursor/package.nix b/pkgs/by-name/li/libxcb-cursor/package.nix index c946cb1013d7..86d027c9bec2 100644 --- a/pkgs/by-name/li/libxcb-cursor/package.nix +++ b/pkgs/by-name/li/libxcb-cursor/package.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XCB port of libxcursor"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-cursor"; diff --git a/pkgs/by-name/li/libxcb-errors/package.nix b/pkgs/by-name/li/libxcb-errors/package.nix index 3d99837da508..33b7329ed88c 100644 --- a/pkgs/by-name/li/libxcb-errors/package.nix +++ b/pkgs/by-name/li/libxcb-errors/package.nix @@ -51,6 +51,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XCB utility library that gives human readable names to error, event & request codes"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-errors"; diff --git a/pkgs/by-name/li/libxcb-image/package.nix b/pkgs/by-name/li/libxcb-image/package.nix index 537b45f2b155..cdadf9569cc2 100644 --- a/pkgs/by-name/li/libxcb-image/package.nix +++ b/pkgs/by-name/li/libxcb-image/package.nix @@ -51,6 +51,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XCB port of Xlib's XImage and XShmImage functions."; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-image"; diff --git a/pkgs/by-name/li/libxcb-keysyms/package.nix b/pkgs/by-name/li/libxcb-keysyms/package.nix index 09015dbdfec7..e372db79c418 100644 --- a/pkgs/by-name/li/libxcb-keysyms/package.nix +++ b/pkgs/by-name/li/libxcb-keysyms/package.nix @@ -45,6 +45,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Standard X key constants and conversion to/from keycodes"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-keysyms"; diff --git a/pkgs/by-name/li/libxcb-render-util/package.nix b/pkgs/by-name/li/libxcb-render-util/package.nix index b294202e9c43..5061a659ea53 100644 --- a/pkgs/by-name/li/libxcb-render-util/package.nix +++ b/pkgs/by-name/li/libxcb-render-util/package.nix @@ -45,6 +45,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XCB convenience functions for the Render extension"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util"; diff --git a/pkgs/by-name/li/libxcb-util/package.nix b/pkgs/by-name/li/libxcb-util/package.nix index 136c827b0f95..f1d2b66e5b5d 100644 --- a/pkgs/by-name/li/libxcb-util/package.nix +++ b/pkgs/by-name/li/libxcb-util/package.nix @@ -39,6 +39,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XCB utility libraries"; longDescription = '' diff --git a/pkgs/by-name/li/libxcb-wm/package.nix b/pkgs/by-name/li/libxcb-wm/package.nix index 874c440bb569..950b8b315f74 100644 --- a/pkgs/by-name/li/libxcb-wm/package.nix +++ b/pkgs/by-name/li/libxcb-wm/package.nix @@ -49,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XCB client and window-manager helpers for ICCCM & EWMH."; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-wm"; diff --git a/pkgs/by-name/li/libxcb/package.nix b/pkgs/by-name/li/libxcb/package.nix index b56bec0672e1..adc420cbcf94 100644 --- a/pkgs/by-name/li/libxcb/package.nix +++ b/pkgs/by-name/li/libxcb/package.nix @@ -61,6 +61,8 @@ stdenv.mkDerivation (finalAttrs: { NIX_CFLAGS_COMPILE = toString [ "-Wno-incompatible-pointer-types" ]; }; + __structuredAttrs = true; + meta = { description = "C interface to the X Window System protocol"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb"; diff --git a/pkgs/by-name/li/libxdmcp/package.nix b/pkgs/by-name/li/libxdmcp/package.nix index 974b02424756..2df4f8c090e1 100644 --- a/pkgs/by-name/li/libxdmcp/package.nix +++ b/pkgs/by-name/li/libxdmcp/package.nix @@ -39,6 +39,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "X Display Manager Control Protocol library"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxdmcp"; diff --git a/pkgs/by-name/li/libxext/package.nix b/pkgs/by-name/li/libxext/package.nix index 879d0c6233d9..5d9853247085 100644 --- a/pkgs/by-name/li/libxext/package.nix +++ b/pkgs/by-name/li/libxext/package.nix @@ -54,6 +54,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Xlib-based library for common extensions to the X11 protocol"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxext"; diff --git a/pkgs/by-name/li/libxfixes/package.nix b/pkgs/by-name/li/libxfixes/package.nix index 995e1632509c..8e3e987cadbe 100644 --- a/pkgs/by-name/li/libxfixes/package.nix +++ b/pkgs/by-name/li/libxfixes/package.nix @@ -43,6 +43,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Xlib-based library for the XFIXES Extension"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxfixes"; diff --git a/pkgs/by-name/li/libxfont_2/package.nix b/pkgs/by-name/li/libxfont_2/package.nix index beb3abd0d329..c36f445bfe43 100644 --- a/pkgs/by-name/li/libxfont_2/package.nix +++ b/pkgs/by-name/li/libxfont_2/package.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { inherit (libxfont_1.meta) description homepage license; maintainers = [ ]; diff --git a/pkgs/by-name/li/libxi/package.nix b/pkgs/by-name/li/libxi/package.nix index cbde12862a42..a6cb61620ef3 100644 --- a/pkgs/by-name/li/libxi/package.nix +++ b/pkgs/by-name/li/libxi/package.nix @@ -61,6 +61,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "library for the X Input Extension"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxi"; diff --git a/pkgs/by-name/li/libxkbfile/package.nix b/pkgs/by-name/li/libxkbfile/package.nix index 4dd6270b4793..63b22e733bda 100644 --- a/pkgs/by-name/li/libxkbfile/package.nix +++ b/pkgs/by-name/li/libxkbfile/package.nix @@ -49,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XKB file handling routines"; longDescription = '' diff --git a/pkgs/by-name/li/libxpm/package.nix b/pkgs/by-name/li/libxpm/package.nix index 53449eb7aeea..73bdd7f69c4f 100644 --- a/pkgs/by-name/li/libxpm/package.nix +++ b/pkgs/by-name/li/libxpm/package.nix @@ -52,6 +52,8 @@ stdenv.mkDerivation (finalAttrs: { XPM_PATH_UNCOMPRESS = lib.makeBinPath [ gzip ]; }; + __structuredAttrs = true; + passthru = { updateScript = writeScript "update-${finalAttrs.pname}" '' #!/usr/bin/env nix-shell diff --git a/pkgs/by-name/li/libxrender/package.nix b/pkgs/by-name/li/libxrender/package.nix index a58bc442cf75..0b1b4f1ebcfb 100644 --- a/pkgs/by-name/li/libxrender/package.nix +++ b/pkgs/by-name/li/libxrender/package.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Xlib library for the Render Extension to the X11 protocol"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxrender"; diff --git a/pkgs/by-name/li/libxshmfence/package.nix b/pkgs/by-name/li/libxshmfence/package.nix index 1d771b05060b..47509ac913fc 100644 --- a/pkgs/by-name/li/libxshmfence/package.nix +++ b/pkgs/by-name/li/libxshmfence/package.nix @@ -39,6 +39,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Shared memory 'SyncFence' synchronization primitive library"; longDescription = '' diff --git a/pkgs/by-name/li/libxtst/package.nix b/pkgs/by-name/li/libxtst/package.nix index 6cd9ababca26..cd0f84d66d45 100644 --- a/pkgs/by-name/li/libxtst/package.nix +++ b/pkgs/by-name/li/libxtst/package.nix @@ -12,11 +12,11 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "libxtst"; - version = "1.2.5"; + version = "1.2.6"; src = fetchurl { url = "mirror://xorg/individual/lib/libXtst-${finalAttrs.version}.tar.xz"; - hash = "sha256-tQ1MJblwCadEcGwQOcWY9NjmSRDJ/eOBmU4criNdkkI="; + hash = "sha256-+U8LN8B9gNh38+2iwkBcx+YqqYQvYxA1SqNJ49ZqT+U="; }; strictDeps = true; @@ -42,6 +42,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "Library for the XTEST and RECORD X11 extensions"; longDescription = '' diff --git a/pkgs/by-name/li/libyaml/package.nix b/pkgs/by-name/li/libyaml/package.nix index 383201dad3af..a979fb7f3209 100644 --- a/pkgs/by-name/li/libyaml/package.nix +++ b/pkgs/by-name/li/libyaml/package.nix @@ -23,6 +23,10 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ autoreconfHook ]; + strictDeps = true; + + __structuredAttrs = true; + meta = { homepage = "https://pyyaml.org/"; description = "YAML 1.1 parser and emitter written in C"; diff --git a/pkgs/by-name/li/libzip/package.nix b/pkgs/by-name/li/libzip/package.nix index daaa09933718..6daf1d200a04 100644 --- a/pkgs/by-name/li/libzip/package.nix +++ b/pkgs/by-name/li/libzip/package.nix @@ -44,6 +44,8 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals withOpenssl [ openssl ] ++ lib.optionals withZstd [ zstd ]; + strictDeps = true; + # Don't build the regression tests because they don't build with # pkgsStatic and are not executed anyway. cmakeFlags = [ "-DBUILD_REGRESS=0" ]; @@ -55,6 +57,8 @@ stdenv.mkDerivation (finalAttrs: { passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + __structuredAttrs = true; + meta = { homepage = "https://libzip.org/"; description = "C library for reading, creating and modifying zip archives"; diff --git a/pkgs/by-name/li/lichess-external-engine/package.nix b/pkgs/by-name/li/lichess-external-engine/package.nix index 5f4b459571c4..5bb1b00e08b3 100644 --- a/pkgs/by-name/li/lichess-external-engine/package.nix +++ b/pkgs/by-name/li/lichess-external-engine/package.nix @@ -16,8 +16,6 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-kelpSM7pfeIOXYOug/YkAgULYMyeDhm1fJX5v1n+vKE="; }; - __structuredAttrs = true; - dependencies = with python3Packages; [ requests ]; diff --git a/pkgs/by-name/li/lighthouse/package.nix b/pkgs/by-name/li/lighthouse/package.nix index b4194ccb81c6..5699b77e4aab 100644 --- a/pkgs/by-name/li/lighthouse/package.nix +++ b/pkgs/by-name/li/lighthouse/package.nix @@ -320,7 +320,7 @@ rustPlatform.buildRustPackage rec { "--skip=move_validators::test::two_validators_move_one_where_one_is_a_duplicate" "--skip=move_validators::test::two_validators_move_one_with_identical_password_files" ] - ++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ "--skip=subnet_service::tests::attestation_service::test_subscribe_same_subnet_several_slots_apart" "--skip=subnet_service::tests::sync_committee_service::same_subscription_with_lower_until_epoch" "--skip=subnet_service::tests::sync_committee_service::subscribe_and_unsubscribe" diff --git a/pkgs/by-name/li/linecast/package.nix b/pkgs/by-name/li/linecast/package.nix index d8db8e609d4c..497acd864d87 100644 --- a/pkgs/by-name/li/linecast/package.nix +++ b/pkgs/by-name/li/linecast/package.nix @@ -11,7 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "linecast"; version = "2.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ashuttl"; diff --git a/pkgs/by-name/li/link-grammar/package.nix b/pkgs/by-name/li/link-grammar/package.nix index d72a3f3f9555..4a1326da7d0b 100644 --- a/pkgs/by-name/li/link-grammar/package.nix +++ b/pkgs/by-name/li/link-grammar/package.nix @@ -57,8 +57,7 @@ let export DYLD_LIBRARY_PATH=$(pwd)/link-grammar/.libs ''; - # multi-dict test randomly fails on x86_64-darwin - doCheck = stdenv.hostPlatform.system != "x86_64-darwin"; + doCheck = true; passthru.tests = { quick = diff --git a/pkgs/by-name/li/linkding/package.nix b/pkgs/by-name/li/linkding/package.nix index 5340a8b8ff8e..c621bfa2ca1b 100644 --- a/pkgs/by-name/li/linkding/package.nix +++ b/pkgs/by-name/li/linkding/package.nix @@ -87,8 +87,6 @@ python.pkgs.buildPythonApplication (finalAttrs: { hash = "sha256-TvcUD4GHQCjIk3nxGi/X82NECTsecUiK/axITrsNyVM="; }; - __structuredAttrs = true; - build-system = with python.pkgs; [ setuptools ]; diff --git a/pkgs/by-name/ll/lldap/package.nix b/pkgs/by-name/ll/lldap/package.nix index 36b8a001853b..dc7c33ea1575 100644 --- a/pkgs/by-name/ll/lldap/package.nix +++ b/pkgs/by-name/ll/lldap/package.nix @@ -3,6 +3,9 @@ fetchFromGitHub, lib, makeWrapper, + pkg-config, + sqlite, + zstd, nixosTests, rustPlatform, rustc, @@ -43,7 +46,16 @@ rustPlatform.buildRustPackage (finalAttrs: { "lldap_set_password" ]; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ + makeWrapper + pkg-config + ]; + + buildInputs = [ + sqlite + zstd + ]; + postInstall = '' wrapProgram $out/bin/lldap \ --set LLDAP_ASSETS_PATH ${finalAttrs.finalPackage.frontend} diff --git a/pkgs/by-name/ll/llhttp/package.nix b/pkgs/by-name/ll/llhttp/package.nix index a1909b67b458..d4d5c392e5c4 100644 --- a/pkgs/by-name/ll/llhttp/package.nix +++ b/pkgs/by-name/ll/llhttp/package.nix @@ -30,6 +30,8 @@ stdenv.mkDerivation (finalAttrs: { validatePkgConfig ]; + strictDeps = true; + cmakeFlags = [ (lib.cmakeBool "LLHTTP_BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "LLHTTP_BUILD_STATIC_LIBS" stdenv.hostPlatform.isStatic) @@ -46,6 +48,8 @@ stdenv.mkDerivation (finalAttrs: { }; }; + __structuredAttrs = true; + meta = { description = "Port of http_parser to llparse"; homepage = "https://llhttp.org/"; diff --git a/pkgs/by-name/lo/localsearch/package.nix b/pkgs/by-name/lo/localsearch/package.nix index 6a67db7643aa..25bf56d319d9 100644 --- a/pkgs/by-name/lo/localsearch/package.nix +++ b/pkgs/by-name/lo/localsearch/package.nix @@ -48,11 +48,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "localsearch"; - version = "3.11.1"; + version = "3.12.0"; src = fetchurl { url = "mirror://gnome/sources/localsearch/${lib.versions.majorMinor finalAttrs.version}/localsearch-${finalAttrs.version}.tar.xz"; - hash = "sha256-ezmmwoqKzysXLxWy+17nx6N2TER8L0oUyqI5t+vmGUI="; + hash = "sha256-S/RUQM56iZ8uyk0gND0x/GIPoqP+U7uSneJEMFMw6TA="; }; patches = [ @@ -116,6 +116,8 @@ stdenv.mkDerivation (finalAttrs: { mesonFlags = [ # TODO: tests do not like our sandbox "-Dfunctional_tests=false" + # avformat (from ffmpeg) and libmediainfo are interchangable + "-Dlibmediainfo=disabled" ] ++ lib.optionals (!stdenv.hostPlatform.isLinux) [ "-Dbattery_detection=none" diff --git a/pkgs/by-name/lo/loupe/package.nix b/pkgs/by-name/lo/loupe/package.nix index c5befdebb201..0c3afe5afdf7 100644 --- a/pkgs/by-name/lo/loupe/package.nix +++ b/pkgs/by-name/lo/loupe/package.nix @@ -11,7 +11,6 @@ rustc, wrapGAppsHook4, gtk4, - lcms2, libadwaita, libgweather, libseccomp, @@ -25,16 +24,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "loupe"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/loupe/${lib.versions.major finalAttrs.version}/loupe-${finalAttrs.version}.tar.xz"; - hash = "sha256-euT7rl4ZMWqmQMVvgNxaeRRIpi3Y8P8G4ppYutgTqZQ="; + hash = "sha256-E/qZkFZe+ReQL3d8/OCRq2CtuKEUqfbMonTfxcCq5mE="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-I4z5qjX10AUuwk+JdX/1ZU0uCAVPQj8HkEc+n9aMczE="; + hash = "sha256-rq89XiQdOTVLTxrt8PhDC8LdXCaELIDHiwJu+teu6bY="; }; postPatch = '' @@ -60,7 +59,6 @@ stdenv.mkDerivation (finalAttrs: { libglycin.setupHook glycin-loaders gtk4 - lcms2 libadwaita libgweather libseccomp diff --git a/pkgs/by-name/lp/lp_solve/package.nix b/pkgs/by-name/lp/lp_solve/package.nix index 4274eb570642..908e69dc2203 100644 --- a/pkgs/by-name/lp/lp_solve/package.nix +++ b/pkgs/by-name/lp/lp_solve/package.nix @@ -29,15 +29,12 @@ stdenv.mkDerivation (finalAttrs: { cctools fixDarwinDylibNames ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; env = { NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int"; - } - // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { - NIX_LDFLAGS = "-headerpad_max_install_names"; }; dontConfigure = true; diff --git a/pkgs/by-name/ls/lsd/package.nix b/pkgs/by-name/ls/lsd/package.nix index 1a7a72cdf9ec..c7f7dfb9085c 100644 --- a/pkgs/by-name/ls/lsd/package.nix +++ b/pkgs/by-name/ls/lsd/package.nix @@ -4,6 +4,8 @@ rustPlatform, installShellFiles, pandoc, + pkg-config, + libgit2, testers, lsd, git, @@ -25,6 +27,11 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ installShellFiles pandoc + pkg-config + ]; + + buildInputs = [ + libgit2 ]; postInstall = '' diff --git a/pkgs/by-name/ls/lsplug/package.nix b/pkgs/by-name/ls/lsplug/package.nix index 23ac2a7f9adc..d576dc4aceb8 100644 --- a/pkgs/by-name/ls/lsplug/package.nix +++ b/pkgs/by-name/ls/lsplug/package.nix @@ -24,8 +24,6 @@ python3Packages.buildPythonApplication (finalAttrs: { "lsplug" ]; - __structuredAttrs = true; - meta = { description = "Replacement for lsusb that shows more useful info and less useless info"; homepage = "https://git.sr.ht/~martijnbraam/lsplug"; diff --git a/pkgs/by-name/lu/luakit/package.nix b/pkgs/by-name/lu/luakit/package.nix index be9fbcc3be63..dd47bd2dd917 100644 --- a/pkgs/by-name/lu/luakit/package.nix +++ b/pkgs/by-name/lu/luakit/package.nix @@ -77,8 +77,8 @@ stdenv.mkDerivation (finalAttrs: { '' gappsWrapperArgs+=( --prefix XDG_CONFIG_DIRS : "$out/etc/xdg" - --prefix LUA_PATH ';' "${luaKitPath};$LUA_PATH" - --prefix LUA_CPATH ';' "$LUA_CPATH" + --prefix-unchecked LUA_PATH ';' "${luaKitPath};$LUA_PATH" + --prefix-unchecked LUA_CPATH ';' "$LUA_CPATH" ) ''; diff --git a/pkgs/by-name/lu/lucky-commit/package.nix b/pkgs/by-name/lu/lucky-commit/package.nix index e18b7ed7de1e..46e497355367 100644 --- a/pkgs/by-name/lu/lucky-commit/package.nix +++ b/pkgs/by-name/lu/lucky-commit/package.nix @@ -21,7 +21,7 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-zuWPkaYltxOOLaR6NTVkf1WbKzUQByml45jNL+e5UJ0="; # LLVM Apple assembler rejects `:lo12:` combined with `@PAGEOFF`. - postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace "$cargoDepsCopy"/*/sha1-asm-*/src/aarch64_apple.S \ --replace-fail "#:lo12:.K0@PAGEOFF" ".K0@PAGEOFF" \ --replace-fail "#:lo12:.K1@PAGEOFF" ".K1@PAGEOFF" \ diff --git a/pkgs/by-name/lu/lufus/package.nix b/pkgs/by-name/lu/lufus/package.nix index 200011a73dc1..c721307d6601 100644 --- a/pkgs/by-name/lu/lufus/package.nix +++ b/pkgs/by-name/lu/lufus/package.nix @@ -37,8 +37,6 @@ python313Packages.buildPythonApplication (finalAttrs: { copyDesktopItems ]; - __structuredAttrs = true; - postInstall = '' makeWrapper ${python313Packages.python.interpreter} $out/bin/lufus \ --add-flags "-m lufus" \ diff --git a/pkgs/by-name/lu/lumen/package.nix b/pkgs/by-name/lu/lumen/package.nix index 331ab3633049..c437cf7ec357 100644 --- a/pkgs/by-name/lu/lumen/package.nix +++ b/pkgs/by-name/lu/lumen/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, makeWrapper, pkg-config, + libgit2, openssl, fzf, mdcat, @@ -25,15 +26,15 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-ZXw7KEvf1sUHWIM5R4Th2SmekTX6rGXznAq3mtcf3Zo="; - # use the non-vendored openssl - env.OPENSSL_NO_VENDOR = 1; - nativeBuildInputs = [ makeWrapper pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ + libgit2 + openssl + ]; postFixup = '' wrapProgram $out/bin/lumen --prefix PATH : ${ diff --git a/pkgs/by-name/ma/macs2/package.nix b/pkgs/by-name/ma/macs2/package.nix index bfe64f51d3ae..c1424353a80b 100644 --- a/pkgs/by-name/ma/macs2/package.nix +++ b/pkgs/by-name/ma/macs2/package.nix @@ -7,14 +7,14 @@ # pin python311 because macs2 does not support python 3.12 # https://github.com/macs3-project/MACS/issues/598#issuecomment-1812622572 -python311.pkgs.buildPythonPackage rec { +python311.pkgs.buildPythonPackage (finalAttrs: { pname = "macs2"; version = "2.2.9.1"; pyproject = true; src = fetchPypi { - pname = lib.toUpper pname; - inherit version; + pname = "MACS2"; + inherit (finalAttrs) version; hash = "sha256-jVa8N/uCP8Y4fXgTjOloQFxUoKjNl3ZoJwX9CYMlLRY="; }; @@ -43,9 +43,8 @@ python311.pkgs.buildPythonPackage rec { unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" ]; pythonImportsCheck = [ "MACS2" ]; @@ -54,8 +53,8 @@ python311.pkgs.buildPythonPackage rec { description = "Model-based Analysis for ChIP-Seq"; mainProgram = "macs2"; homepage = "https://github.com/macs3-project/MACS/"; - changelog = "https://github.com/macs3-project/MACS/releases/tag/v${version}"; + changelog = "https://github.com/macs3-project/MACS/releases/tag/v${finalAttrs.version}"; license = lib.licenses.bsd3; maintainers = [ ]; }; -} +}) diff --git a/pkgs/by-name/ma/maestral-gui/package.nix b/pkgs/by-name/ma/maestral-gui/package.nix index 2fbe16bae18a..dca84019aeda 100644 --- a/pkgs/by-name/ma/maestral-gui/package.nix +++ b/pkgs/by-name/ma/maestral-gui/package.nix @@ -73,8 +73,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { tests.maestral = nixosTests.maestral; }; - __structuredAttrs = true; - meta = { description = "GUI front-end for maestral (an open-source Dropbox client) for Linux"; homepage = "https://maestral.app"; diff --git a/pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh b/pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh index 580eb215f9dd..0efd23522fc2 100644 --- a/pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh +++ b/pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh @@ -35,7 +35,11 @@ assertExecutable() { # --append-flags ARGS : append the whitespace-separated list of arguments ARGS to the invocation of the executable # --prefix ENV SEP VAL : suffix/prefix ENV with VAL, separated by SEP -# --suffix +# --suffix (VAL must not introduce an empty segment, e.g. a +# leading/trailing/doubled SEP, see GHSA-p7v3-pr2c-8584) +# --prefix-unchecked ENV SEP VAL : like --prefix/--suffix, without the empty segment check. +# --suffix-unchecked Only for variables where an empty segment is useful and safe +# (e.g. LUA_PATH, where `;;` stands for the default path) # To troubleshoot a binary wrapper after you compiled it, # use the `strings` command or open the binary file in a text editor. @@ -121,8 +125,9 @@ makeCWrapper() { n=$((n + 1)) [ $n -ge "$length" ] && main="$main#error makeCWrapper: $p takes 1 argument"$'\n' ;; - --prefix) + --prefix|--prefix-unchecked) cmd=$(setEnvPrefix "${params[n + 1]}" "${params[n + 2]}" "${params[n + 3]}") + [ "$p" = --prefix-unchecked ] || cmd+=$(assertNoEmptySegment "$p" "${params[n + 1]}" "${params[n + 2]}" "${params[n + 3]}") main="$main$cmd"$'\n' uses_sep_surround_check=1 uses_prefix=1 @@ -134,8 +139,9 @@ makeCWrapper() { n=$((n + 3)) [ $n -ge "$length" ] && main="$main#error makeCWrapper: $p takes 3 arguments"$'\n' ;; - --suffix) + --suffix|--suffix-unchecked) cmd=$(setEnvSuffix "${params[n + 1]}" "${params[n + 2]}" "${params[n + 3]}") + [ "$p" = --suffix-unchecked ] || cmd+=$(assertNoEmptySegment "$p" "${params[n + 1]}" "${params[n + 2]}" "${params[n + 3]}") main="$main$cmd"$'\n' uses_sep_surround_check=1 uses_suffix=1 @@ -263,7 +269,6 @@ setEnvPrefix() { val=$(escapeStringLiteral "$3") printf '%s' "set_env_prefix(\"$env\", \"$sep\", \"$val\");" assertValidEnvName "$1" - assertNoEmptySegment "--prefix" "$1" "$2" "$3" } # suffix ENV SEP VAL @@ -274,7 +279,6 @@ setEnvSuffix() { val=$(escapeStringLiteral "$3") printf '%s' "set_env_suffix(\"$env\", \"$sep\", \"$val\");" assertValidEnvName "$1" - assertNoEmptySegment "--suffix" "$1" "$2" "$3" } # setEnv KEY VALUE @@ -330,17 +334,8 @@ assertValidEnvName() { assertNoEmptySegment() { local flag="$1" env="$2" sep="$3" val="$4" [ -n "$sep" ] || return 0 - case "$env" in - # In Lua the loader will substitute the default paths or just ignore the empty segment - # https://github.com/lua/lua/blob/v5.5.1/loadlib.c#L274 - # https://github.com/lua/lua/blob/v5.5.1/loadlib.c#L475 - LUA_PATH|LUA_CPATH|LUA_PATH_*|LUA_CPATH_*) return 0 ;; - # In ASDF an empty segment uses the user/system configuration and defaults - # https://asdf.common-lisp.dev/asdf.html#Shell_002dfriendly-syntax-for-configuration - CL_SOURCE_REGISTRY|ASDF_OUTPUT_TRANSLATIONS) return 0 ;; - esac if [[ "$sep$val$sep" == *"$sep$sep"* ]]; then - printf '\n%s\n' "#error $flag $env would introduce an empty PATH-like segment (empty, or a leading/trailing/doubled \`$sep\`). This is interpreted as \"search the current directory\" by shells, execvp() and the dynamic linker, see https://github.com/NixOS/nixpkgs/security/advisories/GHSA-p7v3-pr2c-8584. Guard the value with e.g. lib.optionalString (list != [])." + printf '\n%s\n' "#error $flag $env would introduce an empty PATH-like segment (empty, or a leading/trailing/doubled \`$sep\`). This is interpreted as \"search the current directory\" by shells, execvp() and the dynamic linker, see https://github.com/NixOS/nixpkgs/security/advisories/GHSA-p7v3-pr2c-8584. Guard the value with e.g. lib.optionalString (list != []), or use $flag-unchecked if an empty segment is useful and safe for $env." fi } @@ -508,11 +503,11 @@ formatArgs() { formatArgsLine 1 "$@" shift 1 ;; - --prefix) + --prefix|--prefix-unchecked) formatArgsLine 3 "$@" shift 3 ;; - --suffix) + --suffix|--suffix-unchecked) formatArgsLine 3 "$@" shift 3 ;; diff --git a/pkgs/by-name/ma/malwoverview/package.nix b/pkgs/by-name/ma/malwoverview/package.nix index 589570230f39..3128f615fd62 100644 --- a/pkgs/by-name/ma/malwoverview/package.nix +++ b/pkgs/by-name/ma/malwoverview/package.nix @@ -9,8 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "8.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "alexandreborges"; repo = "malwoverview"; diff --git a/pkgs/by-name/ma/matrix-authentication-service/package.nix b/pkgs/by-name/ma/matrix-authentication-service/package.nix index 25e98d0a9c9c..4462c3de90d8 100644 --- a/pkgs/by-name/ma/matrix-authentication-service/package.nix +++ b/pkgs/by-name/ma/matrix-authentication-service/package.nix @@ -10,6 +10,7 @@ pkg-config, sqlite, zstd, + aws-lc, stdenv, open-policy-agent, cctools, @@ -63,6 +64,7 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ sqlite zstd + aws-lc ]; depsBuildBuild = [ buildPackages.stdenv.cc ]; @@ -87,19 +89,10 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail ./share/policy.wasm "$out/share/$pname/policy.wasm" ''; - preBuild = - let - buildTarget = stdenv.buildPlatform.rust.rustcTarget; - buildTargetUnderscore = lib.replaceString "-" "_" buildTarget; - in - '' - make -C policies - (cd "$pnpmRoot" && npm run build) - - # Fix aws-lc-sys cross-compilation - export CC_${buildTargetUnderscore}=$CC_FOR_BUILD - export CXX_${buildTargetUnderscore}=$CXX_FOR_BUILD - ''; + preBuild = '' + make -C policies + (cd "$pnpmRoot" && npm run build) + ''; # Adapted from https://github.com/element-hq/matrix-authentication-service/blob/v0.20.0/.github/workflows/build.yaml#L75-L84 postInstall = '' diff --git a/pkgs/by-name/ma/matrix-conduit/package.nix b/pkgs/by-name/ma/matrix-conduit/package.nix index ab8556ab79b5..ca1a04388ff1 100644 --- a/pkgs/by-name/ma/matrix-conduit/package.nix +++ b/pkgs/by-name/ma/matrix-conduit/package.nix @@ -4,7 +4,6 @@ fetchFromGitLab, pkg-config, sqlite, - stdenv, nixosTests, rocksdb, rust-jemalloc-sys, @@ -45,8 +44,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ROCKSDB_LIB_DIR = "${rocksdb}/lib"; }; - # tests failed on x86_64-darwin with SIGILL: illegal instruction - doCheck = !(stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin); + doCheck = true; passthru.tests = { inherit (nixosTests) matrix-conduit; diff --git a/pkgs/by-name/ma/maturin/package.nix b/pkgs/by-name/ma/maturin/package.nix index b695fcd6d037..d529fe52d7a1 100644 --- a/pkgs/by-name/ma/maturin/package.nix +++ b/pkgs/by-name/ma/maturin/package.nix @@ -8,6 +8,8 @@ nix-update-script, maturin, python3, + pkg-config, + zstd, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -23,7 +25,14 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-WRVXmhwhbOf2Isjvyqw3d4scA5Vs8Vkyy1m7WC3xb0s="; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + zstd + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; diff --git a/pkgs/by-name/mc/mc/package.nix b/pkgs/by-name/mc/mc/package.nix index fa63ec0295b2..269b632bce78 100644 --- a/pkgs/by-name/mc/mc/package.nix +++ b/pkgs/by-name/mc/mc/package.nix @@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: { ] # The preFixup hook rewrites the binary, which invaliates the code # signature. Add the fixup hook to sign the output. - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/mc/mcfly/package.nix b/pkgs/by-name/mc/mcfly/package.nix index 86be40333611..3a800afd474e 100644 --- a/pkgs/by-name/mc/mcfly/package.nix +++ b/pkgs/by-name/mc/mcfly/package.nix @@ -2,6 +2,8 @@ lib, rustPlatform, fetchFromGitHub, + pkg-config, + sqlite, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -23,6 +25,9 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-9oNfXNQywvgTREa0G1UbId4ezLSCem4IBkqE5X234hE="; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ sqlite ]; + meta = { homepage = "https://github.com/cantino/mcfly"; description = "Upgraded ctrl-r where history results make sense for what you're working on right now"; diff --git a/pkgs/by-name/mc/mcp-reva/package.nix b/pkgs/by-name/mc/mcp-reva/package.nix index 0f0c38101a1d..5eede4ae271b 100644 --- a/pkgs/by-name/mc/mcp-reva/package.nix +++ b/pkgs/by-name/mc/mcp-reva/package.nix @@ -17,8 +17,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { version = "7.3.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "cyberkaida"; repo = "reverse-engineering-assistant"; diff --git a/pkgs/by-name/md/mdbook-linkcheck2/package.nix b/pkgs/by-name/md/mdbook-linkcheck2/package.nix index 4c392e6d9204..a3b56189d8db 100644 --- a/pkgs/by-name/md/mdbook-linkcheck2/package.nix +++ b/pkgs/by-name/md/mdbook-linkcheck2/package.nix @@ -2,6 +2,8 @@ lib, fetchFromGitHub, rustPlatform, + pkg-config, + aws-lc, cacert, versionCheckHook, nix-update-script, @@ -22,6 +24,10 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-TcMiConcI8KMptOS67J+faPtCRnMCJxrWqFs3o19XMA="; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ aws-lc ]; + propagatedNativeBuildInputs = [ cacert ]; checkFlags = map (t: "--skip=${t}") [ diff --git a/pkgs/by-name/md/mdcat/package.nix b/pkgs/by-name/md/mdcat/package.nix index 89cfe2c583d5..8698ba565067 100644 --- a/pkgs/by-name/md/mdcat/package.nix +++ b/pkgs/by-name/md/mdcat/package.nix @@ -1,6 +1,7 @@ { lib, curl, + oniguruma, stdenv, fetchFromGitHub, rustPlatform, @@ -18,10 +19,12 @@ rustPlatform.buildRustPackage rec { pname = "mdcat"; version = "2.19.0"; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "BIRSAx2"; repo = "mdcat"; - rev = "mdcat-${version}"; + tag = "mdcat-${version}"; hash = "sha256-DJa6NPO8P5AjtVh7AuEZSPFN5pGuis3SIZI7rX00Eik="; }; @@ -33,6 +36,7 @@ rustPlatform.buildRustPackage rec { ]; buildInputs = [ curl + oniguruma openssl ]; diff --git a/pkgs/by-name/me/mealie/package.nix b/pkgs/by-name/me/mealie/package.nix index 8ec98ba03020..9aa7b6c2ce02 100644 --- a/pkgs/by-name/me/mealie/package.nix +++ b/pkgs/by-name/me/mealie/package.nix @@ -96,8 +96,6 @@ pythonpkgs.buildPythonApplication (finalAttrs: { inherit version src; pyproject = true; - __structuredAttrs = true; - build-system = with pythonpkgs; [ setuptools ]; nativeBuildInputs = [ makeWrapper ]; diff --git a/pkgs/by-name/me/mercurial/package.nix b/pkgs/by-name/me/mercurial/package.nix index 75ee125eb8d1..9f95b0a2bc52 100644 --- a/pkgs/by-name/me/mercurial/package.nix +++ b/pkgs/by-name/me/mercurial/package.nix @@ -11,6 +11,7 @@ cargo, rustPlatform, rustc, + pkg-config, fullBuild ? false, gitSupport ? fullBuild, guiSupport ? fullBuild, @@ -24,6 +25,7 @@ git, cacert, gnupg, + zstd, }: let @@ -82,8 +84,14 @@ python3Packages.buildPythonApplication (finalAttrs: { rustPlatform.cargoSetupHook cargo rustc + pkg-config + ]; + buildInputs = [ + docutils + ] + ++ lib.optionals rustSupport [ + zstd ]; - buildInputs = [ docutils ]; makeFlags = [ "PREFIX=$(out)" ] ++ lib.optional rustSupport "PURE=--rust"; diff --git a/pkgs/by-name/me/mesa_glu/package.nix b/pkgs/by-name/me/mesa_glu/package.nix index 4492958821f7..792c7733acd9 100644 --- a/pkgs/by-name/me/mesa_glu/package.nix +++ b/pkgs/by-name/me/mesa_glu/package.nix @@ -30,6 +30,8 @@ stdenv.mkDerivation (finalAttrs: { ]; propagatedBuildInputs = [ libGLX ]; + strictDeps = true; + outputs = [ "out" "dev" @@ -52,6 +54,8 @@ stdenv.mkDerivation (finalAttrs: { }; }; + __structuredAttrs = true; + meta = { description = "OpenGL utility library"; homepage = "https://cgit.freedesktop.org/mesa/glu/"; diff --git a/pkgs/by-name/me/meson/package.nix b/pkgs/by-name/me/meson/package.nix index f472a97583b4..c80fd6c6b5f9 100644 --- a/pkgs/by-name/me/meson/package.nix +++ b/pkgs/by-name/me/meson/package.nix @@ -19,7 +19,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { pname = "meson"; version = "1.12.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mesonbuild"; diff --git a/pkgs/by-name/mi/micropython/package.nix b/pkgs/by-name/mi/micropython/package.nix index 38df77b5a981..8ffebb9b0fb6 100644 --- a/pkgs/by-name/mi/micropython/package.nix +++ b/pkgs/by-name/mi/micropython/package.nix @@ -119,9 +119,7 @@ stdenv.mkDerivation rec { skippedTests = " -e select_poll_fd" - + - lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) - " -e ffi_callback -e float_parse -e float_parse_doubleproc -e 'thread/stress_*' -e select_poll_eintr" + + lib.optionalString stdenv.hostPlatform.isDarwin " -e ffi_callback -e float_parse -e float_parse_doubleproc -e 'thread/stress_*' -e select_poll_eintr" + lib.optionalString ( stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64 ) " -e float_parse"; diff --git a/pkgs/by-name/mi/mimalloc/package.nix b/pkgs/by-name/mi/mimalloc/package.nix index 5bedb5faa044..0414492d9967 100644 --- a/pkgs/by-name/mi/mimalloc/package.nix +++ b/pkgs/by-name/mi/mimalloc/package.nix @@ -34,6 +34,9 @@ stdenv.mkDerivation (finalAttrs: { cmake ninja ]; + + strictDeps = true; + cmakeFlags = lib.mapAttrsToList lib.cmakeBool { MI_INSTALL_TOPLEVEL = true; MI_SECURE = secureBuild; @@ -79,6 +82,8 @@ stdenv.mkDerivation (finalAttrs: { "dev" ]; + __structuredAttrs = true; + meta = { description = "Compact, fast, general-purpose memory allocator"; homepage = "https://github.com/microsoft/mimalloc"; diff --git a/pkgs/by-name/mi/miniserve/package.nix b/pkgs/by-name/mi/miniserve/package.nix index d84f8d0682cf..1cbe3d61e91e 100644 --- a/pkgs/by-name/mi/miniserve/package.nix +++ b/pkgs/by-name/mi/miniserve/package.nix @@ -5,6 +5,7 @@ pkg-config, installShellFiles, openssl, + zstd, cacert, stdenv, curl, @@ -34,7 +35,10 @@ rustPlatform.buildRustPackage (finalAttrs: { installShellFiles ]; - buildInputs = [ openssl ]; + buildInputs = [ + openssl + zstd + ]; nativeCheckInputs = [ curl diff --git a/pkgs/by-name/mi/ministream/package.nix b/pkgs/by-name/mi/ministream/package.nix new file mode 100644 index 000000000000..51e50bd5a934 --- /dev/null +++ b/pkgs/by-name/mi/ministream/package.nix @@ -0,0 +1,76 @@ +{ + lib, + stdenv, + buildPackages, + fetchurl, + meson, + ninja, + pkg-config, + glib, + testers, + gnome, + gobject-introspection, + withIntrospection ? + lib.meta.availableOn stdenv.hostPlatform gobject-introspection + && stdenv.hostPlatform.emulatorAvailable buildPackages, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "ministream"; + version = "0.99.1"; + + src = fetchurl { + url = "mirror://gnome/sources/ministream/${lib.versions.majorMinor finalAttrs.version}/ministream-${finalAttrs.version}.tar.xz"; + hash = "sha256-TIY7WI+pofjgu0akNXysVzdoLYLQkilxVokUX8NKrYM="; + }; + + strictDeps = true; + __structuredAttrs = true; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ] + ++ lib.optionals withIntrospection [ + gobject-introspection + ]; + + buildInputs = [ + glib + ]; + + mesonFlags = [ + (lib.mesonEnable "as-compare" false) + (lib.mesonEnable "introspection" withIntrospection) + (lib.mesonBool "tests" finalAttrs.finalPackage.doCheck) + ]; + + doCheck = true; + + passthru = { + tests.pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + versionCheck = true; + }; + updateScript = gnome.updateScript { + packageName = "ministream"; + }; + }; + + meta = { + description = "Subset of libappstream for libadwaita"; + longDescription = '' + Ministream is a small subset of libappstream, intended to be used by + libadwaita to automatically populate its AboutDialog with data + contained in the application's AppStream manifest. Unlike libappstream, + this library only depends on GLib. + ''; + homepage = "https://gitlab.gnome.org/GNOME/ministream"; + changelog = "https://gitlab.gnome.org/GNOME/ministream/-/blob/${finalAttrs.version}/NEWS"; + license = lib.licenses.lgpl21Plus; + teams = [ lib.teams.gnome ]; + platforms = lib.platforms.unix; + pkgConfigModules = [ "ministream" ]; + }; +}) diff --git a/pkgs/by-name/mi/minuspod/package.nix b/pkgs/by-name/mi/minuspod/package.nix index 1c418dfb169f..52f319036c26 100644 --- a/pkgs/by-name/mi/minuspod/package.nix +++ b/pkgs/by-name/mi/minuspod/package.nix @@ -70,8 +70,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { inherit version src; format = "other"; - __structuredAttrs = true; - dontConfigure = true; dontBuild = true; diff --git a/pkgs/by-name/mi/mise/package.nix b/pkgs/by-name/mi/mise/package.nix index be4b4cb7369a..7186953339d8 100644 --- a/pkgs/by-name/mi/mise/package.nix +++ b/pkgs/by-name/mi/mise/package.nix @@ -11,7 +11,9 @@ direnv, git, pkg-config, + aws-lc, openssl, + zstd, cmake, cacert, tzdata, @@ -42,7 +44,11 @@ rustPlatform.buildRustPackage (finalAttrs: { pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ + aws-lc + zstd + openssl + ]; postPatch = '' patchShebangs --build \ diff --git a/pkgs/by-name/mi/mistral-rs/package.nix b/pkgs/by-name/mi/mistral-rs/package.nix index 0b15cbb7e591..495faa072e20 100644 --- a/pkgs/by-name/mi/mistral-rs/package.nix +++ b/pkgs/by-name/mi/mistral-rs/package.nix @@ -68,8 +68,7 @@ let metalSupport = assert accelIsValid; - (acceleration == "metal") - || (hostPlatform.isDarwin && hostPlatform.isAarch64 && (acceleration == null)); + (acceleration == "metal") || (hostPlatform.isDarwin && (acceleration == null)); in rustPlatform.buildRustPackage (finalAttrs: { @@ -263,7 +262,7 @@ rustPlatform.buildRustPackage (finalAttrs: { mistral-rs.override { acceleration = "mkl"; } ); withCuda = lib.optionalAttrs hostPlatform.isLinux (mistral-rs.override { acceleration = "cuda"; }); - withMetal = lib.optionalAttrs (hostPlatform.isDarwin && hostPlatform.isAarch64) ( + withMetal = lib.optionalAttrs hostPlatform.isDarwin ( mistral-rs.override { acceleration = "metal"; } ); }; diff --git a/pkgs/by-name/mi/mistral-vibe/package.nix b/pkgs/by-name/mi/mistral-vibe/package.nix index d25bebfe782f..1e824e4e89db 100644 --- a/pkgs/by-name/mi/mistral-vibe/package.nix +++ b/pkgs/by-name/mi/mistral-vibe/package.nix @@ -17,7 +17,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "mistral-vibe"; version = "3.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mistralai"; diff --git a/pkgs/by-name/mi/mitm-cache/package.nix b/pkgs/by-name/mi/mitm-cache/package.nix index a8e44a5636b6..fa1f5a83627e 100644 --- a/pkgs/by-name/mi/mitm-cache/package.nix +++ b/pkgs/by-name/mi/mitm-cache/package.nix @@ -6,6 +6,8 @@ replaceVars, openssl, python3Packages, + pkg-config, + zstd, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -21,6 +23,14 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-eY8mgmQB8wXQ7YJbLvdjXEEgGD+/RDywjvehJYf7ckE="; }; + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + zstd + ]; + cargoHash = "sha256-DTPlPCumkVI2naYoNdO8T3pQNSawBA0FZ9LxVpqKqN0="; setupHook = replaceVars ./setup-hook.sh { diff --git a/pkgs/by-name/mk/mkp224o/package.nix b/pkgs/by-name/mk/mkp224o/package.nix index 671917201b64..989065cf7d43 100644 --- a/pkgs/by-name/mk/mkp224o/package.nix +++ b/pkgs/by-name/mk/mkp224o/package.nix @@ -40,7 +40,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--enable-donna-sse2" ]; } ] - ++ lib.optionals (!stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ + ++ lib.optionals stdenv.hostPlatform.isx86_64 [ { suffix = "amd64-51-30k"; configureFlags = [ "--enable-amd64-51-30k" ]; diff --git a/pkgs/by-name/mo/mobsf/package.nix b/pkgs/by-name/mo/mobsf/package.nix index 9a3c1476fc26..a0d892a33fb5 100644 --- a/pkgs/by-name/mo/mobsf/package.nix +++ b/pkgs/by-name/mo/mobsf/package.nix @@ -56,7 +56,6 @@ buildPythonApplication (finalAttrs: { pname = "mobsf"; version = "4.5.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "MobSF"; diff --git a/pkgs/by-name/mo/mold-unwrapped/package.nix b/pkgs/by-name/mo/mold-unwrapped/package.nix index 87eeea027ca4..d63caeefec4e 100644 --- a/pkgs/by-name/mo/mold-unwrapped/package.nix +++ b/pkgs/by-name/mo/mold-unwrapped/package.nix @@ -9,10 +9,12 @@ mold, mold-unwrapped, nix-update-script, + pkg-config, runCommand, runCommandCC, rustPlatform, stdenv, + zstd, useMoldLinker, versionCheckHook, }: @@ -31,10 +33,14 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-DgCFmTz+qulwXu1Oax8gBnc/6HIT6TlY8+xzBRGFvu0="; strictDeps = true; + nativeBuildInputs = [ installShellFiles + pkg-config ]; + buildInputs = [ zstd ]; + # Upstream integration tests are way to finicky to keep around. Our internal # linking tests should suffice. doCheck = false; diff --git a/pkgs/by-name/mo/motion/package.nix b/pkgs/by-name/mo/motion/package.nix index 83a86f860361..7b81bcdf3b83 100644 --- a/pkgs/by-name/mo/motion/package.nix +++ b/pkgs/by-name/mo/motion/package.nix @@ -48,7 +48,7 @@ stdenv.mkDerivation (finalAttrs: { ]; platforms = lib.platforms.unix; # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; mainProgram = "motion"; }; }) diff --git a/pkgs/by-name/mo/mouser/package.nix b/pkgs/by-name/mo/mouser/package.nix index fba60ae149c8..dc41cf75f2da 100644 --- a/pkgs/by-name/mo/mouser/package.nix +++ b/pkgs/by-name/mo/mouser/package.nix @@ -16,8 +16,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "3.7.3"; pyproject = false; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "TomBadash"; repo = "Mouser"; diff --git a/pkgs/by-name/ms/msedit/package.nix b/pkgs/by-name/ms/msedit/package.nix index 4606cf1318e1..631f5d34af98 100644 --- a/pkgs/by-name/ms/msedit/package.nix +++ b/pkgs/by-name/ms/msedit/package.nix @@ -23,13 +23,6 @@ rustPlatform.buildRustPackage (finalAttrs: { # Requires nightly features env = { RUSTC_BOOTSTRAP = 1; - # Without -headerpad, the following error occurs on x86_64-darwin - # error: install_name_tool: changing install names or rpaths can't be redone for: ... because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names) - NIX_LDFLAGS = toString ( - lib.optionals (with stdenv.hostPlatform; isDarwin && isx86_64) [ - "-headerpad_max_install_names" - ] - ); } // lib.optionalAttrs stdenv.hostPlatform.isLinux { # https://github.com/microsoft/edit/releases/tag/v2.0.0 diff --git a/pkgs/by-name/mu/mudlet/package.nix b/pkgs/by-name/mu/mudlet/package.nix index a9469de076dd..1aae6c42ef95 100644 --- a/pkgs/by-name/mu/mudlet/package.nix +++ b/pkgs/by-name/mu/mudlet/package.nix @@ -92,7 +92,6 @@ stdenv.mkDerivation (finalAttrs: { preFixup = '' qtWrapperArgs+=(--set LUA_CPATH "${luaEnv}/lib/lua/${lua5_1.luaversion}/?.so") - qtWrapperArgs+=(--prefix LUA_PATH : "$NIX_LUA_PATH") ${lib.optionalString withDiscordRpc '' qtWrapperArgs+=(--prefix ${libPathVar} : "${lib.makeLibraryPath [ discord-rpc ]}") ''} diff --git a/pkgs/by-name/mu/music-assistant/package.nix b/pkgs/by-name/mu/music-assistant/package.nix index 8aeaf9722099..03646112990c 100644 --- a/pkgs/by-name/mu/music-assistant/package.nix +++ b/pkgs/by-name/mu/music-assistant/package.nix @@ -84,7 +84,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { pname = "music-assistant"; version = "2.10.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "music-assistant"; diff --git a/pkgs/by-name/mu/mutter/package.nix b/pkgs/by-name/mu/mutter/package.nix index bbb61ad35838..7db9deb7c479 100644 --- a/pkgs/by-name/mu/mutter/package.nix +++ b/pkgs/by-name/mu/mutter/package.nix @@ -40,7 +40,6 @@ libdisplay-info, gsettings-desktop-schemas, glib, - libglycin, atk, gtk4, fribidi, @@ -72,7 +71,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "mutter"; - version = "50.5"; + version = "51.0"; outputs = [ "out" @@ -83,16 +82,12 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/mutter/${lib.versions.major finalAttrs.version}/mutter-${finalAttrs.version}.tar.xz"; - hash = "sha256-cvpaeDR7A6bpmifb21+lzDs4iyPupzzkUBKBjbmLeUE="; + hash = "sha256-XSjzriJWkkKPyvuWUA1nPzQyi2mLhpYMnBRg0LHZg7M="; }; mesonFlags = [ - "-Degl_device=true" "-Dinstalled_tests=false" # TODO: enable these "-Dtests=disabled" - # For NVIDIA proprietary driver up to 470. - # https://src.fedoraproject.org/rpms/mutter/pull-request/49 - "-Dwayland_eglstream=true" "-Dprofiler=true" "-Dxwayland_path=${lib.getExe xwayland}" # This should be auto detected, but it looks like it manages a false @@ -131,7 +126,6 @@ stdenv.mkDerivation (finalAttrs: { cairo egl-wayland glib - libglycin gnome-desktop gnome-settings-daemon gsettings-desktop-schemas @@ -207,7 +201,7 @@ stdenv.mkDerivation (finalAttrs: { doInstallCheck = true; passthru = { - libmutter_api_version = "18"; # bumped each dev cycle + libmutter_api_version = "51"; # bumped each dev cycle libdir = "${finalAttrs.finalPackage}/lib/mutter-${finalAttrs.passthru.libmutter_api_version}"; tests = { diff --git a/pkgs/by-name/mu/mutter48/package.nix b/pkgs/by-name/mu/mutter48/package.nix index c7e82ef4e7a6..cd901f9c4e9a 100644 --- a/pkgs/by-name/mu/mutter48/package.nix +++ b/pkgs/by-name/mu/mutter48/package.nix @@ -1,5 +1,6 @@ { fetchurl, + fetchpatch, runCommand, lib, stdenv, @@ -85,6 +86,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-7BAqo8uw45ABIGYnrKMFUxRVX3BgneXmwrfvzR+pDyA="; }; + patches = [ + # Fix build with pango 1.58 + # https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5102 + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/mutter/-/commit/ba64e055b5159a3acd5b4e4bc3d381066b26c62c.patch"; + hash = "sha256-93i0BnVi8Psi1KpwnLESvq9ntal9fOzH4z2vYhboLhQ="; + }) + ]; + mesonFlags = [ "-Degl_device=true" "-Dinstalled_tests=false" # TODO: enable these diff --git a/pkgs/by-name/na/nagstamon/package.nix b/pkgs/by-name/na/nagstamon/package.nix index d7cf37dfea78..46d844f32c02 100644 --- a/pkgs/by-name/na/nagstamon/package.nix +++ b/pkgs/by-name/na/nagstamon/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "3.18.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "HenriWahl"; repo = "Nagstamon"; diff --git a/pkgs/by-name/na/namecoind/package.nix b/pkgs/by-name/na/namecoind/package.nix index 06276d3cf5ea..8c276c6f280a 100644 --- a/pkgs/by-name/na/namecoind/package.nix +++ b/pkgs/by-name/na/namecoind/package.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals stdenv.hostPlatform.isLinux [ util-linux ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ hexdump ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/na/nautilus/package.nix b/pkgs/by-name/na/nautilus/package.nix index 68101b9c2b3e..1c30f66248f2 100644 --- a/pkgs/by-name/na/nautilus/package.nix +++ b/pkgs/by-name/na/nautilus/package.nix @@ -45,7 +45,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "nautilus"; - version = "50.2.2"; + version = "51.0.1"; outputs = [ "out" @@ -55,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/nautilus/${lib.versions.major finalAttrs.version}/nautilus-${finalAttrs.version}.tar.xz"; - hash = "sha256-4eKF7930LtMN2lsp9/jSQtq0vBQJqQVIY7NnutSzTVo="; + hash = "sha256-oA25CP1lAmy9XcY04S0YnejrorA/EF0kJTQXaKXukvs="; }; patches = [ diff --git a/pkgs/by-name/nd/ndcurves/package.nix b/pkgs/by-name/nd/ndcurves/package.nix index 27f7cc704195..d4bb2d67e682 100644 --- a/pkgs/by-name/nd/ndcurves/package.nix +++ b/pkgs/by-name/nd/ndcurves/package.nix @@ -51,9 +51,6 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optional stdenv.hostPlatform.isAarch64 ( lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--exclude-regex;'curves_tests|python-curves'" - ) - ++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ( - lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--exclude-regex;'test-so3-smooth'" ); doCheck = true; diff --git a/pkgs/by-name/ne/needle/package.nix b/pkgs/by-name/ne/needle/package.nix index c7a8021f6e94..b8297255e4b6 100644 --- a/pkgs/by-name/ne/needle/package.nix +++ b/pkgs/by-name/ne/needle/package.nix @@ -30,6 +30,9 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ sqlite ]; + # Using Swift Build doesn’t work. It fails to build Swift Syntax when it references its SPIs. + swiftpmFlags = [ "--build-system=native" ]; + configurePhase = generated.configure; installPhase = '' diff --git a/pkgs/by-name/ne/neovim-unwrapped/package.nix b/pkgs/by-name/ne/neovim-unwrapped/package.nix index d471807e9428..5f7fd57e183b 100644 --- a/pkgs/by-name/ne/neovim-unwrapped/package.nix +++ b/pkgs/by-name/ne/neovim-unwrapped/package.nix @@ -11,7 +11,7 @@ unibilium, utf8proc, tree-sitter, - wasmtime_36, + wasmtime_48, fetchurl, buildPackages, treesitter-parsers ? import ./treesitter-parsers.nix { inherit fetchurl; }, @@ -164,7 +164,7 @@ stdenv.mkDerivation ( utf8proc ] ++ lib.optionals wasmSupport [ - wasmtime_36 + wasmtime_48 ] ++ lib.optionals (stdenv.hostPlatform.libc != "glibc") [ # Provide libintl for non-glibc platforms @@ -198,7 +198,7 @@ stdenv.mkDerivation ( lib.optionalString wasmSupport '' substituteInPlace src/nvim/CMakeLists.txt \ --replace-fail \ - 'find_package(Wasmtime 36.0.6 EXACT REQUIRED)' \ + 'find_package(Wasmtime 36.0 EXACT REQUIRED)' \ 'find_package(Wasmtime REQUIRED)' '' # nvim --version output retains compilation flags and references to build tools @@ -231,8 +231,8 @@ stdenv.mkDerivation ( ++ lib.optionals wasmSupport [ # FindWasmtime has no pkg-config fallback. (lib.cmakeBool "ENABLE_WASMTIME" true) - (lib.cmakeFeature "WASMTIME_INCLUDE_DIR" "${lib.getDev wasmtime_36}/include") - (lib.cmakeFeature "WASMTIME_LIBRARY" "${lib.getLib wasmtime_36}/lib/libwasmtime${stdenv.hostPlatform.extensions.sharedLibrary}") + (lib.cmakeFeature "WASMTIME_INCLUDE_DIR" "${lib.getDev wasmtime_48}/include") + (lib.cmakeFeature "WASMTIME_LIBRARY" "${lib.getLib wasmtime_48}/lib/libwasmtime${stdenv.hostPlatform.extensions.sharedLibrary}") ] ++ ( if lua.pkgs.isLuaJIT then diff --git a/pkgs/by-name/ne/nest-cli/package.nix b/pkgs/by-name/ne/nest-cli/package.nix index 103a7d7787b8..3414474f59eb 100644 --- a/pkgs/by-name/ne/nest-cli/package.nix +++ b/pkgs/by-name/ne/nest-cli/package.nix @@ -28,7 +28,7 @@ buildNpmPackage (finalAttrs: { nativeBuildInputs = [ python3 ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ clang_20 ]; # clang_21 breaks gyp builds + ++ lib.optionals stdenv.hostPlatform.isDarwin [ clang_20 ]; # clang_21 breaks gyp builds meta = { changelog = "https://github.com/nestjs/nest-cli/releases/tag/${finalAttrs.version}"; diff --git a/pkgs/by-name/ne/netbox/package.nix b/pkgs/by-name/ne/netbox/package.nix index aa9dfe149bec..7899c0f5c7cf 100644 --- a/pkgs/by-name/ne/netbox/package.nix +++ b/pkgs/by-name/ne/netbox/package.nix @@ -17,8 +17,6 @@ let extraBuildInputs = plugins py.pkgs; in py.pkgs.buildPythonApplication (finalAttrs: { - __structuredAttrs = true; - pname = "netbox"; version = "4.7.3"; pyproject = false; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-attachments/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-attachments/package.nix index bf16492b7369..a7fbcb1cbed5 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-attachments/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-attachments/package.nix @@ -9,8 +9,6 @@ netaddr, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-attachments"; version = "12.0.0"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-bgp/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-bgp/package.nix index 47ddadebff4d..0734698202a7 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-bgp/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-bgp/package.nix @@ -7,8 +7,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-bgp"; version = "0.20.2"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-cable-labels/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-cable-labels/package.nix index 0df2c8b9bebb..7b78d2463245 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-cable-labels/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-cable-labels/package.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-cable-labels"; version = "0.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-config-backup/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-config-backup/package.nix index ebeccbd172c4..2d09d8bb3f19 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-config-backup/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-config-backup/package.nix @@ -12,8 +12,6 @@ let inherit (netboxPlugins) netbox-napalm-plugin; in buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-config-backup"; version = "2.2.3"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-contextmenus/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-contextmenus/package.nix index 8fb8565f6e3d..d36000b136ba 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-contextmenus/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-contextmenus/package.nix @@ -5,8 +5,6 @@ setuptools, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-contextmenus"; version = "1.4.14"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-contract/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-contract/package.nix index d174c8857fd6..fba462c133bb 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-contract/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-contract/package.nix @@ -10,8 +10,6 @@ netaddr, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-contract"; version = "2.6.0"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-custom-objects/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-custom-objects/package.nix index 8c9c08efd420..6dbe9c7f30f2 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-custom-objects/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-custom-objects/package.nix @@ -7,8 +7,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-custom-objects"; version = "1.0.0"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-data-flows/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-data-flows/package.nix index b4d3328fe1c4..1e62fc05d050 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-data-flows/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-data-flows/package.nix @@ -7,8 +7,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-data-flows"; version = "1.6.0"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-dns/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-dns/package.nix index cfc49a794839..f85a5a169ce4 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-dns/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-dns/package.nix @@ -6,8 +6,6 @@ dnspython, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-plugin-dns"; version = "1.7.3"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-documents/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-documents/package.nix index c57ff4dcaaa6..f78eaa71fe1f 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-documents/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-documents/package.nix @@ -8,8 +8,6 @@ netbox, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-documents"; version = "0.8.5"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-facts/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-facts/package.nix index 443cfcd8acd4..73621e7461da 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-facts/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-facts/package.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-facts"; version = "0.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-floorplan-plugin/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-floorplan-plugin/package.nix index ee15b3fe9501..25599b1b2703 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-floorplan-plugin/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-floorplan-plugin/package.nix @@ -9,8 +9,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-floorplan-plugin"; version = "0.9.2"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-fms/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-fms/package.nix index 1272ea8dbadf..5f96b07fc843 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-fms/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-fms/package.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-fms"; version = "0.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-interface-synchronization/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-interface-synchronization/package.nix index c736e9605b24..e42bc91419da 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-interface-synchronization/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-interface-synchronization/package.nix @@ -19,8 +19,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-interface-synchronization"; version = "4.5.8"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-inventory/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-inventory/package.nix index 10dec22db84b..b474549d6248 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-inventory/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-inventory/package.nix @@ -7,8 +7,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-inventory"; version = "2.7.1"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-lifecycle/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-lifecycle/package.nix index 1baaa90e021e..dc238c3a5971 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-lifecycle/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-lifecycle/package.nix @@ -8,8 +8,6 @@ django-polymorphic, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-lifecycle"; version = "1.1.11"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-lists/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-lists/package.nix index 83d38b775256..2140f390b794 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-lists/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-lists/package.nix @@ -8,8 +8,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-lists"; version = "4.0.4"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-napalm-plugin/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-napalm-plugin/package.nix index d40f09a9d3ba..78bef8de6823 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-napalm-plugin/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-napalm-plugin/package.nix @@ -9,8 +9,6 @@ django, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-napalm-plugin"; version = "0.3.7"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-notices/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-notices/package.nix index b8b5ab7d6c3e..999ce3154b84 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-notices/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-notices/package.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-notices"; version = "1.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-peering-manager/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-peering-manager/package.nix index 869939c04ab3..8900e75af019 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-peering-manager/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-peering-manager/package.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-peering-manager"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-plugin-prometheus-sd/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-plugin-prometheus-sd/package.nix index fce72ae26d74..195edcba560b 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-plugin-prometheus-sd/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-plugin-prometheus-sd/package.nix @@ -14,8 +14,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-plugin-prometheus-sd"; version = "2.2.0"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-qrcode/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-qrcode/package.nix index 440502ad97d9..062a00fcf044 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-qrcode/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-qrcode/package.nix @@ -19,8 +19,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-qrcode"; version = "1.0.0"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-reorder-rack/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-reorder-rack/package.nix index a295074a8c30..54e6376a5b48 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-reorder-rack/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-reorder-rack/package.nix @@ -7,8 +7,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-reorder-rack"; version = "1.1.5"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-rir-manager/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-rir-manager/package.nix index cc6905fb7457..44d599243377 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-rir-manager/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-rir-manager/package.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-rir-manager"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-routing/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-routing/package.nix index 5fbdd31c270b..4d78ec79b424 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-routing/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-routing/package.nix @@ -8,8 +8,6 @@ django-polymorphic, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-routing"; version = "0.5.1"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-secrets/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-secrets/package.nix index fbcb930136e7..5c2bbeea8bda 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-secrets/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-secrets/package.nix @@ -9,8 +9,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-secrets"; version = "3.1.2"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-security/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-security/package.nix index acd3fff16221..25fe36ab1fab 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-security/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-security/package.nix @@ -7,8 +7,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-security"; version = "1.6.9"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-sqids/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-sqids/package.nix index 983d7d126ba9..10fbb11e9586 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-sqids/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-sqids/package.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-sqids"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-topology-views/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-topology-views/package.nix index 20f59ab2dcd5..23cc6856ec5d 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-topology-views/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-topology-views/package.nix @@ -9,8 +9,6 @@ python, }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; - pname = "netbox-topology-views"; version = "5.0.0"; pyproject = true; diff --git a/pkgs/by-name/ne/netbox/plugins/netbox-wdm/package.nix b/pkgs/by-name/ne/netbox/plugins/netbox-wdm/package.nix index 8e9ce0c44cb8..83d7e1a07692 100644 --- a/pkgs/by-name/ne/netbox/plugins/netbox-wdm/package.nix +++ b/pkgs/by-name/ne/netbox/plugins/netbox-wdm/package.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "netbox-wdm"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/by-name/ne/netpbm/package.nix b/pkgs/by-name/ne/netpbm/package.nix index 99e5e3b373ed..abe9e3a07801 100644 --- a/pkgs/by-name/ne/netpbm/package.nix +++ b/pkgs/by-name/ne/netpbm/package.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchsvn { url = "https://svn.code.sf.net/p/netpbm/code/advanced"; rev = "5264"; - sha256 = "sha256-5G2OitW25ZNsdBcVkKfLpFJWjTm9VcB3ca0QllOSugI="; + hash = "sha256-5G2OitW25ZNsdBcVkKfLpFJWjTm9VcB3ca0QllOSugI="; }; nativeBuildInputs = [ @@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' # Install libnetpbm.so symlink to correct destination substituteInPlace lib/Makefile \ - --replace '/sharedlink' '/lib' + --replace-fail '/sharedlink' '/lib' ''; configurePhase = '' @@ -128,6 +128,8 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = ./update.sh; + __structuredAttrs = true; + meta = { changelog = "https://sourceforge.net/p/netpbm/code/${finalAttrs.src.rev}/tree/advanced/doc/HISTORY"; homepage = "https://netpbm.sourceforge.net/"; diff --git a/pkgs/by-name/ne/netpeek/package.nix b/pkgs/by-name/ne/netpeek/package.nix index 75e8213cf24b..d0d8a38152b0 100644 --- a/pkgs/by-name/ne/netpeek/package.nix +++ b/pkgs/by-name/ne/netpeek/package.nix @@ -17,8 +17,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.3.5"; pyproject = false; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ZingyTomato"; repo = "NetPeek"; diff --git a/pkgs/by-name/ne/networkd-dispatcher/package.nix b/pkgs/by-name/ne/networkd-dispatcher/package.nix index c7a8df5b73c3..d09a7561bd28 100644 --- a/pkgs/by-name/ne/networkd-dispatcher/package.nix +++ b/pkgs/by-name/ne/networkd-dispatcher/package.nix @@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ (python3.withPackages (ps: [ ps.dbus-python - ps.pygobject3 + (ps.pygobject3.override { withCairo = false; }) ])) ]; diff --git a/pkgs/by-name/ne/nextcloud-notify_push/package.nix b/pkgs/by-name/ne/nextcloud-notify_push/package.nix index 87fa00f63d4d..48ce67865531 100644 --- a/pkgs/by-name/ne/nextcloud-notify_push/package.nix +++ b/pkgs/by-name/ne/nextcloud-notify_push/package.nix @@ -3,6 +3,9 @@ fetchFromGitHub, nixosTests, rustPlatform, + pkg-config, + aws-lc, + sqlite, fetchNextcloudApp, }: @@ -24,6 +27,15 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-skKOCJBtpvtdc594eOxbvSIl+SucaH0jl1gFv9kfvNA="; + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + aws-lc + sqlite + ]; + passthru = rec { app = fetchNextcloudApp { appName = "notify_push"; diff --git a/pkgs/by-name/ng/ngtcp2-gnutls/package.nix b/pkgs/by-name/ng/ngtcp2-gnutls/package.nix index f8cd85c6a9f9..1eefb9c265cd 100644 --- a/pkgs/by-name/ng/ngtcp2-gnutls/package.nix +++ b/pkgs/by-name/ng/ngtcp2-gnutls/package.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "ngtcp2"; - version = "1.25.0"; + version = "1.26.0"; src = fetchFromGitHub { owner = "ngtcp2"; repo = "ngtcp2"; tag = "v${finalAttrs.version}"; - hash = "sha256-BBV4nNtSWQOFuwVOeH3LJEUeF7v4LVhGbfcrkroBAvc="; + hash = "sha256-Jwois2pqZWm5NwFbmQdYtHC5gEKcVYU1iBr0UVV+Wow="; }; outputs = [ diff --git a/pkgs/by-name/nh/nh-unwrapped/package.nix b/pkgs/by-name/nh/nh-unwrapped/package.nix index 66759bae21ce..b295d141c7ae 100644 --- a/pkgs/by-name/nh/nh-unwrapped/package.nix +++ b/pkgs/by-name/nh/nh-unwrapped/package.nix @@ -9,6 +9,9 @@ buildPackages, sudo, versionCheckHook, + aws-lc, + zstd, + pkg-config, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "nh-unwrapped"; @@ -32,9 +35,14 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ installShellFiles + pkg-config ]; - buildInputs = [ sqlite ]; + buildInputs = [ + sqlite + aws-lc + zstd + ]; # pkgs.sudo is not available on the Darwin platform, and thus breaks build # if added to nativeCheckInputs. We must manually disable the tests that diff --git a/pkgs/by-name/ni/nim-unwrapped/package.nix b/pkgs/by-name/ni/nim-unwrapped/package.nix index 2ccc7547b001..51b8f21a5af8 100644 --- a/pkgs/by-name/ni/nim-unwrapped/package.nix +++ b/pkgs/by-name/ni/nim-unwrapped/package.nix @@ -77,7 +77,7 @@ stdenv.mkDerivation (finalAttrs: { "-d:release" ]; - preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + preBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace makefile \ --replace "aarch64" "arm64" ''; diff --git a/pkgs/by-name/ni/nirimod/package.nix b/pkgs/by-name/ni/nirimod/package.nix index 3a6bc735b545..59e878f6fb47 100644 --- a/pkgs/by-name/ni/nirimod/package.nix +++ b/pkgs/by-name/ni/nirimod/package.nix @@ -16,8 +16,6 @@ python3Packages.buildPythonApplication { version = "0-unstable-2026-10-23"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "srinivasr"; repo = "nirimod"; diff --git a/pkgs/by-name/ni/nix-auth/package.nix b/pkgs/by-name/ni/nix-auth/package.nix index 662cf1af7649..6d929743e404 100644 --- a/pkgs/by-name/ni/nix-auth/package.nix +++ b/pkgs/by-name/ni/nix-auth/package.nix @@ -36,10 +36,8 @@ buildGoModule (finalAttrs: { installShellCompletion --cmd nix-auth \ --bash <($out/bin/nix-auth completion bash) \ --fish <($out/bin/nix-auth completion fish) \ + --powershell <($out/bin/nix-auth completion powershell) \ --zsh <($out/bin/nix-auth completion zsh) - - mkdir -p $out/share/powershell - $out/bin/nix-auth completion powershell > $out/share/powershell/nix-auth.Completion.ps1 ''; doInstallCheck = true; diff --git a/pkgs/by-name/ni/nix-check-deps/package.nix b/pkgs/by-name/ni/nix-check-deps/package.nix index 7b9831d97a99..8b8121210372 100644 --- a/pkgs/by-name/ni/nix-check-deps/package.nix +++ b/pkgs/by-name/ni/nix-check-deps/package.nix @@ -2,6 +2,8 @@ lib, rustPlatform, fetchFromGitHub, + pkg-config, + zstd, unstableGitUpdater, }: @@ -9,6 +11,8 @@ rustPlatform.buildRustPackage { pname = "nix-check-deps"; version = "0-unstable-2025-04-09"; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "GrimmTheShrimp"; repo = "nix-check-deps"; @@ -18,6 +22,10 @@ rustPlatform.buildRustPackage { cargoHash = "sha256-1fazKGz3PtyTvcIW+PY/LwYc6JlErSO9ZFisTUXJdhc="; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ zstd ]; + passthru.updateScript = unstableGitUpdater { }; meta = { diff --git a/pkgs/by-name/ni/nix-fast-build/package.nix b/pkgs/by-name/ni/nix-fast-build/package.nix index 6fe54a243187..ba1d0630e541 100644 --- a/pkgs/by-name/ni/nix-fast-build/package.nix +++ b/pkgs/by-name/ni/nix-fast-build/package.nix @@ -11,7 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "nix-fast-build"; version = "2.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Mic92"; diff --git a/pkgs/by-name/ni/nixos-enter/nixos-enter.sh b/pkgs/by-name/ni/nixos-enter/nixos-enter.sh index c57a7858110a..df9fc3681349 100755 --- a/pkgs/by-name/ni/nixos-enter/nixos-enter.sh +++ b/pkgs/by-name/ni/nixos-enter/nixos-enter.sh @@ -108,6 +108,8 @@ chroot_add_resolv_conf "$mountPoint" || echo "$0: failed to set up resolv.conf" chroot "$mountPoint" "$system/sw/bin/systemd-tmpfiles" --create --remove -E 2> /dev/null || true ) -unset TMPDIR +# HOSTNAME is unset to not accidentally build a nixos configuration named like the ISO. +# NIX_REMOTE is unset to not use the ISOs nix daemon by accident. +unset HOSTNAME NIX_REMOTE TMPDIR exec chroot "$mountPoint" "${command[@]}" diff --git a/pkgs/by-name/ni/nixos-firewall-tool/package.nix b/pkgs/by-name/ni/nixos-firewall-tool/package.nix index 08cf7b138c8a..1f7ae757f0a2 100644 --- a/pkgs/by-name/ni/nixos-firewall-tool/package.nix +++ b/pkgs/by-name/ni/nixos-firewall-tool/package.nix @@ -3,10 +3,12 @@ lib, bash, installShellFiles, + runCommand, buildPackages, + nixosTests, }: -stdenvNoCC.mkDerivation { +stdenvNoCC.mkDerivation (finalAttrs: { pname = "nixos-firewall-tool"; version = lib.trivial.release; src = builtins.filterSource (name: _: !(lib.hasSuffix ".nix" name)) ./.; @@ -14,7 +16,6 @@ stdenvNoCC.mkDerivation { strictDeps = true; buildInputs = [ bash ]; nativeBuildInputs = [ installShellFiles ]; - nativeCheckInputs = [ buildPackages.shellcheck-minimal ]; postPatch = '' patchShebangs --host nixos-firewall-tool @@ -26,10 +27,13 @@ stdenvNoCC.mkDerivation { installShellCompletion nixos-firewall-tool.{bash,fish} ''; - doCheck = buildPackages.shellcheck-minimal.compiler.bootstrapAvailable; - checkPhase = '' - shellcheck nixos-firewall-tool - ''; + passthru.tests = { + shellcheck = runCommand "nixos-firewall-tool-shellcheck" { } '' + ${lib.getExe buildPackages.shellcheck-minimal} ${finalAttrs.src}/nixos-firewall-tool + touch $out + ''; + inherit (nixosTests) firewall firewall-nftables; + }; meta = { description = "Tool to temporarily manipulate the NixOS firewall"; @@ -42,4 +46,4 @@ stdenvNoCC.mkDerivation { platforms = lib.platforms.linux; mainProgram = "nixos-firewall-tool"; }; -} +}) diff --git a/pkgs/by-name/ni/nixpkgs-review/package.nix b/pkgs/by-name/ni/nixpkgs-review/package.nix index f32a0d75cbfa..ecf85fbe6091 100644 --- a/pkgs/by-name/ni/nixpkgs-review/package.nix +++ b/pkgs/by-name/ni/nixpkgs-review/package.nix @@ -26,8 +26,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "4.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Mic92"; repo = "nixpkgs-review"; diff --git a/pkgs/by-name/ni/nixtract/package.nix b/pkgs/by-name/ni/nixtract/package.nix index 0284a59f8552..e7347c2a4916 100644 --- a/pkgs/by-name/ni/nixtract/package.nix +++ b/pkgs/by-name/ni/nixtract/package.nix @@ -3,7 +3,7 @@ rustPlatform, fetchFromGitHub, pkg-config, - openssl, + aws-lc, stdenv, libiconv, nix, @@ -27,7 +27,7 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config ]; buildInputs = [ - openssl + aws-lc ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv diff --git a/pkgs/by-name/nl/nlojet/package.nix b/pkgs/by-name/nl/nlojet/package.nix index 975fe5d33fc2..cece7a15604e 100644 --- a/pkgs/by-name/nl/nlojet/package.nix +++ b/pkgs/by-name/nl/nlojet/package.nix @@ -20,9 +20,7 @@ stdenv.mkDerivation (finalAttrs: { env.CXXFLAGS = "-std=c++11"; # error: no member named 'finite' in the global namespace; did you mean simply 'finite'? - env.NIX_CFLAGS_COMPILE = lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 - ) "-Dfinite=isfinite"; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Dfinite=isfinite"; meta = { homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html"; diff --git a/pkgs/by-name/ns/ns-3/package.nix b/pkgs/by-name/ns/ns-3/package.nix index 175bb064996d..268a692197a9 100644 --- a/pkgs/by-name/ns/ns-3/package.nix +++ b/pkgs/by-name/ns/ns-3/package.nix @@ -169,7 +169,6 @@ stdenv.mkDerivation (finalAttrs: { ]; # never built on aarch64-darwin since first introduction in nixpkgs broken = - (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) - || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); + stdenv.hostPlatform.isDarwin || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); }; }) diff --git a/pkgs/by-name/nt/ntdswolf/package.nix b/pkgs/by-name/nt/ntdswolf/package.nix index 68028d2fb608..c9317259f2da 100644 --- a/pkgs/by-name/nt/ntdswolf/package.nix +++ b/pkgs/by-name/nt/ntdswolf/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.6.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "StrongWind1"; repo = "NTDSWolf"; diff --git a/pkgs/by-name/nt/ntlm_theft/package.nix b/pkgs/by-name/nt/ntlm_theft/package.nix index 1cb1b3c42ee1..01cb12388f02 100644 --- a/pkgs/by-name/nt/ntlm_theft/package.nix +++ b/pkgs/by-name/nt/ntlm_theft/package.nix @@ -18,8 +18,6 @@ python3Packages.buildPythonApplication { hash = "sha256-va1qDfQ0s1/VsZc9xCIqGBfI3EGl+sfYTvYDnJqFe+0="; }; - __structuredAttrs = true; - build-system = with python3Packages; [ hatchling ]; diff --git a/pkgs/by-name/nt/ntpd-rs/package.nix b/pkgs/by-name/nt/ntpd-rs/package.nix index 0833b95b9ea5..b52cb461dcc2 100644 --- a/pkgs/by-name/nt/ntpd-rs/package.nix +++ b/pkgs/by-name/nt/ntpd-rs/package.nix @@ -101,7 +101,5 @@ rustPlatform.buildRustPackage (finalAttrs: { getchoo ]; mainProgram = "ntp-ctl"; - # note: Undefined symbols for architecture x86_64: "_ntp_adjtime" - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; }; }) diff --git a/pkgs/by-name/nu/nusmv/package.nix b/pkgs/by-name/nu/nusmv/package.nix index 6d1866720adc..0133f667044d 100644 --- a/pkgs/by-name/nu/nusmv/package.nix +++ b/pkgs/by-name/nu/nusmv/package.nix @@ -9,24 +9,12 @@ stdenv.mkDerivation (finalAttrs: { pname = "NuSMV"; version = "2.7.0"; - src = - with stdenv.hostPlatform; - fetchurl ( - if isx86_64 && isLinux then - { - url = "https://nusmv.fbk.eu/distrib/${finalAttrs.version}/NuSMV-${finalAttrs.version}-linux64.tar.xz"; - sha256 = "019d1pa5aw58n11is1024hs8d520b3pp2iyix78vp04yv7wd42l8"; - } - else if isx86_64 && isDarwin then - { - url = "https://nusmv.fbk.eu/distrib/${finalAttrs.version}/NuSMV-${finalAttrs.version}-macos-universal.tar.xz"; - sha256 = "098wllv4yx284qv9nsi8kd5pgh10cr1hig01a1p2rxgfmrki52wm"; - } - else - throw "only linux and mac x86_64 are currently supported" - ); + src = fetchurl { + url = "https://nusmv.fbk.eu/distrib/${finalAttrs.version}/NuSMV-${finalAttrs.version}-linux64.tar.xz"; + sha256 = "019d1pa5aw58n11is1024hs8d520b3pp2iyix78vp04yv7wd42l8"; + }; - nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; + nativeBuildInputs = [ autoPatchelfHook ]; installPhase = '' install -m755 -D bin/NuSMV $out/bin/NuSMV @@ -40,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://nusmv.fbk.eu/"; maintainers = with lib.maintainers; [ mgttlinger ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - platforms = lib.platforms.linux ++ lib.platforms.darwin; + platforms = [ "x86_64-linux" ]; license = lib.licenses.lgpl21Plus; }; }) diff --git a/pkgs/by-name/nv/nvitop/package.nix b/pkgs/by-name/nv/nvitop/package.nix index 375fb4016030..e35d65e2f82d 100644 --- a/pkgs/by-name/nv/nvitop/package.nix +++ b/pkgs/by-name/nv/nvitop/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "nvitop"; version = "1.7.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "XuehaiPan"; diff --git a/pkgs/by-name/oa/oama/package.nix b/pkgs/by-name/oa/oama/package.nix index 04ff98d32e7e..8b7e0b49aca3 100644 --- a/pkgs/by-name/oa/oama/package.nix +++ b/pkgs/by-name/oa/oama/package.nix @@ -42,10 +42,5 @@ lib.pipe raw-pkg [ (overrideCabal overrides) # FIXME: eliminate all erroneous references on aarch64-darwin manually, # see https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - justStaticExecutables - ) + (if stdenv.hostPlatform.isDarwin then lib.id else justStaticExecutables) ] diff --git a/pkgs/by-name/ob/obliteratus/package.nix b/pkgs/by-name/ob/obliteratus/package.nix index 6fd5b4520100..3737cbf1df56 100644 --- a/pkgs/by-name/ob/obliteratus/package.nix +++ b/pkgs/by-name/ob/obliteratus/package.nix @@ -19,8 +19,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { version = "0.1.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "elder-plinius"; repo = "OBLITERATUS"; diff --git a/pkgs/by-name/oc/ocinferno/package.nix b/pkgs/by-name/oc/ocinferno/package.nix index beaa2da565cf..0ee622ab5de1 100644 --- a/pkgs/by-name/oc/ocinferno/package.nix +++ b/pkgs/by-name/oc/ocinferno/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.6.2-unstable-2026-08-03"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "NetSPI"; repo = "OCInferno"; diff --git a/pkgs/by-name/oc/ocrodjvu/package.nix b/pkgs/by-name/oc/ocrodjvu/package.nix index a657929e5ed6..0cd64e3416aa 100644 --- a/pkgs/by-name/oc/ocrodjvu/package.nix +++ b/pkgs/by-name/oc/ocrodjvu/package.nix @@ -65,8 +65,8 @@ python3Packages.buildPythonApplication (finalAttrs: { tesseract5 ]; - unittestFlagsArray = [ - "tests" + unittestFlags = [ + "--start-directory=tests" "-v" ]; diff --git a/pkgs/by-name/on/oniux/package.nix b/pkgs/by-name/on/oniux/package.nix index 6af0a36d9b20..805ce201f64d 100644 --- a/pkgs/by-name/on/oniux/package.nix +++ b/pkgs/by-name/on/oniux/package.nix @@ -2,7 +2,11 @@ lib, rustPlatform, fetchFromGitLab, - perl, + pkg-config, + aws-lc, + openssl, + sqlite, + zstd, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -19,8 +23,13 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-Hx6BA+ynbPBtgB4jR9YSFJ++8ndDuRD6CFFsIzh9iAA="; - nativeBuildInputs = [ - perl + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + aws-lc + openssl + sqlite + zstd ]; passthru.updateScript = nix-update-script { }; diff --git a/pkgs/by-name/op/open-apple-macros/package.nix b/pkgs/by-name/op/open-apple-macros/package.nix new file mode 100644 index 000000000000..24927ea1c11e --- /dev/null +++ b/pkgs/by-name/op/open-apple-macros/package.nix @@ -0,0 +1,60 @@ +{ + lib, + fetchFromGitHub, + fetchSwiftPMDeps, + stdenv, + swift, + swiftpm, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "open-apple-macros"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "xtool-org"; + repo = "OpenAppleMacros"; + tag = "v1.3.0"; + hash = "sha256-qZQ3SH97bS/diA2gHOuVBlLgpNAeDW1IwebJLl2nN3M="; + }; + + strictDeps = true; + + swiftpmDeps = fetchSwiftPMDeps { + inherit (finalAttrs) pname version src; + hash = "sha256-rjwdYAYV5j7yYXtyLFhaXkqyl0sKj50FA1XoHcgm9qo="; + }; + + nativeBuildInputs = [ + swift + swiftpm + ]; + + postInstall = + # Put the plugin server at the expected location. + '' + declare -a supportedPlugins=( + FoundationModels + SwiftUI + ) + + mkdir -p "$out/libexec/swift" + mv "$out/bin" "$out/libexec/swift/plugins" + + # Use stub libraries so that users need only specify the plugin path and plugin server. + mkdir -p "$out/lib/swift/host/plugins" + for plugin in "''${supportedPlugins[@]}"; do + touch "$out/lib/swift/host/plugins/lib''${plugin}Macros${stdenv.hostPlatform.extensions.sharedLibrary}" + done + ''; + + __structuredAttrs = true; + + meta = { + homepage = "https://github.com/xtool-org/OpenAppleMacros"; + description = "Open source reimplementation of Xcode-only Swift macros"; + platforms = lib.platforms.darwin ++ lib.platforms.linux; + license = lib.licenses.mit; + teams = [ lib.teams.swift ]; + }; +}) diff --git a/pkgs/by-name/op/openapv/package.nix b/pkgs/by-name/op/openapv/package.nix index b9147f8ba2e6..cffac636b5fe 100644 --- a/pkgs/by-name/op/openapv/package.nix +++ b/pkgs/by-name/op/openapv/package.nix @@ -29,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; + strictDeps = true; + doCheck = true; passthru = { @@ -36,6 +38,8 @@ stdenv.mkDerivation (finalAttrs: { updateScript = nix-update-script { }; }; + __structuredAttrs = true; + meta = { changelog = "https://github.com/AcademySoftwareFoundation/openapv/releases/tag/v${finalAttrs.version}"; description = "Reference implementation of the APV codec"; diff --git a/pkgs/by-name/op/opencloud/generic.nix b/pkgs/by-name/op/opencloud/generic.nix index 8f645f9bf6e3..5d0bfa8bfec6 100644 --- a/pkgs/by-name/op/opencloud/generic.nix +++ b/pkgs/by-name/op/opencloud/generic.nix @@ -210,6 +210,12 @@ buildGoModule (finalAttrs: { rm -f services/search/pkg/{opensearch,parity}/*_test.go ''; + # skip test that asserts on pixel-exact font rendering + checkFlags = [ + "-skip" + "TestService_PreviewFont" + ]; + # The activitylog tests start a local NATS server. __darwinAllowLocalNetworking = true; diff --git a/pkgs/by-name/op/openexr/package.nix b/pkgs/by-name/op/openexr/package.nix index 0c96a7eaae03..a78f6e95c33b 100644 --- a/pkgs/by-name/op/openexr/package.nix +++ b/pkgs/by-name/op/openexr/package.nix @@ -14,13 +14,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "openexr"; - version = "3.5.1"; + version = "3.5.2"; src = fetchFromGitHub { owner = "AcademySoftwareFoundation"; repo = "openexr"; tag = "v${finalAttrs.version}"; - hash = "sha256-a+OWifnXplV9SLicOnVOpaSD8+lwBx6j1/I40O26p/s="; + hash = "sha256-6COvxY+LU4YxubpqjNTnYXMfDmMWXslQUYvd68+GgMQ="; }; outputs = [ diff --git a/pkgs/by-name/op/openhack/package.nix b/pkgs/by-name/op/openhack/package.nix index e6674e07d6b6..e1d00ba8c1ac 100644 --- a/pkgs/by-name/op/openhack/package.nix +++ b/pkgs/by-name/op/openhack/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.2.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "openhackai"; repo = "openhack"; diff --git a/pkgs/by-name/op/openjpeg/package.nix b/pkgs/by-name/op/openjpeg/package.nix index bce784c942d7..c08420c93e32 100644 --- a/pkgs/by-name/op/openjpeg/package.nix +++ b/pkgs/by-name/op/openjpeg/package.nix @@ -2,7 +2,7 @@ lib, stdenv, fetchFromGitHub, - fetchpatch, + fetchpatch2, cmake, pkg-config, libpng, @@ -38,17 +38,25 @@ let hash = "sha256-ckZHCZV5UJicVUoi/mZDwvCJneXC3X+NA8Byp6GLE0w="; }; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "openjpeg"; version = "2.5.4"; src = fetchFromGitHub { owner = "uclouvain"; repo = "openjpeg"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-HSXGdpHUbwlYy5a+zKpcLo2d+b507Qf5nsaMghVBlZ8="; }; + patches = [ + (fetchpatch2 { + name = "CVE-2026-6192.patch"; + url = "https://patch-diff.githubusercontent.com/raw/uclouvain/openjpeg/pull/1621.patch?full_index=1"; + hash = "sha256-TyDcugRF8fPCA4H5HzGCAKcfx5m3nWsaeMieUbU7OEI="; + }) + ]; + outputs = [ "out" "dev" @@ -62,9 +70,9 @@ stdenv.mkDerivation rec { (lib.cmakeBool "BUILD_JPIP_SERVER" jpipServerSupport) "-DBUILD_VIEWER=OFF" "-DBUILD_JAVA=OFF" - (lib.cmakeBool "BUILD_TESTING" doCheck) + (lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doCheck) ] - ++ lib.optional doCheck "-DOPJ_DATA_ROOT=${test-data}"; + ++ lib.optional finalAttrs.finalPackage.doCheck "-DOPJ_DATA_ROOT=${test-data}"; nativeBuildInputs = [ cmake @@ -83,6 +91,8 @@ stdenv.mkDerivation rec { ] ++ lib.optional jpipLibSupport jdk; + strictDeps = true; + # tests did fail on powerpc64 doCheck = !stdenv.hostPlatform.isPower64 && stdenv.buildPlatform.canExecute stdenv.hostPlatform; @@ -94,7 +104,7 @@ stdenv.mkDerivation rec { ''; passthru = { - incDir = "openjpeg-${lib.versions.majorMinor version}"; + incDir = "openjpeg-${lib.versions.majorMinor finalAttrs.version}"; tests = { ffmpeg = ffmpeg.override { withOpenjpeg = true; }; imagemagick = imagemagick.override { openjpegSupport = true; }; @@ -112,12 +122,14 @@ stdenv.mkDerivation rec { }; }; + __structuredAttrs = true; + meta = { description = "Open-source JPEG 2000 codec written in C language"; homepage = "https://www.openjpeg.org/"; license = lib.licenses.bsd2; maintainers = [ ]; platforms = lib.platforms.all; - changelog = "https://github.com/uclouvain/openjpeg/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/uclouvain/openjpeg/blob/v${finalAttrs.version}/CHANGELOG.md"; }; -} +}) diff --git a/pkgs/by-name/op/openlist/package.nix b/pkgs/by-name/op/openlist/package.nix index 9205eda64755..21ceb2abebf7 100644 --- a/pkgs/by-name/op/openlist/package.nix +++ b/pkgs/by-name/op/openlist/package.nix @@ -77,12 +77,6 @@ buildGoModule (finalAttrs: { "TestWebsocketAll" "TestWebsocketCaller" "TestDownloadOrder" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # --- FAIL: TestTask_Cancel (0.01s) - # task_test.go:48: task is running - # task_test.go:61: task status not canceled: canceling - "TestTask_Cancel" ]; in [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; diff --git a/pkgs/by-name/op/openscreen/package.nix b/pkgs/by-name/op/openscreen/package.nix index 00d900702312..662d9fc15fe2 100644 --- a/pkgs/by-name/op/openscreen/package.nix +++ b/pkgs/by-name/op/openscreen/package.nix @@ -6,7 +6,6 @@ copyDesktopItems, makeWrapper, makeDesktopItem, - xcbuild, electron_41, nodejs_22, nix-update-script, @@ -35,9 +34,6 @@ buildNpmPackage (finalAttrs: { nativeBuildInputs = [ makeWrapper copyDesktopItems - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - xcbuild ]; env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; diff --git a/pkgs/by-name/op/openttd-nml/package.nix b/pkgs/by-name/op/openttd-nml/package.nix index 6d8d61d8f7cc..b614f309f622 100644 --- a/pkgs/by-name/op/openttd-nml/package.nix +++ b/pkgs/by-name/op/openttd-nml/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.9.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "OpenTTD"; repo = "nml"; diff --git a/pkgs/by-name/or/oracle-instantclient/package.nix b/pkgs/by-name/or/oracle-instantclient/package.nix index aee5daa0bf79..088d43356fd0 100644 --- a/pkgs/by-name/or/oracle-instantclient/package.nix +++ b/pkgs/by-name/or/oracle-instantclient/package.nix @@ -69,7 +69,7 @@ let # assemble srcs srcs = map (component: fetcher (srcFilename component) hashes.${component}) components; - isDarwinAarch64 = stdenv.hostPlatform.system == "aarch64-darwin"; + inherit (stdenv.hostPlatform) isDarwin; pname = "oracle-instantclient"; extLib = stdenv.hostPlatform.extensions.sharedLibrary; @@ -85,7 +85,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ makeWrapper - (if isDarwinAarch64 then _7zz else unzip) + (if isDarwin then _7zz else unzip) ] ++ optional stdenv.hostPlatform.isLinux autoPatchelfHook ++ optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; @@ -97,7 +97,7 @@ stdenv.mkDerivation { ]; unpackCmd = - if isDarwinAarch64 then + if isDarwin then "7zz x $curSrc -aoa -oinstantclient -x!META-INF" else "unzip $curSrc -x 'META-INF/*'"; diff --git a/pkgs/by-name/or/orc/package.nix b/pkgs/by-name/or/orc/package.nix index de84f842a94d..12f3974d486d 100644 --- a/pkgs/by-name/or/orc/package.nix +++ b/pkgs/by-name/or/orc/package.nix @@ -40,11 +40,6 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-/fWXR9LuINXwVMXCAGVm4H6I+Lut1u43rz+xmV+5cVs="; }; - postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - # This benchmark times out on Hydra.nixos.org - sed -i '/memcpy_speed/d' testsuite/meson.build - ''; - mesonFlags = lib.mapAttrsToList lib.mesonEnable { examples = false; benchmarks = false; diff --git a/pkgs/by-name/or/orca/fix-mock-typing.patch b/pkgs/by-name/or/orca/fix-mock-typing.patch deleted file mode 100644 index 87a63ece07af..000000000000 --- a/pkgs/by-name/or/orca/fix-mock-typing.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff --git a/tests/unit_tests/test_dbus_service.py b/tests/unit_tests/test_dbus_service.py -index bf8cab8a7..0db3afd60 100644 ---- a/tests/unit_tests/test_dbus_service.py -+++ b/tests/unit_tests/test_dbus_service.py -@@ -59,6 +59,7 @@ class TestDBusService: - external_modules = [ - "gi", - "gi.repository", -+ "gi.repository.Atspi", - "dasbus", - "dasbus.connection", - "dasbus.error", -@@ -96,8 +97,16 @@ class TestDBusService: - """Unpack the variant value.""" - return self._value - -- essential_modules["gi.repository"].GLib = test_context.Mock() -- essential_modules["gi.repository"].GLib.Variant = MockGLibVariant -+ gi_repository_mock = essential_modules["gi.repository"] -+ gi_repository_mock.GLib = test_context.Mock() -+ gi_repository_mock.GLib.Variant = MockGLibVariant -+ -+ class Fake(): -+ pass -+ -+ atspi_mock = essential_modules["gi.repository.Atspi"] -+ atspi_mock.Accessible = Fake -+ gi_repository_mock.Atspi = atspi_mock - - class MockPublishable: - """Mock Publishable base class for inheritance.""" - - -Taken from https://gitlab.gnome.org/GNOME/orca/-/commit/20340d2075a34721aa6af46507d02525f3eac5f5 - -diff --git a/src/orca/ax_utilities_application.py b/src/orca/ax_utilities_application.py -index 2edcabf11..d59b8ae9e 100644 ---- a/src/orca/ax_utilities_application.py -+++ b/src/orca/ax_utilities_application.py -@@ -21,6 +21,7 @@ - - """Utilities for accessible applications.""" - -+from __future__ import annotations - import gi - - gi.require_version("Atspi", "2.0") - - -Taken from https://gitlab.gnome.org/GNOME/orca/-/commit/6c18ba002c6fac3fb80a10791b0daab6ea85f072 - -diff --git a/src/orca/ax_event_synthesizer.py b/src/orca/ax_event_synthesizer.py -index 4b999ef75..cb0f0e31a 100644 ---- a/src/orca/ax_event_synthesizer.py -+++ b/src/orca/ax_event_synthesizer.py -@@ -22,6 +22,8 @@ - - """Provides support for synthesizing accessible input events.""" - -+from __future__ import annotations -+ - import gi - - gi.require_version("Atspi", "2.0") diff --git a/pkgs/by-name/or/orca/package.nix b/pkgs/by-name/or/orca/package.nix index 4b738cb46d0d..013d1003e8d8 100644 --- a/pkgs/by-name/or/orca/package.nix +++ b/pkgs/by-name/or/orca/package.nix @@ -4,7 +4,6 @@ buildPackages, pkg-config, fetchurl, - fetchpatch, meson, ninja, wrapGAppsHook3, @@ -21,70 +20,47 @@ dbus, xkbcomp, procps, + cargo, + rustc, + rustPlatform, gsettings-desktop-schemas, speechd-minimal, brltty, liblouis, gst_all_1, + common-updater-scripts, + _experimental-update-script-combinators, }: python3.pkgs.buildPythonApplication (finalAttrs: { pname = "orca"; - version = "50.2"; + version = "51.0"; pyproject = false; src = fetchurl { url = "mirror://gnome/sources/orca/${lib.versions.major finalAttrs.version}/orca-${finalAttrs.version}.tar.xz"; - hash = "sha256-BxRCHN6OxLr0fxjktKErTlxKPP47FhVp4HD+A3cT/QQ="; + hash = "sha256-i8PkS8W3tm7H4MxcgmlcAHVmGSJ0XSVyT1/ISiVgIQg="; }; patches = [ - # Avoid running `cat` and `grep` subshells. - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/orca/-/commit/8f47283da2da7a7d34e769d9c129152decf632cb.patch"; - hash = "sha256-ts/ZCgEaTrnmMM1cUFJB2rDW9icMoi4jV34psD0IDCc="; - }) - - # Required for fix-paths.patch to apply. - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/orca/-/commit/a7b10302b9ff9145a98cb3626f2488d15c558d3e.patch"; - hash = "sha256-lacy9vIyM3n84s+tbYvAUBKWCT+4nlI9uPVl7UPVS74="; - includes = [ - "src/orca/orca_modifier_manager.py" - ]; - }) - - # Fix tests on Python < 3.15 - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/orca/-/commit/6c18ba002c6fac3fb80a10791b0daab6ea85f072.patch"; - hash = "sha256-jTwVN0hPkead7PiVo/KEUrP04XU/05LXnXutvVmyecc="; - excludes = [ - # These do not apply, fixed in fix-mock-typing.patch - "src/orca/ax_event_synthesizer.py" - "tests/unit_tests/test_flat_review_presenter.py" - ]; - }) - - # Fix more tests on Python < 3.15 - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/orca/-/commit/0a1271f0d6ed6f6d73d41b227a9f6d84d994c154.patch"; - hash = "sha256-ry8fmzUjtHR8/0UpB/zXuv6RYDS8z6fWRdb9eci6nLY="; - includes = [ - "src/orca/sound.py" - ]; - }) - - # Fix more tests on Python < 3.15 - # https://gitlab.gnome.org/GNOME/orca/-/work_items/729 - ./fix-mock-typing.patch - (replaceVars ./fix-paths.patch { pgrep = "${procps}/bin/pgrep"; xkbcomp = "${xkbcomp}/bin/xkbcomp"; }) ]; + cargoRoot = "subprojects/mathcat-py"; + cargoDeps = rustPlatform.fetchCargoVendor { + inherit (finalAttrs) + src + pname + version + cargoRoot + ; + hash = "sha256-XxdIfDqb/0eoB3dOHbBW104yxkiCX6oKnvOTqCALBvg="; + }; + # needed for cross-compilation depsBuildBuild = [ pkg-config ]; @@ -98,6 +74,9 @@ python3.pkgs.buildPythonApplication (finalAttrs: { ninja wrapGAppsHook3 pkg-config + cargo + rustc + rustPlatform.cargoSetupHook gettext yelp-tools itstool @@ -165,9 +144,33 @@ python3.pkgs.buildPythonApplication (finalAttrs: { ''; passthru = { - updateScript = gnome.updateScript { - packageName = "orca"; - }; + updateScript = + let + updateSource = gnome.updateScript { + packageName = "orca"; + }; + + updateLockfile = { + command = [ + "sh" + "-c" + '' + PATH=${ + lib.makeBinPath [ + common-updater-scripts + ] + } + update-source-version orca --ignore-same-version --source-key=cargoDeps.vendorStaging > /dev/null + '' + ]; + # Experimental feature: do not copy! + supportedFeatures = [ "silent" ]; + }; + in + _experimental-update-script-combinators.sequence [ + updateSource + updateLockfile + ]; }; meta = { diff --git a/pkgs/by-name/os/osu-lazer-bin/package.nix b/pkgs/by-name/os/osu-lazer-bin/package.nix index 8f19305cc174..8aeda1cf114a 100644 --- a/pkgs/by-name/os/osu-lazer-bin/package.nix +++ b/pkgs/by-name/os/osu-lazer-bin/package.nix @@ -85,11 +85,6 @@ else extraPkgs = pkgs: with pkgs; [ icu ]; - # fix OpenGL renderer on nvidia + wayland - extraBwrapArgs = [ - "--ro-bind-try /etc/egl/egl_external_platform.d /etc/egl/egl_external_platform.d" - ]; - extraInstallCommands = '' . ${makeWrapper}/nix-support/setup-hook mv -v $out/bin/${pname} $out/bin/osu! diff --git a/pkgs/by-name/ow/owocr/package.nix b/pkgs/by-name/ow/owocr/package.nix index 3f976a578e98..5098005954df 100644 --- a/pkgs/by-name/ow/owocr/package.nix +++ b/pkgs/by-name/ow/owocr/package.nix @@ -7,7 +7,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "owocr"; version = "1.26.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "AuroraWright"; diff --git a/pkgs/by-name/pa/pa-dlna/package.nix b/pkgs/by-name/pa/pa-dlna/package.nix index 25901a9ca3a6..1f6245431487 100644 --- a/pkgs/by-name/pa/pa-dlna/package.nix +++ b/pkgs/by-name/pa/pa-dlna/package.nix @@ -14,8 +14,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { version = "1.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitLab { owner = "xdegaye"; repo = "pa-dlna"; diff --git a/pkgs/by-name/pa/pango/package.nix b/pkgs/by-name/pa/pango/package.nix index 0aa38c8eac41..c93a6b3f895d 100644 --- a/pkgs/by-name/pa/pango/package.nix +++ b/pkgs/by-name/pa/pango/package.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "pango"; - version = "1.57.1"; + version = "1.58.2"; outputs = [ "bin" @@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/pango/${lib.versions.majorMinor finalAttrs.version}/pango-${finalAttrs.version}.tar.xz"; - hash = "sha256-5l1tEXCA3Drut9i0s7UY9zg6oubPziMRfGI81iR2TC8="; + hash = "sha256-NCOFtso7fHNFXXyAoTt9vkSJ4AvDvUxb1u1NzkIeN0o="; }; depsBuildBuild = [ diff --git a/pkgs/by-name/pa/pangomm_1_4/package.nix b/pkgs/by-name/pa/pangomm_1_4/package.nix index 439628e2ffa9..e9fb269b8f28 100644 --- a/pkgs/by-name/pa/pangomm_1_4/package.nix +++ b/pkgs/by-name/pa/pangomm_1_4/package.nix @@ -14,14 +14,14 @@ stdenv.mkDerivation rec { pname = "pangomm"; - version = "2.46.4"; + version = "2.46.5"; __structuredAttrs = true; strictDeps = true; src = fetchurl { url = "mirror://gnome/sources/pangomm/${lib.versions.majorMinor version}/pangomm-${version}.tar.xz"; - sha256 = "sha256-uSAWZhUmQk3kuTd/FRL1l4H0H7FsnAJn1hM7oc1o2yI="; + hash = "sha256-OMoLBQsGXeTj2gwYLfZXQ3dXBju/DEtslWfdugGbHWg="; }; outputs = [ diff --git a/pkgs/by-name/pa/pangomm_2_48/package.nix b/pkgs/by-name/pa/pangomm_2_48/package.nix index e57099e368f7..5d3d291c65f9 100644 --- a/pkgs/by-name/pa/pangomm_2_48/package.nix +++ b/pkgs/by-name/pa/pangomm_2_48/package.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { pname = "pangomm"; - version = "2.56.2"; + version = "2.58.0"; __structuredAttrs = true; strictDeps = true; @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://gnome/sources/pangomm/${lib.versions.majorMinor version}/pangomm-${version}.tar.xz"; - hash = "sha256-8emEyFqFtqDmFhY2ZSH1HdgoKgcrtF0VtQhHYrYvTA4="; + hash = "sha256-IXUUwaZQNcL85uaeM7DZK6+iWUzEdOmVpEc0QbEPOjM="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/pa/papers/package.nix b/pkgs/by-name/pa/papers/package.nix index 2695ea244070..02d180f5e43d 100644 --- a/pkgs/by-name/pa/papers/package.nix +++ b/pkgs/by-name/pa/papers/package.nix @@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "papers"; - version = "50.2"; + version = "51.0"; outputs = [ "out" @@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/papers/${lib.versions.major finalAttrs.version}/papers-${finalAttrs.version}.tar.xz"; - hash = "sha256-rhvc8c1Hy1DJ2EdleEYH+Bxy3xfdbmrZM/6hQXPSufQ="; + hash = "sha256-S4yvUn2F9+q8Y+vp0jIOBJBlPC4Ti4j79C5vQd0+RRw="; }; cargoDeps = rustPlatform.fetchCargoVendor { @@ -60,7 +60,7 @@ stdenv.mkDerivation (finalAttrs: { pname version ; - hash = "sha256-6Fd6V0Ksl8jqoM1znyYI0Mve2QQU+JBf3yn2C2Bcda8="; + hash = "sha256-GvC5Jv5k/uicRkoYw/YuGwlLPcCiAL1ALTel2KObwL0="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/pa/papilo/package.nix b/pkgs/by-name/pa/papilo/package.nix index fa41728b16c0..a3165944a7c1 100644 --- a/pkgs/by-name/pa/papilo/package.nix +++ b/pkgs/by-name/pa/papilo/package.nix @@ -19,20 +19,15 @@ stdenv.mkDerivation (finalAttrs: { }; # skip SEGFAULT tests - postPatch = - lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace test/CMakeLists.txt \ - --replace-fail '"matrix-buffer"' "" \ - --replace-fail '"vector-comparisons"' "" \ - --replace-fail '"matrix-comparisons"' "" \ - --replace-fail '"presolve-activity-is-updated-correctly-huge-values"' "" \ - --replace-fail '"problem-comparisons"' "" \ - --replace-fail "Boost_IOSTREAMS_FOUND" "FALSE" - '' - + (lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - substituteInPlace test/CMakeLists.txt \ - --replace-fail '"happy-path-replace-variable"' "" - ''); + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace test/CMakeLists.txt \ + --replace-fail '"matrix-buffer"' "" \ + --replace-fail '"vector-comparisons"' "" \ + --replace-fail '"matrix-comparisons"' "" \ + --replace-fail '"presolve-activity-is-updated-correctly-huge-values"' "" \ + --replace-fail '"problem-comparisons"' "" \ + --replace-fail "Boost_IOSTREAMS_FOUND" "FALSE" + ''; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/by-name/pc/pc-ble-driver/package.nix b/pkgs/by-name/pc/pc-ble-driver/package.nix index f2b4ff953fc0..35775286d68d 100644 --- a/pkgs/by-name/pc/pc-ble-driver/package.nix +++ b/pkgs/by-name/pc/pc-ble-driver/package.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DNRF_BLE_DRIVER_VERSION=${version}" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DARCH=arm64" ]; diff --git a/pkgs/by-name/pc/pcsclite/package.nix b/pkgs/by-name/pc/pcsclite/package.nix index 02373531eca7..47b7d89f45df 100644 --- a/pkgs/by-name/pc/pcsclite/package.nix +++ b/pkgs/by-name/pc/pcsclite/package.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: { inherit pname; - version = "2.4.1"; + version = "2.5.2"; outputs = [ "out" @@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "rousseau"; repo = "PCSC"; tag = finalAttrs.version; - hash = "sha256-I4kWToLixfkP0XaONiWqNLXXmz+3n+LafbITfZOxLZw="; + hash = "sha256-7C710Z44tySox3aJ14EZWYT9ITdqMJtVCZFqN0FHvuk="; }; mesonFlags = [ diff --git a/pkgs/by-name/pd/pdf-mcp/package.nix b/pkgs/by-name/pd/pdf-mcp/package.nix index b2ddcbc8b1e2..ee41d97563d5 100644 --- a/pkgs/by-name/pd/pdf-mcp/package.nix +++ b/pkgs/by-name/pd/pdf-mcp/package.nix @@ -14,16 +14,15 @@ let } ); in -pythonPackages.buildPythonApplication rec { +pythonPackages.buildPythonApplication (finalAttrs: { pname = "pdf-mcp"; version = "1.21.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jztan"; repo = "pdf-mcp"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-/CuVdfkJkc95JkZZZMA5euvdysdPObRcww+zImhCY5M="; }; @@ -88,10 +87,10 @@ pythonPackages.buildPythonApplication rec { meta = { description = "MCP server that lets AI agents work through large PDFs without overflowing their context"; homepage = "https://github.com/jztan/pdf-mcp"; - changelog = "https://github.com/jztan/pdf-mcp/releases/tag/v${version}"; + changelog = "https://github.com/jztan/pdf-mcp/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ derdennisop ]; mainProgram = "pdf-mcp"; platforms = lib.platforms.unix; }; -} +}) diff --git a/pkgs/by-name/pd/pdfalyzer/package.nix b/pkgs/by-name/pd/pdfalyzer/package.nix index 01ab5c5a4c5b..7bc9c2a9630d 100644 --- a/pkgs/by-name/pd/pdfalyzer/package.nix +++ b/pkgs/by-name/pd/pdfalyzer/package.nix @@ -12,8 +12,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.19.6"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "michelcrypt4d4mus"; repo = "pdfalyzer"; diff --git a/pkgs/by-name/pd/pdfding/package.nix b/pkgs/by-name/pd/pdfding/package.nix index 0263f825f05e..15f067ca8fb1 100644 --- a/pkgs/by-name/pd/pdfding/package.nix +++ b/pkgs/by-name/pd/pdfding/package.nix @@ -21,8 +21,6 @@ python.pkgs.buildPythonPackage (finalAttrs: { }; pyproject = true; - __structuredAttrs = true; - # remove supervisor from dependencies, we use systemd postPatch = '' sed -i 's/supervisor.*$//' pyproject.toml diff --git a/pkgs/by-name/pd/pdudaemon/package.nix b/pkgs/by-name/pd/pdudaemon/package.nix index b39539ab89a9..50c7c557465f 100644 --- a/pkgs/by-name/pd/pdudaemon/package.nix +++ b/pkgs/by-name/pd/pdudaemon/package.nix @@ -42,8 +42,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pytestCheckHook ]; - __structuredAttrs = true; - passthru.tests = { inherit (nixosTests) pdudaemon; }; diff --git a/pkgs/by-name/pe/petsc/package.nix b/pkgs/by-name/pe/petsc/package.nix index 73e8f36246b2..b07ff4f1d5ce 100644 --- a/pkgs/by-name/pe/petsc/package.nix +++ b/pkgs/by-name/pe/petsc/package.nix @@ -250,9 +250,8 @@ stdenv.mkDerivation (finalAttrs: { python3Packages.unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "src/binding/petsc4py/test" + unittestFlags = [ + "--start-directory=src/binding/petsc4py/test" "-v" ]; @@ -287,6 +286,8 @@ stdenv.mkDerivation (finalAttrs: { setupHook = ./setup-hook.sh; + __structuredAttrs = true; + meta = { description = "Portable Extensible Toolkit for Scientific computation"; homepage = "https://petsc.org/release/"; diff --git a/pkgs/by-name/pi/picard/package.nix b/pkgs/by-name/pi/picard/package.nix index c2ca1fd1a402..a55d47cce17c 100644 --- a/pkgs/by-name/pi/picard/package.nix +++ b/pkgs/by-name/pi/picard/package.nix @@ -19,7 +19,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "picard"; version = "3.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "metabrainz"; diff --git a/pkgs/by-name/pi/pipewire-control-center/package.nix b/pkgs/by-name/pi/pipewire-control-center/package.nix index a8cc9867b7a4..6aa5362d7d97 100644 --- a/pkgs/by-name/pi/pipewire-control-center/package.nix +++ b/pkgs/by-name/pi/pipewire-control-center/package.nix @@ -15,7 +15,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "pipewire-control-center"; version = "0.6.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "knightinfected"; diff --git a/pkgs/by-name/pi/pipewire/package.nix b/pkgs/by-name/pi/pipewire/package.nix index b1161e3c2642..1e6a30c41eec 100644 --- a/pkgs/by-name/pi/pipewire/package.nix +++ b/pkgs/by-name/pi/pipewire/package.nix @@ -88,7 +88,7 @@ in stdenv.mkDerivation (finalAttrs: { pname = "pipewire"; - version = "1.6.9"; + version = "1.6.11"; outputs = [ "out" @@ -104,7 +104,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "pipewire"; repo = "pipewire"; tag = finalAttrs.version; - hash = "sha256-YmICqzAHRuLoGuZ5UwvfLotOr04/usEPsRIKZXF4SLI="; + hash = "sha256-QNEU3nPvn//TOoN984TlH6zT59HYTS4UDyzZW9/SgCQ="; }; patches = [ diff --git a/pkgs/by-name/pi/pixelflasher/package.nix b/pkgs/by-name/pi/pixelflasher/package.nix index 8e5695933802..ea70380881f6 100644 --- a/pkgs/by-name/pi/pixelflasher/package.nix +++ b/pkgs/by-name/pi/pixelflasher/package.nix @@ -61,11 +61,7 @@ python3Packages.buildPythonApplication (finalAttrs: { buildPhase = let - specFile = - if stdenv.hostPlatform.isDarwin then - if stdenv.hostPlatform.isAarch64 then "build-on-mac" else "build-on-mac-intel-only" - else - "build-on-linux"; + specFile = if stdenv.hostPlatform.isDarwin then "build-on-mac" else "build-on-linux"; in '' runHook preBuild diff --git a/pkgs/by-name/pk/pkgconf-lite/package.nix b/pkgs/by-name/pk/pkgconf-lite/package.nix new file mode 100644 index 000000000000..d76207f4191c --- /dev/null +++ b/pkgs/by-name/pk/pkgconf-lite/package.nix @@ -0,0 +1,30 @@ +{ stdenv, libpkgconf }: +stdenv.mkDerivation (finalAttrs: { + pname = "pkgconf-lite"; + inherit (libpkgconf) version src; + + __structuredAttrs = true; + strictDeps = true; + enableParallelBuilding = true; + + makefile = "Makefile.lite"; + + makeFlags = [ + "SYSTEM_LIBDIR=/no-system-libdir" + "SYSTEM_INCLUDEDIR=/no-system-includedir" + "PKG_DEFAULT_PATH=/no-pkg-default-path" + ]; + + installPhase = '' + runHook preInstall + install -Dm644 pkg.m4 $out/share/aclocal/pkg.m4 + install -Dm755 pkgconf-lite $out/bin/pkgconf + ln -s pkgconf $out/bin/pkg-config + runHook postInstall + ''; + + meta = libpkgconf.meta // { + description = libpkgconf.meta.description + " (for early bootstrap)"; + outputsToInstall = [ "out" ]; + }; +}) diff --git a/pkgs/by-name/pl/platformio-core/package.nix b/pkgs/by-name/pl/platformio-core/package.nix index f358173398ce..1e6b0ef18495 100644 --- a/pkgs/by-name/pl/platformio-core/package.nix +++ b/pkgs/by-name/pl/platformio-core/package.nix @@ -119,7 +119,7 @@ buildPythonApplication rec { wsproto zeroconf ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ chardet ]; diff --git a/pkgs/by-name/po/podman/package.nix b/pkgs/by-name/po/podman/package.nix index 5415ca663399..083be6936eab 100644 --- a/pkgs/by-name/po/podman/package.nix +++ b/pkgs/by-name/po/podman/package.nix @@ -39,9 +39,6 @@ runtimeShell, fetchpatch, }: -let - systemdLibs' = systemdLibs.override { withCompression = true; }; -in buildGoModule (finalAttrs: { pname = "podman"; version = "6.1.4"; @@ -93,7 +90,7 @@ buildGoModule (finalAttrs: { libapparmor libseccomp libselinux - systemdLibs' + systemdLibs ]; env = { @@ -145,7 +142,7 @@ buildGoModule (finalAttrs: { postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' RPATH=$(patchelf --print-rpath $out/bin/.podman-wrapped) - patchelf --set-rpath "${lib.makeLibraryPath [ systemdLibs' ]}":$RPATH $out/bin/.podman-wrapped + patchelf --set-rpath "${lib.makeLibraryPath [ systemdLibs ]}":$RPATH $out/bin/.podman-wrapped substituteInPlace "$out/share/systemd/user/podman-user-wait-network-online.service" \ --replace-fail sleep '${coreutils}/bin/sleep' \ --replace-fail /bin/sh '${runtimeShell}' diff --git a/pkgs/by-name/po/poetry/unwrapped.nix b/pkgs/by-name/po/poetry/unwrapped.nix index 1c055472dc53..b5f15ebc18e7 100644 --- a/pkgs/by-name/po/poetry/unwrapped.nix +++ b/pkgs/by-name/po/poetry/unwrapped.nix @@ -113,13 +113,13 @@ buildPythonPackage rec { '' export HOME=$TMPDIR '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 export no_proxy='*'; '' ); - postCheck = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + postCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' unset no_proxy ''; diff --git a/pkgs/by-name/po/polysh/package.nix b/pkgs/by-name/po/polysh/package.nix index 1a4ccee645f9..0af5cf0d5551 100644 --- a/pkgs/by-name/po/polysh/package.nix +++ b/pkgs/by-name/po/polysh/package.nix @@ -7,7 +7,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "polysh"; version = "1.0.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "innogames"; diff --git a/pkgs/by-name/po/porting-advisor-for-graviton/package.nix b/pkgs/by-name/po/porting-advisor-for-graviton/package.nix index c775017e9342..40438309f850 100644 --- a/pkgs/by-name/po/porting-advisor-for-graviton/package.nix +++ b/pkgs/by-name/po/porting-advisor-for-graviton/package.nix @@ -19,8 +19,6 @@ buildPythonApplication (finalAttrs: { version = "1.1.1"; format = "other"; # Only has a requirements.txt - __structuredAttrs = true; - src = fetchFromGitHub { owner = "aws"; repo = "porting-advisor-for-graviton"; diff --git a/pkgs/by-name/pq/pq-cli/package.nix b/pkgs/by-name/pq/pq-cli/package.nix index dbe40cd0ccbe..df173f7d1684 100644 --- a/pkgs/by-name/pq/pq-cli/package.nix +++ b/pkgs/by-name/pq/pq-cli/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.0.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "rr-"; repo = "pq-cli"; diff --git a/pkgs/by-name/pq/pqc-bench/package.nix b/pkgs/by-name/pq/pqc-bench/package.nix index 014f2c1e2e5a..b51fc03b2974 100644 --- a/pkgs/by-name/pq/pqc-bench/package.nix +++ b/pkgs/by-name/pq/pqc-bench/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "csnp"; repo = "pqc-bench"; diff --git a/pkgs/by-name/pr/presenterm/package.nix b/pkgs/by-name/pr/presenterm/package.nix index 8822bc7a76f9..c4df31937611 100644 --- a/pkgs/by-name/pr/presenterm/package.nix +++ b/pkgs/by-name/pr/presenterm/package.nix @@ -4,13 +4,9 @@ rustPlatform, fetchFromGitHub, makeBinaryWrapper, - lld, versionCheckHook, nix-update-script, }: -let - inherit (stdenv.hostPlatform) isDarwin isx86_64; -in rustPlatform.buildRustPackage (finalAttrs: { pname = "presenterm"; version = "0.16.1"; @@ -22,20 +18,12 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-mIJktrgBweaaLD2YaRcs0vP5hKRy/kMN/HEnwO323DA="; }; - nativeBuildInputs = - lib.optionals isDarwin [ - makeBinaryWrapper - ] - ++ lib.optionals (isDarwin && isx86_64) [ - lld - ]; + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + makeBinaryWrapper + ]; cargoHash = "sha256-OlZXf8Wg32mXGDGbavLVf1ELoqqSmc8z9DNpvGOfAJ8="; - env = lib.optionalAttrs (isDarwin && isx86_64) { - NIX_CFLAGS_LINK = "-fuse-ld=lld"; - }; - checkFlags = [ # failed to load .tmpEeeeaQ: No such file or directory (os error 2) "--skip=external_snippet" diff --git a/pkgs/by-name/pr/pretalx/package.nix b/pkgs/by-name/pr/pretalx/package.nix index a83cde70d7fb..783768d5464f 100644 --- a/pkgs/by-name/pr/pretalx/package.nix +++ b/pkgs/by-name/pr/pretalx/package.nix @@ -36,8 +36,6 @@ python.pkgs.buildPythonApplication (finalAttrs: { version = "2026.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "pretalx"; repo = "pretalx"; diff --git a/pkgs/by-name/pr/pretix/package.nix b/pkgs/by-name/pr/pretix/package.nix index 315d15a14667..eea3e7a2b627 100644 --- a/pkgs/by-name/pr/pretix/package.nix +++ b/pkgs/by-name/pr/pretix/package.nix @@ -297,8 +297,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { }; }; - __structuredAttrs = true; - meta = { description = "Ticketing software that cares about your event—all the way"; homepage = "https://github.com/pretix/pretix"; diff --git a/pkgs/by-name/pr/pretix/plugins/fontpack-free/package.nix b/pkgs/by-name/pr/pretix/plugins/fontpack-free/package.nix index 5e445d42015b..e820355679aa 100644 --- a/pkgs/by-name/pr/pretix/plugins/fontpack-free/package.nix +++ b/pkgs/by-name/pr/pretix/plugins/fontpack-free/package.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "pretix-fontpack-free"; version = "1.11.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pretix"; diff --git a/pkgs/by-name/pr/probezen/package.nix b/pkgs/by-name/pr/probezen/package.nix index 31719955cb1d..07206920f41c 100644 --- a/pkgs/by-name/pr/probezen/package.nix +++ b/pkgs/by-name/pr/probezen/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "HemVadgama"; repo = "probezen"; diff --git a/pkgs/by-name/pr/prometheus-borgmatic-exporter/package.nix b/pkgs/by-name/pr/prometheus-borgmatic-exporter/package.nix index 2b51b2e2d64b..d466537d85a2 100644 --- a/pkgs/by-name/pr/prometheus-borgmatic-exporter/package.nix +++ b/pkgs/by-name/pr/prometheus-borgmatic-exporter/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finallAttrs: { version = "0.6.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "maxim-mityutko"; repo = "borgmatic-exporter"; diff --git a/pkgs/by-name/pr/prowler/package.nix b/pkgs/by-name/pr/prowler/package.nix index e6b77c6dc932..bb0f6b2ed315 100644 --- a/pkgs/by-name/pr/prowler/package.nix +++ b/pkgs/by-name/pr/prowler/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "5.47.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "prowler-cloud"; repo = "prowler"; diff --git a/pkgs/by-name/ps/psqlodbc/package.nix b/pkgs/by-name/ps/psqlodbc/package.nix index c19f767b8bc8..0321375dfd98 100644 --- a/pkgs/by-name/ps/psqlodbc/package.nix +++ b/pkgs/by-name/ps/psqlodbc/package.nix @@ -18,13 +18,13 @@ assert lib.xor withLibiodbc withUnixODBC; stdenv.mkDerivation (finalAttrs: { pname = "psqlodbc"; - version = "18.00.0004"; + version = "18.00.0005"; src = fetchFromGitHub { owner = "postgresql-interfaces"; repo = "psqlodbc"; tag = "REL-${lib.replaceString "." "_" finalAttrs.version}"; - hash = "sha256-niK1LHMmywo3Wu97v+D72eP2eAQaIPldIar1hZUlyRs="; + hash = "sha256-eTTSMmV4HdhfvcswWhzXP5ZqsUD/TPpdYwjhAxtQsrs="; }; buildInputs = [ diff --git a/pkgs/by-name/pw/pwneye/package.nix b/pkgs/by-name/pw/pwneye/package.nix index e7f64617d048..651bfa304c28 100644 --- a/pkgs/by-name/pw/pwneye/package.nix +++ b/pkgs/by-name/pw/pwneye/package.nix @@ -11,8 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.3.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Hackerest"; repo = "pwneye"; diff --git a/pkgs/by-name/py/pyp/package.nix b/pkgs/by-name/py/pyp/package.nix index 2a389fec6e21..59d25253a9f6 100644 --- a/pkgs/by-name/py/pyp/package.nix +++ b/pkgs/by-name/py/pyp/package.nix @@ -15,7 +15,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "pyp"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hauntsaninja"; diff --git a/pkgs/by-name/py/pyscan/package.nix b/pkgs/by-name/py/pyscan/package.nix index 1dde51029347..d3b30a701d5b 100644 --- a/pkgs/by-name/py/pyscan/package.nix +++ b/pkgs/by-name/py/pyscan/package.nix @@ -16,8 +16,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "2.1.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ohaswin"; repo = "pyscan"; diff --git a/pkgs/by-name/py/pyspread/package.nix b/pkgs/by-name/py/pyspread/package.nix index 4f4a84c15157..30d60c6652f4 100644 --- a/pkgs/by-name/py/pyspread/package.nix +++ b/pkgs/by-name/py/pyspread/package.nix @@ -11,7 +11,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "pyspread"; version = "2.4.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitLab { owner = "pyspread"; diff --git a/pkgs/by-name/qc/qcsuper/package.nix b/pkgs/by-name/qc/qcsuper/package.nix index d57d96636c1a..49595c217bca 100644 --- a/pkgs/by-name/qc/qcsuper/package.nix +++ b/pkgs/by-name/qc/qcsuper/package.nix @@ -17,7 +17,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "qcsuper"; version = "2.1.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "P1sec"; diff --git a/pkgs/by-name/ql/qlever-control/package.nix b/pkgs/by-name/ql/qlever-control/package.nix index b6610311a142..7b5ec1db58e1 100644 --- a/pkgs/by-name/ql/qlever-control/package.nix +++ b/pkgs/by-name/ql/qlever-control/package.nix @@ -38,8 +38,6 @@ python3Packages.buildPythonApplication (finalAttrs: { "qlever" ]; - __structuredAttrs = true; - meta = { description = "Command-line tool for controlling the QLever graph database"; homepage = "https://github.com/qlever-dev/qlever-control"; diff --git a/pkgs/by-name/qm/qmk/package.nix b/pkgs/by-name/qm/qmk/package.nix index bd78dbf345f9..a8e5036c4527 100644 --- a/pkgs/by-name/qm/qmk/package.nix +++ b/pkgs/by-name/qm/qmk/package.nix @@ -23,8 +23,6 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-FkvRbExAGyt2XuTwF7z6gUGULd82KWHEy6GXXYyyikg="; }; - __structuredAttrs = true; - build-system = with python3Packages; [ setuptools ]; diff --git a/pkgs/by-name/qr/qrupdate/package.nix b/pkgs/by-name/qr/qrupdate/package.nix index ef293c9ba37c..330dbbbe6df2 100644 --- a/pkgs/by-name/qr/qrupdate/package.nix +++ b/pkgs/by-name/qr/qrupdate/package.nix @@ -70,15 +70,10 @@ stdenv.mkDerivation (finalAttrs: { ctestCheckHook ]; - disabledTests = - lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [ - # https://github.com/mpimd-csc/qrupdate-ng/issues/7 - "test_tchshx" - ] - ++ lib.optionals (stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin) [ - # https://github.com/mpimd-csc/qrupdate-ng/issues/4 - "test_tch1dn" - ]; + disabledTests = lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [ + # https://github.com/mpimd-csc/qrupdate-ng/issues/7 + "test_tchshx" + ]; meta = { description = "Library for fast updating of qr and cholesky decompositions"; diff --git a/pkgs/by-name/ra/rauthy/package.nix b/pkgs/by-name/ra/rauthy/package.nix index 8eb334c4b9bd..3e2de81ab15f 100644 --- a/pkgs/by-name/ra/rauthy/package.nix +++ b/pkgs/by-name/ra/rauthy/package.nix @@ -7,12 +7,16 @@ npmHooks, nodejs, nix-update-script, - perl, + pkg-config, wasm-pack, wasm-bindgen-cli_0_2_129, + aws-lc, binaryen, lld, + openssl, rust-jemalloc-sys-unprefixed, + sqlite, + zstd, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "rauthy"; @@ -30,12 +34,18 @@ rustPlatform.buildRustPackage (finalAttrs: { lld nodejs npmHooks.npmConfigHook - perl + pkg-config wasm-bindgen-cli_0_2_129 wasm-pack ]; - buildInputs = [ rust-jemalloc-sys-unprefixed ]; + buildInputs = [ + aws-lc + openssl + rust-jemalloc-sys-unprefixed + sqlite + zstd + ]; npmRoot = "frontend"; diff --git a/pkgs/by-name/ra/rav1e/package.nix b/pkgs/by-name/ra/rav1e/package.nix index bfe1e64d7cf4..600268b69e99 100644 --- a/pkgs/by-name/ra/rav1e/package.nix +++ b/pkgs/by-name/ra/rav1e/package.nix @@ -30,14 +30,6 @@ rustPlatform.buildRustPackage (finalAttrs: { postPatch = '' # remove feature that requires libgit2 and is only used to print a version string substituteInPlace Cargo.toml --replace-fail '"git_version",' "" - '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - # Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library - # and linking it with cctools ld64. - substituteInPlace build.rs --replace-fail '.arg("-x")' '.arg("-S")' - - # Thin LTO doesn’t appear to work with Rust 1.79. rav1e fail to build when building fern. - substituteInPlace Cargo.toml --replace-fail 'lto = "thin"' 'lto = "fat"' ''; checkType = "debug"; diff --git a/pkgs/by-name/ra/rayforge/package.nix b/pkgs/by-name/ra/rayforge/package.nix index 3454bd240ac8..208573b005ee 100644 --- a/pkgs/by-name/ra/rayforge/package.nix +++ b/pkgs/by-name/ra/rayforge/package.nix @@ -19,8 +19,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.11.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "barebaric"; repo = "rayforge"; diff --git a/pkgs/by-name/ra/raysession/package.nix b/pkgs/by-name/ra/raysession/package.nix index 69a3400aaa84..8eaa251cef54 100644 --- a/pkgs/by-name/ra/raysession/package.nix +++ b/pkgs/by-name/ra/raysession/package.nix @@ -63,8 +63,6 @@ python3Packages.buildPythonApplication (finalAttrs: { "RCC=${qt6.qtbase}/libexec/rcc" ]; - strictDeps = true; - postFixup = '' wrapPythonProgramsIn "$out/share/raysession/src" "$out ''${pythonPath[*]}" for file in $out/bin/*; do diff --git a/pkgs/by-name/rc/rclip/package.nix b/pkgs/by-name/rc/rclip/package.nix index 62d46dabc340..5b293a5c627b 100644 --- a/pkgs/by-name/rc/rclip/package.nix +++ b/pkgs/by-name/rc/rclip/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "rclip"; version = "4.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "yurijmikhalevich"; diff --git a/pkgs/by-name/rd/rdma-core/package.nix b/pkgs/by-name/rd/rdma-core/package.nix index 5bdd7b631ae0..c84bde644666 100644 --- a/pkgs/by-name/rd/rdma-core/package.nix +++ b/pkgs/by-name/rd/rdma-core/package.nix @@ -59,6 +59,7 @@ stdenv.mkDerivation (finalAttrs: { "-DCMAKE_INSTALL_RUNDIR=/run" "-DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib" "-DSYSUSERS_DIR=${placeholder "out"}/lib/sysusers.d" + (lib.cmakeFeature "Python_EXECUTABLE" python3.pythonOnBuildForHost.interpreter) ] ++ lib.optionals (!withManPages) [ "-DNO_MAN_PAGES=1" diff --git a/pkgs/by-name/re/reattach-to-user-namespace/package.nix b/pkgs/by-name/re/reattach-to-user-namespace/package.nix index 9e5d6419fd9b..0052507605f5 100644 --- a/pkgs/by-name/re/reattach-to-user-namespace/package.nix +++ b/pkgs/by-name/re/reattach-to-user-namespace/package.nix @@ -16,9 +16,7 @@ stdenv.mkDerivation rec { }; buildFlags = - if stdenv.hostPlatform.system == "x86_64-darwin" then - [ "ARCHES=x86_64" ] - else if stdenv.hostPlatform.system == "aarch64-darwin" then + if stdenv.hostPlatform.isDarwin then [ "ARCHES=arm64" ] else throw "reattach-to-user-namespace isn't being built for ${stdenv.hostPlatform.system} yet."; diff --git a/pkgs/by-name/re/rectangle/package.nix b/pkgs/by-name/re/rectangle/package.nix index e5bb990d669f..626acab4229a 100644 --- a/pkgs/by-name/re/rectangle/package.nix +++ b/pkgs/by-name/re/rectangle/package.nix @@ -7,6 +7,7 @@ ibtool, makeWrapper, nix-update-script, + open-apple-macros, swift, stdenv, }: @@ -215,6 +216,8 @@ stdenv.mkDerivation (finalAttrs: { -module-name Rectangle \ -import-objc-header Rectangle/Rectangle-Bridging-Header.h \ -I "$buildDir" -L "$buildDir" \ + -external-plugin-path ${open-apple-macros}/lib/swift/host/plugins#${open-apple-macros}/libexec/swift/plugins/OpenAppleMacrosServer \ + -disable-sandbox \ -Xcc -fmodule-map-file="$buildDir/MAS_headers/MASShortcut/module.modulemap" \ -Xcc -I"$buildDir/MAS_headers" \ -lSparkle -lMASShortcut \ diff --git a/pkgs/by-name/re/redmine/package.nix b/pkgs/by-name/re/redmine/package.nix index 159568106533..ba9b2e8325c7 100644 --- a/pkgs/by-name/re/redmine/package.nix +++ b/pkgs/by-name/re/redmine/package.nix @@ -13,6 +13,8 @@ cargo, rustPlatform, buildRubyGem, + pkg-config, + oniguruma, }: let @@ -48,9 +50,11 @@ let nativeBuildInputs = [ cargo rustc + pkg-config rustPlatform.cargoSetupHook rustPlatform.bindgenHook ]; + buildInputs = [ oniguruma ]; disallowedReferences = [ rustc.unwrapped ]; diff --git a/pkgs/by-name/re/renameutils/package.nix b/pkgs/by-name/re/renameutils/package.nix index 21c8679f3c1e..8199c7d8921e 100644 --- a/pkgs/by-name/re/renameutils/package.nix +++ b/pkgs/by-name/re/renameutils/package.nix @@ -33,7 +33,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ readline ]; - preConfigure = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' export ac_cv_func_lstat64=no ''; diff --git a/pkgs/by-name/re/reticulated/package.nix b/pkgs/by-name/re/reticulated/package.nix index 417a86f40c50..134c0a9bb84d 100644 --- a/pkgs/by-name/re/reticulated/package.nix +++ b/pkgs/by-name/re/reticulated/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "reticulated"; version = "1.0.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "RFnexus"; diff --git a/pkgs/by-name/ri/riffle/package.nix b/pkgs/by-name/ri/riffle/package.nix index c4c3bce8e816..4618c9f10ae2 100644 --- a/pkgs/by-name/ri/riffle/package.nix +++ b/pkgs/by-name/ri/riffle/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "riffle"; version = "1.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Naved124"; diff --git a/pkgs/by-name/ri/rio/package.nix b/pkgs/by-name/ri/rio/package.nix index e657b3338116..4471f4e5620c 100644 --- a/pkgs/by-name/ri/rio/package.nix +++ b/pkgs/by-name/ri/rio/package.nix @@ -24,6 +24,7 @@ libxi, libxrandr, libxcb, + oniguruma, withWayland ? !stdenv.hostPlatform.isDarwin, wayland, testers, @@ -77,11 +78,13 @@ rustPlatform.buildRustPackage (finalAttrs: { runtimeDependencies = rlinkLibs; - buildInputs = - rlinkLibs - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - darwin.libutil - ]; + buildInputs = [ + oniguruma + ] + ++ rlinkLibs + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + darwin.libutil + ]; outputs = [ "out" diff --git a/pkgs/by-name/ri/ripgrep-all/package.nix b/pkgs/by-name/ri/ripgrep-all/package.nix index 75b7d7968344..8dc66100a3f7 100644 --- a/pkgs/by-name/ri/ripgrep-all/package.nix +++ b/pkgs/by-name/ri/ripgrep-all/package.nix @@ -9,6 +9,9 @@ ripgrep, zip, fzf, + pkg-config, + zstd, + sqlite, }: let @@ -37,9 +40,15 @@ rustPlatform.buildRustPackage (finalAttrs: { # override debug=true set in Cargo.toml upstream env.RUSTFLAGS = "-C debuginfo=none"; + buildInputs = [ + zstd + sqlite + ]; + nativeBuildInputs = [ makeWrapper poppler-utils + pkg-config ]; nativeCheckInputs = path; diff --git a/pkgs/by-name/rl/rlottie/package.nix b/pkgs/by-name/rl/rlottie/package.nix index d5768270efbd..858dad309e85 100644 --- a/pkgs/by-name/rl/rlottie/package.nix +++ b/pkgs/by-name/rl/rlottie/package.nix @@ -31,9 +31,7 @@ stdenv.mkDerivation { ./rename_format_to_run-clang-format.patch ]; - env.NIX_CFLAGS_COMPILE = lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 - ) "-U__ARM_NEON__"; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-U__ARM_NEON__"; passthru.updateScript = unstableGitUpdater { tagPrefix = "v"; diff --git a/pkgs/by-name/rn/rnmon/package.nix b/pkgs/by-name/rn/rnmon/package.nix index 3d072b2984bd..92e068096b68 100644 --- a/pkgs/by-name/rn/rnmon/package.nix +++ b/pkgs/by-name/rn/rnmon/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "rnmon"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lbatalha"; diff --git a/pkgs/by-name/rn/rnsapi/package.nix b/pkgs/by-name/rn/rnsapi/package.nix index 2ec9227a63c3..29e2b040864e 100644 --- a/pkgs/by-name/rn/rnsapi/package.nix +++ b/pkgs/by-name/rn/rnsapi/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "rnsapi"; version = "0-unstable-2026-07-09"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "attermann"; diff --git a/pkgs/by-name/ro/rotonda/package.nix b/pkgs/by-name/ro/rotonda/package.nix index 31f31285c994..7a8011b783d8 100644 --- a/pkgs/by-name/ro/rotonda/package.nix +++ b/pkgs/by-name/ro/rotonda/package.nix @@ -26,17 +26,14 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=http_api_responses_multiple_gets" "--skip=representation::genoutput_json" ] - ++ - lib.optionals - (stdenv.hostPlatform.system == "aarch64-darwin" || stdenv.hostPlatform.system == "x86_64-darwin") - [ - # Attempted to create a NULL object. - "--skip=manager::tests::added_target_should_be_spawned" - # Lazy instance has previously been poisoned - "--skip=manager::tests::modified_settings_are_correctly_announced" - "--skip=manager::tests::removed_target_should_be_terminated" - "--skip=manager::tests::unused_unit_should_not_be_spawned" - ]; + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Attempted to create a NULL object. + "--skip=manager::tests::added_target_should_be_spawned" + # Lazy instance has previously been poisoned + "--skip=manager::tests::modified_settings_are_correctly_announced" + "--skip=manager::tests::removed_target_should_be_terminated" + "--skip=manager::tests::unused_unit_should_not_be_spawned" + ]; passthru = { updateScript = nix-update-script { }; diff --git a/pkgs/by-name/rs/rs-reticulum/package.nix b/pkgs/by-name/rs/rs-reticulum/package.nix index e9e14973a2a7..7b422895e0e5 100644 --- a/pkgs/by-name/rs/rs-reticulum/package.nix +++ b/pkgs/by-name/rs/rs-reticulum/package.nix @@ -40,7 +40,7 @@ rustPlatform.buildRustPackage (finalAttrs: { __darwinAllowLocalNetworking = true; - checkFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ # Broken since 0.9.4 "--skip=actor::tests::test_rate_tracking" ]; diff --git a/pkgs/by-name/rs/rshell/package.nix b/pkgs/by-name/rs/rshell/package.nix index 64b0d1122eda..53c7926a595b 100644 --- a/pkgs/by-name/rs/rshell/package.nix +++ b/pkgs/by-name/rs/rshell/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.0.36"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SmbYNSB0eVUOWdDdPoMAPQTE7KeKTkklD4h+0t1LC/U="; diff --git a/pkgs/by-name/rs/rss2email/package.nix b/pkgs/by-name/rs/rss2email/package.nix index 19677fff4678..84868f8f4022 100644 --- a/pkgs/by-name/rs/rss2email/package.nix +++ b/pkgs/by-name/rs/rss2email/package.nix @@ -66,9 +66,8 @@ python3Packages.buildPythonApplication (finalAttrs: { python3Packages.unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" ]; meta = { diff --git a/pkgs/by-name/ru/ruff/package.nix b/pkgs/by-name/ru/ruff/package.nix index 1e077204ff36..069b5c7c62fa 100644 --- a/pkgs/by-name/ru/ruff/package.nix +++ b/pkgs/by-name/ru/ruff/package.nix @@ -8,6 +8,8 @@ rust-jemalloc-sys, buildPackages, versionCheckHook, + pkg-config, + zstd, # passthru nixosTests, @@ -16,7 +18,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "ruff"; - version = "0.17.3"; + version = "0.17.4"; __structuredAttrs = true; @@ -24,17 +26,21 @@ rustPlatform.buildRustPackage (finalAttrs: { owner = "astral-sh"; repo = "ruff"; tag = finalAttrs.version; - hash = "sha256-6KhpFNxK+CZBoO7/VXOA9MF0bkD7MnpI/VBgkkYxhsw="; + hash = "sha256-63UsA1N75qOBkStpaZN7TjPZiZx0LuiL4fzjgVYS3Ek="; }; cargoBuildFlags = [ "--package=ruff" ]; - cargoHash = "sha256-vHaaxm5/95vJQSs3eXzTZIl+bpXpdnaIvaZ0f8nqPJo="; + cargoHash = "sha256-N+xOMGpz1NIS7ZX/YwmJLCeK3/LEhXPGdUN2bZ7ZFR0="; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + pkg-config + ]; buildInputs = [ rust-jemalloc-sys + zstd ]; postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( diff --git a/pkgs/by-name/ru/rufin/package.nix b/pkgs/by-name/ru/rufin/package.nix index 10ef52db55d3..b11ce002c811 100644 --- a/pkgs/by-name/ru/rufin/package.nix +++ b/pkgs/by-name/ru/rufin/package.nix @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, rustPlatform, + aws-lc, cacert, cargo, cmake, @@ -15,6 +16,7 @@ ninja, pkg-config, rustc, + sqlite, wrapGAppsHook4, }: @@ -50,10 +52,12 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ + aws-lc glib glib-networking gtk4 libadwaita + sqlite ] ++ (with gst_all_1; [ gstreamer diff --git a/pkgs/by-name/ru/rumdl/package.nix b/pkgs/by-name/ru/rumdl/package.nix index 544138aa0325..98c67760d7cd 100644 --- a/pkgs/by-name/ru/rumdl/package.nix +++ b/pkgs/by-name/ru/rumdl/package.nix @@ -3,7 +3,10 @@ fetchFromGitHub, rustPlatform, installShellFiles, + pkg-config, gitMinimal, + rust-jemalloc-sys, + aws-lc, stdenv, versionCheckHook, nix-update-script, @@ -30,12 +33,21 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ installShellFiles + pkg-config ]; nativeCheckInputs = [ gitMinimal ]; + buildInputs = [ + rust-jemalloc-sys + ]; + + checkInputs = [ + aws-lc + ]; + __darwinAllowLocalNetworking = true; useNextest = true; diff --git a/pkgs/by-name/ru/runoff/package.nix b/pkgs/by-name/ru/runoff/package.nix index 0efd1740398a..acaa8902a64f 100644 --- a/pkgs/by-name/ru/runoff/package.nix +++ b/pkgs/by-name/ru/runoff/package.nix @@ -16,8 +16,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { hash = "sha256-E5mMI5f9FS4zqiQrMQ5A8OHjhV6vCmH2ZNgjpMr9Z18="; }; - __structuredAttrs = true; - build-system = with python3.pkgs; [ setuptools ]; dependencies = with python3.pkgs; [ diff --git a/pkgs/by-name/ru/rust-bindgen-unwrapped/package.nix b/pkgs/by-name/ru/rust-bindgen-unwrapped/package.nix index 74fb790d56cb..50e4576027d3 100644 --- a/pkgs/by-name/ru/rust-bindgen-unwrapped/package.nix +++ b/pkgs/by-name/ru/rust-bindgen-unwrapped/package.nix @@ -2,17 +2,19 @@ lib, fetchCrate, rustPlatform, - clang, rustfmt, }: let # bindgen hardcodes rustfmt outputs that use nightly features rustfmt-nightly = rustfmt.override { asNightly = true; }; + clang = rustPlatform.rust.rustc.llvmPackages.clang; in rustPlatform.buildRustPackage rec { pname = "rust-bindgen-unwrapped"; version = "0.72.1"; + __structuredAttrs = true; + src = fetchCrate { pname = "bindgen-cli"; inherit version; diff --git a/pkgs/by-name/ru/rust-cbindgen/package.nix b/pkgs/by-name/ru/rust-cbindgen/package.nix index c6e5427f80c2..f4be3fd280e2 100644 --- a/pkgs/by-name/ru/rust-cbindgen/package.nix +++ b/pkgs/by-name/ru/rust-cbindgen/package.nix @@ -16,6 +16,8 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "rust-cbindgen"; version = "0.29.4"; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "mozilla"; repo = "cbindgen"; diff --git a/pkgs/by-name/rv/rvgl-launcher/package.nix b/pkgs/by-name/rv/rvgl-launcher/package.nix index 0c27808653ad..d9c90c5ebbdf 100644 --- a/pkgs/by-name/rv/rvgl-launcher/package.nix +++ b/pkgs/by-name/rv/rvgl-launcher/package.nix @@ -20,8 +20,6 @@ let hash = "sha256-Xq8gFE8rWMwufvZL5ZaWXbQ/Ls6nPGgmU3PjzFeQOuM="; }; - __structuredAttrs = true; - build-system = with python3Packages; [ setuptools ]; dependencies = with python3Packages; [ diff --git a/pkgs/by-name/ry/rygel/add-option-for-installation-sysconfdir.patch b/pkgs/by-name/ry/rygel/add-option-for-installation-sysconfdir.patch index 5204e3518aba..f9ed49e134c1 100644 --- a/pkgs/by-name/ry/rygel/add-option-for-installation-sysconfdir.patch +++ b/pkgs/by-name/ry/rygel/add-option-for-installation-sysconfdir.patch @@ -2,7 +2,7 @@ diff --git a/meson.build b/meson.build index 27bde61f..3d434de9 100644 --- a/meson.build +++ b/meson.build -@@ -22,7 +22,11 @@ if not get_option('uninstalled') +@@ -38,7 +38,11 @@ rygel_datadir = join_paths(get_option('prefix'), get_option('datadir'), 'rygel') rygel_libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'), 'rygel') @@ -15,7 +15,7 @@ index 27bde61f..3d434de9 100644 rygel_plugindir = join_paths(rygel_libdir, 'rygel-2.8', 'plugins') rygel_enginedir = join_paths(rygel_libdir, 'rygel-2.8', 'engines') rygel_presetdir = join_paths(rygel_datadir, 'presets') -@@ -57,7 +61,7 @@ conf.set_quoted('DATA_DIR', rygel_datadir) +@@ -73,7 +77,7 @@ conf.set_quoted('PLUGIN_DIR', rygel_plugindir) conf.set_quoted('BIG_ICON_DIR', rygel_bigicondir) conf.set_quoted('SMALL_ICON_DIR', rygel_smallicondir) @@ -30,6 +30,6 @@ index fd04776a..3dee43ba 100644 +++ b/meson_options.txt @@ -1,3 +1,4 @@ +option('sysconfdir_install', type: 'string', value: '', description: 'sysconfdir to use during installation') - option('uninstalled', type: 'boolean', value: 'false', description: 'Run Rygel from build directory only') - option('api-docs', type: 'boolean', value: 'false', description: 'Build the API documentation') - option('man_pages', type: 'boolean', value: 'true', description: 'Build the man pages') + option('uninstalled', type: 'boolean', value: false, description: 'Run Rygel from build directory only') + option('api-docs', type: 'boolean', value: false, description: 'Build the API documentation') + option('man-pages', type: 'boolean', value: true, description: 'Build the man pages') diff --git a/pkgs/by-name/ry/rygel/package.nix b/pkgs/by-name/ry/rygel/package.nix index a3e4eeab9f6d..bda2af06c695 100644 --- a/pkgs/by-name/ry/rygel/package.nix +++ b/pkgs/by-name/ry/rygel/package.nix @@ -10,6 +10,7 @@ gettext, libxml2, libxslt, + docutils, gobject-introspection, wrapGAppsHook4, wrapGAppsNoGuiHook, @@ -38,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "rygel"; - version = "45.2"; + version = "46.0"; # TODO: split out lib outputs = [ @@ -48,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/rygel/${lib.versions.major finalAttrs.version}/rygel-${finalAttrs.version}.tar.xz"; - hash = "sha256-IOV7cLFahl133Dj594arxSxksRH+X5OKYsKNcS3xMx0="; + hash = "sha256-thUSyZMH4t5wgflrACQnu/I7JdWww/aujXeYyuvOSoY="; }; patches = [ @@ -64,9 +65,12 @@ stdenv.mkDerivation (finalAttrs: { gettext libxml2 libxslt # for xsltproc + docutils # for rst2man gobject-introspection (if withGtk then wrapGAppsHook4 else wrapGAppsNoGuiHook) - python3 + (python3.withPackages (ps: [ + ps.pyyaml + ])) ]; buildInputs = [ @@ -102,6 +106,7 @@ stdenv.mkDerivation (finalAttrs: { mesonFlags = [ "-Dsystemd-user-units-dir=${placeholder "out"}/lib/systemd/user" "-Dapi-docs=false" + (lib.mesonBool "examples" false) "--sysconfdir=/etc" "-Dsysconfdir_install=${placeholder "out"}/etc" (lib.mesonEnable "gtk" withGtk) diff --git a/pkgs/by-name/s2/s2n-tls/package.nix b/pkgs/by-name/s2/s2n-tls/package.nix index 4a7d5a0ffa9b..ae4cb7d41f0f 100644 --- a/pkgs/by-name/s2/s2n-tls/package.nix +++ b/pkgs/by-name/s2/s2n-tls/package.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "s2n-tls"; - version = "1.7.9"; + version = "1.7.12"; src = fetchFromGitHub { owner = "aws"; repo = "s2n-tls"; tag = "v${finalAttrs.version}"; - hash = "sha256-OGEqKjhl+gf8dq9ddIir+P4fUO+c9FGo/IsqDCCltqQ="; + hash = "sha256-2DbRhS4TQCK8ttFLVlIL9QYa1LHMJSoZWF9q7qVqGaY="; }; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/by-name/s3/s3cmd/package.nix b/pkgs/by-name/s3/s3cmd/package.nix index 8e9b4f8cfcce..42a0a9d2b3aa 100644 --- a/pkgs/by-name/s3/s3cmd/package.nix +++ b/pkgs/by-name/s3/s3cmd/package.nix @@ -9,8 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "2.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "s3tools"; repo = "s3cmd"; diff --git a/pkgs/by-name/sa/sacrifice/package.nix b/pkgs/by-name/sa/sacrifice/package.nix index 62353e481ea7..08284533a678 100644 --- a/pkgs/by-name/sa/sacrifice/package.nix +++ b/pkgs/by-name/sa/sacrifice/package.nix @@ -64,6 +64,6 @@ stdenv.mkDerivation { platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ veprbl ]; # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; } diff --git a/pkgs/by-name/sa/sagittarius-scheme/package.nix b/pkgs/by-name/sa/sagittarius-scheme/package.nix index 97541be796a3..c85fff946e19 100644 --- a/pkgs/by-name/sa/sagittarius-scheme/package.nix +++ b/pkgs/by-name/sa/sagittarius-scheme/package.nix @@ -57,10 +57,6 @@ stdenv.mkDerivation (finalAttrs: { lib.optionals stdenv.hostPlatform.isDarwin [ "-Wno-error=int-conversion" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # error: '__builtin_ia32_aeskeygenassist128' needs target feature aes - "-maes" - ] ); meta = { diff --git a/pkgs/by-name/sb/sbctl/package.nix b/pkgs/by-name/sb/sbctl/package.nix index 89a5ffaadfe0..84830cdd7232 100644 --- a/pkgs/by-name/sb/sbctl/package.nix +++ b/pkgs/by-name/sb/sbctl/package.nix @@ -43,11 +43,8 @@ buildGoModule (finalAttrs: { make docs/sbctl.conf.5 docs/sbctl.8 ''; - checkFlags = [ - # https://github.com/Foxboron/sbctl/issues/343 - "-skip" - "github.com/google/go-tpm-tools/.*" - ]; + # https://github.com/Foxboron/sbctl/issues/343 + doCheck = false; postInstall = '' installManPage docs/sbctl.conf.5 docs/sbctl.8 diff --git a/pkgs/by-name/sb/sbom-compliance-tool/package.nix b/pkgs/by-name/sb/sbom-compliance-tool/package.nix index 94f7132da2c6..3b50d7b78d08 100644 --- a/pkgs/by-name/sb/sbom-compliance-tool/package.nix +++ b/pkgs/by-name/sb/sbom-compliance-tool/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "sbom-compliance-tool"; version = "0.0.11"; pyproject = true; - __structuredAttrs = true; src = fetchFromCodeberg { owner = "software-compliance-org"; diff --git a/pkgs/by-name/sb/sbom-cve-check/package.nix b/pkgs/by-name/sb/sbom-cve-check/package.nix index 6131461d55ae..f5cc54d63a62 100644 --- a/pkgs/by-name/sb/sbom-cve-check/package.nix +++ b/pkgs/by-name/sb/sbom-cve-check/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.3.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "bootlin"; repo = "sbom-cve-check"; diff --git a/pkgs/by-name/sc/scantpaper/package.nix b/pkgs/by-name/sc/scantpaper/package.nix index 082859afa152..ac26f8a5c81a 100644 --- a/pkgs/by-name/sc/scantpaper/package.nix +++ b/pkgs/by-name/sc/scantpaper/package.nix @@ -43,8 +43,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { hash = "sha256-6zjIEwDHdOIAIucV4T/zY10F80nQNOgnRkA+i2n7Sng="; }; - __structuredAttrs = true; - dontWrapGApps = true; preFixup = '' makeWrapperArgs+=("''${gappsWrapperArgs[@]}") diff --git a/pkgs/by-name/sc/sccache/package.nix b/pkgs/by-name/sc/sccache/package.nix index 0e9f708fbe68..7ddd09c82d7a 100644 --- a/pkgs/by-name/sc/sccache/package.nix +++ b/pkgs/by-name/sc/sccache/package.nix @@ -4,6 +4,7 @@ rustPlatform, pkg-config, openssl, + zstd, distributed ? false, }: @@ -30,6 +31,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ openssl + zstd ]; # Tests fail because of client server setup which is not possible inside the diff --git a/pkgs/by-name/sc/scoutsuite/package.nix b/pkgs/by-name/sc/scoutsuite/package.nix index 662c670c27bf..9eb3b24a3a9c 100644 --- a/pkgs/by-name/sc/scoutsuite/package.nix +++ b/pkgs/by-name/sc/scoutsuite/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "5.14.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "nccgroup"; repo = "scoutsuite"; diff --git a/pkgs/by-name/sd/sdl12-compat/package.nix b/pkgs/by-name/sd/sdl12-compat/package.nix index 636e2641ca83..94f3a663afee 100644 --- a/pkgs/by-name/sd/sdl12-compat/package.nix +++ b/pkgs/by-name/sd/sdl12-compat/package.nix @@ -43,7 +43,7 @@ stdenv.mkDerivation (finalAttrs: { cmake pkg-config ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/sd/sdl2-compat/package.nix b/pkgs/by-name/sd/sdl2-compat/package.nix index 84582b5ad987..4e202cc5c906 100644 --- a/pkgs/by-name/sd/sdl2-compat/package.nix +++ b/pkgs/by-name/sd/sdl2-compat/package.nix @@ -65,6 +65,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "SDL2COMPAT_TESTS" finalAttrs.finalPackage.doCheck) (lib.cmakeFeature "CMAKE_INSTALL_RPATH" (lib.makeLibraryPath [ sdl3' ])) (lib.cmakeFeature "CMAKE_BUILD_RPATH" (lib.makeLibraryPath [ sdl3' ])) + (lib.cmakeBool "SDL2COMPAT_X11" x11Support) ]; # skip timing-based tests as those are flaky diff --git a/pkgs/by-name/se/seagoat/package.nix b/pkgs/by-name/se/seagoat/package.nix index e8d88aa53398..956cf5853bbf 100644 --- a/pkgs/by-name/se/seagoat/package.nix +++ b/pkgs/by-name/se/seagoat/package.nix @@ -19,7 +19,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "seagoat"; version = "1.6.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "kantord"; diff --git a/pkgs/by-name/se/selenium-manager/package.nix b/pkgs/by-name/se/selenium-manager/package.nix index 3a2217995c44..936d0cdbe6f6 100644 --- a/pkgs/by-name/se/selenium-manager/package.nix +++ b/pkgs/by-name/se/selenium-manager/package.nix @@ -2,12 +2,16 @@ lib, fetchFromGitHub, rustPlatform, + pkg-config, + zstd, }: rustPlatform.buildRustPackage rec { pname = "selenium-manager"; version = "4.40.0"; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "SeleniumHQ"; repo = "selenium"; @@ -23,6 +27,10 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-D7lki2/xWcNStcHIS8q1fTkW+37Q+m/yetn05DwA2C8="; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ zstd ]; + # TODO: enable tests # The test suite depends on a number of browsers and network requests, # check the Gentoo package for inspiration diff --git a/pkgs/by-name/se/sentry-cli/package.nix b/pkgs/by-name/se/sentry-cli/package.nix index 942bc45df0cd..ce923a9aafa6 100644 --- a/pkgs/by-name/se/sentry-cli/package.nix +++ b/pkgs/by-name/se/sentry-cli/package.nix @@ -3,7 +3,9 @@ fetchFromGitHub, lib, installShellFiles, + libgit2, openssl, + zstd, pkg-config, stdenv, swift, @@ -29,10 +31,27 @@ rustPlatform.buildRustPackage (finalAttrs: { (replaceVars ./fix-swift-lib-path.patch { swiftLib = lib.getLib swift; }) ]; - cargoHash = "sha256-CwULTOZN2TTpB8heLuegID38ub6J3XoiY7l7UW1VcGo="; + postPatch = + # Swift propagates the 27.0 SDK, which requires a newer deployment target. + # SwiftPM uses Swift Build, which uses a different folder hierarchy for its build artifacts and naming convention + # for compiled object files. + '' + substituteInPlace apple-catalog-parsing/build.rs \ + --replace-fail 'apple-macosx10.12' 'apple-macosx${stdenv.hostPlatform.darwinMinVersion}' \ + --replace-fail 'swift-scratch/release' 'swift-scratch/out' \ + --replace-fail 'AssetCatalogParser.build' 'Intermediates.noindex/AssetCatalogParser.build/Release/AssetCatalogParser-t.build/Objects-normal/${stdenv.hostPlatform.swift.arch}' \ + --replace-fail 'ObjcSupport.build' 'Intermediates.noindex/AssetCatalogParser.build/Release/ObjcSupport-t.build/Objects-normal/${stdenv.hostPlatform.swift.arch}' \ + --replace-fail '.m.o' '.o' \ + --replace-fail '.swift.o' '.o' + '' + # The version of libgit2-sys used by sentry-cli doesn’t support the version of libgit2 packaged in Nixpkgs, + # but it works, so use it anyway. This can be dropped once sentry-cli updates its dependencies. + + '' + substituteInPlace ../sentry-*-vendor/source-registry-0/libgit2-sys-*/build.rs \ + --replace-fail '"1.7.2".."1.8.0"' '"1.7.2"..="${lib.getVersion libgit2}"' + ''; - # Needed to get openssl-sys to use pkgconfig. - env.OPENSSL_NO_VENDOR = 1; + cargoHash = "sha256-CwULTOZN2TTpB8heLuegID38ub6J3XoiY7l7UW1VcGo="; # By default including `swiftpm` in `nativeBuildInputs` will take over `buildPhase` dontUseSwiftpmBuild = true; @@ -50,7 +69,11 @@ rustPlatform.buildRustPackage (finalAttrs: { swiftpm ]; - buildInputs = [ openssl ]; + buildInputs = [ + libgit2 + openssl + zstd + ]; nativeCheckInputs = [ gitMinimal ]; diff --git a/pkgs/by-name/se/servo/package.nix b/pkgs/by-name/se/servo/package.nix index 9643c7266b00..eb2b805cb34e 100644 --- a/pkgs/by-name/se/servo/package.nix +++ b/pkgs/by-name/se/servo/package.nix @@ -24,6 +24,7 @@ yasm, # runtime deps + aws-lc, fontconfig, freetype, gst_all_1, @@ -39,7 +40,10 @@ libxcursor, libx11, libxcb, + rust-jemalloc-sys, + sqlite, zlib, + zstd, # tests nixosTests, @@ -144,6 +148,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + aws-lc fontconfig freetype gst_all_1.gstreamer @@ -154,7 +159,10 @@ rustPlatform.buildRustPackage (finalAttrs: { harfbuzz libunwind libGL + rust-jemalloc-sys + sqlite zlib + zstd ] ++ lib.optionals stdenv.hostPlatform.isLinux [ wayland diff --git a/pkgs/by-name/se/setxkbmap/package.nix b/pkgs/by-name/se/setxkbmap/package.nix index 0b487e787508..4e06324a4c74 100644 --- a/pkgs/by-name/se/setxkbmap/package.nix +++ b/pkgs/by-name/se/setxkbmap/package.nix @@ -43,6 +43,8 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=setxkbmap-(.*)" ]; }; + __structuredAttrs = true; + meta = { description = "Set keymaps, layouts, and options via the X Keyboard Extension (XKB)"; longDescription = '' diff --git a/pkgs/by-name/sh/shaderc/package.nix b/pkgs/by-name/sh/shaderc/package.nix index 97e1f69018bf..63fcc8f11e88 100644 --- a/pkgs/by-name/sh/shaderc/package.nix +++ b/pkgs/by-name/sh/shaderc/package.nix @@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/by-name/sh/shira/package.nix b/pkgs/by-name/sh/shira/package.nix index 7de856149e98..de8c769183f9 100644 --- a/pkgs/by-name/sh/shira/package.nix +++ b/pkgs/by-name/sh/shira/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.8.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "KraXen72"; repo = "shira"; diff --git a/pkgs/by-name/si/sideband/package.nix b/pkgs/by-name/si/sideband/package.nix index 009033f639bd..f4909436853a 100644 --- a/pkgs/by-name/si/sideband/package.nix +++ b/pkgs/by-name/si/sideband/package.nix @@ -9,7 +9,6 @@ python313Packages.buildPythonApplication (finalAttrs: { pname = "sideband"; version = "2.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "markqvist"; diff --git a/pkgs/by-name/si/sile/package.nix b/pkgs/by-name/si/sile/package.nix index 7981bc0ee861..e2723d561001 100644 --- a/pkgs/by-name/si/sile/package.nix +++ b/pkgs/by-name/si/sile/package.nix @@ -154,7 +154,7 @@ stdenv.mkDerivation (finalAttrs: { luaEnv = luajit.withPackages (ps: lib.attrVals finalAttrs.finalPackage.passthru.luaPackages ps); # Copied from Makefile.am - tests.test = lib.optionalAttrs (!(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)) ( + tests.test = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) ( runCommand "${finalAttrs.pname}-test" { nativeBuildInputs = [ diff --git a/pkgs/by-name/si/simdjson/package.nix b/pkgs/by-name/si/simdjson/package.nix index ded5d188378d..89594db90e81 100644 --- a/pkgs/by-name/si/simdjson/package.nix +++ b/pkgs/by-name/si/simdjson/package.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "simdjson"; - version = "4.6.11"; + version = "5.0.5"; src = fetchFromGitHub { owner = "simdjson"; repo = "simdjson"; tag = "v${finalAttrs.version}"; - hash = "sha256-JjcvJldWQTTFq9PU1F0IafL7GVoMfVUDz6hVb5Po/A4="; + hash = "sha256-smD805QjIwUqTyMC0RmjjRKUX3jJZo/uOHSTvcBzca0="; }; outputs = [ diff --git a/pkgs/by-name/si/simdutf/package.nix b/pkgs/by-name/si/simdutf/package.nix index fff022b8db63..37b181636375 100644 --- a/pkgs/by-name/si/simdutf/package.nix +++ b/pkgs/by-name/si/simdutf/package.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "simdutf"; - version = "9.2.1"; + version = "9.3.3"; src = fetchFromGitHub { owner = "simdutf"; repo = "simdutf"; tag = "v${finalAttrs.version}"; - hash = "sha256-MZUEZWibRgoVwjz3SqkNTepAHgreWYkZTWh74jXtRfY="; + hash = "sha256-xCQf+PQKybvGIN/DxwNIrSpkQFdCCyo/A7pXThsd6zk="; }; outputs = [ diff --git a/pkgs/by-name/sl/slepc/package.nix b/pkgs/by-name/sl/slepc/package.nix index 84aa9476940f..01862b9861ba 100644 --- a/pkgs/by-name/sl/slepc/package.nix +++ b/pkgs/by-name/sl/slepc/package.nix @@ -84,9 +84,8 @@ stdenv.mkDerivation (finalAttrs: { installCheckTarget = [ "check_install" ]; - unittestFlagsArray = [ - "-s" - "src/binding/slepc4py/test" + unittestFlags = [ + "--start-directory=src/binding/slepc4py/test" "-v" ]; @@ -94,6 +93,8 @@ stdenv.mkDerivation (finalAttrs: { setupHook = ./setup-hook.sh; + __structuredAttrs = true; + meta = { description = "Scalable Library for Eigenvalue Problem Computations"; homepage = "https://slepc.upv.es"; diff --git a/pkgs/by-name/sn/snakemake/package.nix b/pkgs/by-name/sn/snakemake/package.nix index 45d64e032b17..9d40fb47855b 100644 --- a/pkgs/by-name/sn/snakemake/package.nix +++ b/pkgs/by-name/sn/snakemake/package.nix @@ -13,7 +13,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "snakemake"; version = "9.27.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/by-name/sn/snapshot/package.nix b/pkgs/by-name/sn/snapshot/package.nix index 3453c0fca4eb..d2f3edf3c486 100644 --- a/pkgs/by-name/sn/snapshot/package.nix +++ b/pkgs/by-name/sn/snapshot/package.nix @@ -18,19 +18,17 @@ gtk4, libadwaita, libcamera, - lcms2, - libseccomp, pipewire, gnome, }: stdenv.mkDerivation (finalAttrs: { pname = "snapshot"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/snapshot/${lib.versions.major finalAttrs.version}/snapshot-${finalAttrs.version}.tar.xz"; - hash = "sha256-7J2vmIPrkDMJEbtR5rae7YydvdVDjoZK3JDuVaX+nu0="; + hash = "sha256-PmT6TNGnQq40tvbY5tlhSi0+q4ihsAccEatTYX6yFMI="; }; cargoVendorDir = "vendor"; @@ -60,15 +58,13 @@ stdenv.mkDerivation (finalAttrs: { gtk4 libadwaita libcamera # for the gstreamer plugin - lcms2 - libseccomp pipewire # for device provider ]; postPatch = '' substituteInPlace src/meson.build --replace-fail \ - "'cp', cargo_target / rust_target / meson.project_name()" \ - "'cp', cargo_target / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name()" + "cargo_target / rust_target / meson.project_name()," \ + "cargo_target / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name()," ''; preFixup = '' diff --git a/pkgs/by-name/so/solaar/package.nix b/pkgs/by-name/so/solaar/package.nix index ff9f48055a39..9475ea4f999f 100644 --- a/pkgs/by-name/so/solaar/package.nix +++ b/pkgs/by-name/so/solaar/package.nix @@ -32,8 +32,6 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-h/uiy0TtMicKch2cdXHur5DkvQun2sAw2HpFI7Qstqg="; }; - __structuredAttrs = true; - outputs = [ "out" "udev" diff --git a/pkgs/by-name/so/soupault/package.nix b/pkgs/by-name/so/soupault/package.nix index 5e45df5959d4..e2d94d4da34e 100644 --- a/pkgs/by-name/so/soupault/package.nix +++ b/pkgs/by-name/so/soupault/package.nix @@ -27,7 +27,7 @@ ocamlPackages.buildDunePackage (finalAttrs: { nativeBuildInputs = [ removeReferencesTo ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.sigtool ]; diff --git a/pkgs/by-name/so/sourceHighlight/gcc16-disambiguate-regex-ranges-test.patch b/pkgs/by-name/so/source-highlight/gcc16-disambiguate-regex-ranges-test.patch similarity index 100% rename from pkgs/by-name/so/sourceHighlight/gcc16-disambiguate-regex-ranges-test.patch rename to pkgs/by-name/so/source-highlight/gcc16-disambiguate-regex-ranges-test.patch diff --git a/pkgs/by-name/so/sourceHighlight/package.nix b/pkgs/by-name/so/source-highlight/package.nix similarity index 89% rename from pkgs/by-name/so/sourceHighlight/package.nix rename to pkgs/by-name/so/source-highlight/package.nix index 1aefe6c81d21..ee845c972509 100644 --- a/pkgs/by-name/so/sourceHighlight/package.nix +++ b/pkgs/by-name/so/source-highlight/package.nix @@ -5,6 +5,7 @@ fetchurl, boost, updateAutotoolsGnuConfigScriptsHook, + versionCheckHook, llvmPackages, }: @@ -20,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnu/src-highlite/source-highlight-${finalAttrs.version}.tar.gz"; - sha256 = "148w47k3zswbxvhg83z38ifi85f9dqcpg7icvvw1cm6bg21x4zrs"; + hash = "sha256-On/Sg3jLVBb43iyedxluyRUUXUTjD/Tg7ovrP+YhHJE="; }; patches = [ @@ -68,9 +69,7 @@ stdenv.mkDerivation (finalAttrs: { boost ] ++ lib.optional (stdenv.targetPlatform.useLLVM or false) ( - llvmPackages.compiler-rt.override { - doFakeLibgcc = true; - } + llvmPackages.compiler-rt.override { doFakeLibgcc = true; } ); configureFlags = [ @@ -90,6 +89,9 @@ stdenv.mkDerivation (finalAttrs: { # them in parallel by make will eventually break one or more tests. enableParallelChecking = false; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + __structuredAttrs = true; meta = { @@ -100,7 +102,10 @@ stdenv.mkDerivation (finalAttrs: { ''; homepage = "https://www.gnu.org/software/src-highlite/"; license = lib.licenses.gpl3Plus; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ SuperSandro2000 ]; + mainProgram = "source-highlight"; + maintainers = with lib.maintainers; [ + yiyu + ]; + platforms = lib.platforms.all; }; }) diff --git a/pkgs/by-name/sp/speech-to-phrase/package.nix b/pkgs/by-name/sp/speech-to-phrase/package.nix index b06aba166def..88aa95c81c6f 100644 --- a/pkgs/by-name/sp/speech-to-phrase/package.nix +++ b/pkgs/by-name/sp/speech-to-phrase/package.nix @@ -46,8 +46,6 @@ python3Packages.buildPythonApplication (finalAttrs: { inherit version src; pyproject = true; - __structuredAttrs = true; - patches = [ # ERROR: Fst::Write: Can't open file: - ./fix-stdout.diff diff --git a/pkgs/by-name/sp/spirv-llvm-translator/package.nix b/pkgs/by-name/sp/spirv-llvm-translator/package.nix index fa1135a91f77..627d477beb07 100644 --- a/pkgs/by-name/sp/spirv-llvm-translator/package.nix +++ b/pkgs/by-name/sp/spirv-llvm-translator/package.nix @@ -16,6 +16,11 @@ let llvmMajor = lib.versions.major llvm.version; versions = { + "23" = rec { + version = "23.1.2"; + rev = "v${version}"; + hash = "sha256-V7AZ0e85ogfkFPMUBYqELQzHIsowM112PW4oHpzXU20="; + }; "22" = rec { version = "22.1.3"; rev = "v${version}"; @@ -107,7 +112,7 @@ stdenv.mkDerivation { ''; passthru.tests = lib.genAttrs (lib.attrNames versions) ( - version: pkgs.spirv-llvm-translator.override { llvm = pkgs."llvm_${version}"; } + version: pkgs.spirv-llvm-translator.override { llvm = pkgs."llvmPackages_${version}".llvm; } ); meta = { diff --git a/pkgs/by-name/sp/sportstracker/package.nix b/pkgs/by-name/sp/sportstracker/package.nix index b5c5f4a24d84..196da2794f0a 100644 --- a/pkgs/by-name/sp/sportstracker/package.nix +++ b/pkgs/by-name/sp/sportstracker/package.nix @@ -15,7 +15,7 @@ let if jdk21.pname == "openjdk" then jdk21.override { enableJavaFX = true; - openjfx21 = openjfx21.override { withWebKit = true; }; + openjfx_jdk = openjfx21.override { withWebKit = true; }; } else throw "bad jdk variant"; diff --git a/pkgs/by-name/sq/sqlit-tui/package.nix b/pkgs/by-name/sq/sqlit-tui/package.nix index 766d6ea2a257..c18a6ba7b344 100644 --- a/pkgs/by-name/sq/sqlit-tui/package.nix +++ b/pkgs/by-name/sq/sqlit-tui/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "sqlit-tui"; version = "1.6.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Maxteabag"; diff --git a/pkgs/by-name/st/stable-diffusion-cpp/package.nix b/pkgs/by-name/st/stable-diffusion-cpp/package.nix index 95381e8c04ff..be9755357f6c 100644 --- a/pkgs/by-name/st/stable-diffusion-cpp/package.nix +++ b/pkgs/by-name/st/stable-diffusion-cpp/package.nix @@ -25,7 +25,7 @@ vulkan-loader, spirv-tools, - metalSupport ? (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64), + metalSupport ? stdenv.hostPlatform.isDarwin, darwin, apple-sdk, }: diff --git a/pkgs/by-name/st/stalwart_0_16/package.nix b/pkgs/by-name/st/stalwart_0_16/package.nix index fbfa7010bd7e..ca0ea17ac919 100644 --- a/pkgs/by-name/st/stalwart_0_16/package.nix +++ b/pkgs/by-name/st/stalwart_0_16/package.nix @@ -30,7 +30,6 @@ let python3Packages.buildPythonApplication { pname = "migrate_v016"; inherit src version; - __structuredAttrs = true; format = "other"; dontBuild = true; dependencies = [ diff --git a/pkgs/by-name/st/starboard/package.nix b/pkgs/by-name/st/starboard/package.nix index f1c13405c302..16ee6a780f1c 100644 --- a/pkgs/by-name/st/starboard/package.nix +++ b/pkgs/by-name/st/starboard/package.nix @@ -50,10 +50,6 @@ buildGoModule (finalAttrs: { preCheck = '' # Remove test that requires networking rm pkg/plugin/aqua/client/client_integration_test.go - ${lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - # Remove "[It] should make a request to fetch registries" test that fails on x86_64-darwin - rm pkg/plugin/aqua/client/client_test.go - ''} # Feed in all but the integration tests for testing # This is because subPackages above limits what is built to just what we diff --git a/pkgs/by-name/st/starship/package.nix b/pkgs/by-name/st/starship/package.nix index ba85e7d5d6fd..5703d6fa87cc 100644 --- a/pkgs/by-name/st/starship/package.nix +++ b/pkgs/by-name/st/starship/package.nix @@ -24,7 +24,7 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ installShellFiles ]; - buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ writableTmpDirAsHomeHook ]; diff --git a/pkgs/by-name/st/stockfish/package.nix b/pkgs/by-name/st/stockfish/package.nix index 824e83bd8150..621e66abec94 100644 --- a/pkgs/by-name/st/stockfish/package.nix +++ b/pkgs/by-name/st/stockfish/package.nix @@ -12,13 +12,9 @@ }: let - # The x86-64-modern may need to be refined further in the future - # but stdenv.hostPlatform CPU flags do not currently work on Darwin - # https://discourse.nixos.org/t/darwin-system-and-stdenv-hostplatform-features/9745 - archDarwin = if stdenv.hostPlatform.isx86_64 then "x86-64-modern" else "apple-silicon"; arch = if stdenv.hostPlatform.isDarwin then - archDarwin + "apple-silicon" else if stdenv.hostPlatform.isx86_64 then "x86-64" else if stdenv.hostPlatform.isi686 then diff --git a/pkgs/by-name/st/stoolap/package.nix b/pkgs/by-name/st/stoolap/package.nix index 68ccef88b2c3..79c8ad5b3ccc 100644 --- a/pkgs/by-name/st/stoolap/package.nix +++ b/pkgs/by-name/st/stoolap/package.nix @@ -21,7 +21,7 @@ rustPlatform.buildRustPackage (finalAttrs: { # On aarch64-darwin, dev target needs to set panic strategy to abort # However this must be set while the flag `-Zpanic_abort_tests` is also set, # which could only be done in Rust nightly toolchain. - doCheck = !(with stdenv.hostPlatform; isDarwin && isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; meta = { description = "Modern Embedded SQL Database written in Rust"; diff --git a/pkgs/by-name/su/sushi/package.nix b/pkgs/by-name/su/sushi/package.nix index 27c77ba1c8bc..49b90349e7da 100644 --- a/pkgs/by-name/su/sushi/package.nix +++ b/pkgs/by-name/su/sushi/package.nix @@ -1,36 +1,38 @@ { lib, stdenv, + blueprint-compiler, fetchurl, pkg-config, meson, gettext, gobject-introspection, - evince, glib, gnome, - gtksourceview4, + gtksourceview5, gjs, libsoup_3, - webkitgtk_4_1, - icu, - wrapGAppsHook3, + webkitgtk_6_0, + wrapGAppsHook4, gst_all_1, - gdk-pixbuf, - librsvg, - gtk3, + gtk4, + libadwaita, harfbuzz, ninja, - libepoxy, + papers, + fribidi, + libglycin, + libglycin-gtk4, + glycin-loaders, }: stdenv.mkDerivation (finalAttrs: { pname = "sushi"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/sushi/${lib.versions.major finalAttrs.version}/sushi-${finalAttrs.version}.tar.xz"; - hash = "sha256-qyUXeQjVzMWFaHaageubTzIwZ4bmxzYYGT6/YaEn7gA="; + hash = "sha256-1BsbnmQP2UmJW/DocRQySet7qjjtS6Zm27JCf7vJ6aU="; }; nativeBuildInputs = [ @@ -39,22 +41,25 @@ stdenv.mkDerivation (finalAttrs: { ninja gettext gobject-introspection - wrapGAppsHook3 + blueprint-compiler + wrapGAppsHook4 ]; buildInputs = [ glib - gtk3 - evince - icu harfbuzz gjs - gtksourceview4 - gdk-pixbuf - librsvg + gtk4 + libglycin + libglycin.setupHook + libglycin-gtk4 + glycin-loaders + libadwaita + gtksourceview5 libsoup_3 - webkitgtk_4_1 - libepoxy + webkitgtk_6_0 + papers + fribidi gst_all_1.gstreamer gst_all_1.gst-plugins-base (gst_all_1.gst-plugins-good.override { gtkSupport = true; }) diff --git a/pkgs/by-name/sv/svix-server/package.nix b/pkgs/by-name/sv/svix-server/package.nix index e2c67a77aab1..177fe74ffb25 100644 --- a/pkgs/by-name/sv/svix-server/package.nix +++ b/pkgs/by-name/sv/svix-server/package.nix @@ -5,7 +5,6 @@ pkg-config, openssl, protobuf, - stdenv, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -48,6 +47,5 @@ rustPlatform.buildRustPackage (finalAttrs: { changelog = "https://github.com/svix/svix-webhooks/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ techknowlogick ]; - broken = stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin; # aws-lc-sys currently broken on darwin x86_64 }; }) diff --git a/pkgs/by-name/sw/swipeaerospace/package.nix b/pkgs/by-name/sw/swipeaerospace/package.nix index 6a9f87583341..b32afa3657f0 100644 --- a/pkgs/by-name/sw/swipeaerospace/package.nix +++ b/pkgs/by-name/sw/swipeaerospace/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, lib, nix-update-script, + open-apple-macros, stdenv, swift, }: @@ -119,6 +120,8 @@ stdenv.mkDerivation (finalAttrs: { swiftc \ -I${lib.getDev blueSocket}/lib/swift/${stdenv.hostPlatform.swift.platform} \ + -external-plugin-path ${open-apple-macros}/lib/swift/host/plugins#${open-apple-macros}/libexec/swift/plugins/OpenAppleMacrosServer \ + -disable-sandbox \ -O \ -swift-version 5 \ -parse-as-library \ diff --git a/pkgs/by-name/sw/swt/package.nix b/pkgs/by-name/sw/swt/package.nix index 3223a7bffd2d..04c228b2f46f 100644 --- a/pkgs/by-name/sw/swt/package.nix +++ b/pkgs/by-name/sw/swt/package.nix @@ -153,7 +153,5 @@ stdenv.mkDerivation (finalAttrs: { lib.sourceTypes.binaryNativeCode ]; platforms = lib.attrNames finalAttrs.passthru.srcMetadataByPlatform; - # Fails with: `java.nio.file.NoSuchFileException: ../swt.jar` - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; }; }) diff --git a/pkgs/by-name/sy/sysprof/package.nix b/pkgs/by-name/sy/sysprof/package.nix index fa03062d1273..5b168ef9c324 100644 --- a/pkgs/by-name/sy/sysprof/package.nix +++ b/pkgs/by-name/sy/sysprof/package.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "sysprof"; - version = "50.0"; + version = "51.0"; outputs = [ "out" @@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/sysprof/${lib.versions.major finalAttrs.version}/sysprof-${finalAttrs.version}.tar.xz"; - hash = "sha256-qs5E6Q6Q9sNLsvvsjMtHuPgRAwgJeNZXWSh4Q8Mp1To="; + hash = "sha256-8sjZxcgpTOP9yL59n0vlanLtcVIstUmH8XI6jP2RY30="; }; nativeBuildInputs = [ @@ -70,6 +70,13 @@ stdenv.mkDerivation (finalAttrs: { "-Dsystemdunitdir=lib/systemd/system" # In a separate libsysprof-capture package "-Dinstall-static=false" + ] + # FAILED: [code=1] src/libsysprof/tests/test-flatpak-info + # ld.bfd: src/libsysprof/tests/test-flatpak-info.p/test-flatpak-info.c.o: R_LARCH_ALIGN with offset 2 not aligned to instruction boundary + # ld.bfd: BFD (GNU Binutils) 2.46 assertion fail /build/binutils-with-gold-2.46/bfd/elfnn-loongarch.c:4355 + # ld.bfd: src/libsysprof/tests/test-flatpak-info.p/test-flatpak-info.c.o: relocation R_LARCH_CALL36 right shift 2 error 0xffffffffffffeecb + ++ lib.optionals stdenv.hostPlatform.isLoongArch64 [ + (lib.mesonBool "tests" false) ]; passthru = { diff --git a/pkgs/by-name/ta/tab-rs/package.nix b/pkgs/by-name/ta/tab-rs/package.nix index e6e612ac501a..8b87ab0abe03 100644 --- a/pkgs/by-name/ta/tab-rs/package.nix +++ b/pkgs/by-name/ta/tab-rs/package.nix @@ -27,6 +27,6 @@ rustPlatform.buildRustPackage (finalAttrs: { license = lib.licenses.mit; maintainers = [ ]; mainProgram = "tab"; - broken = (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); # Added 2023-11-13 + broken = stdenv.hostPlatform.isDarwin; # Added 2023-11-13 }; }) diff --git a/pkgs/by-name/ta/tabby/package.nix b/pkgs/by-name/ta/tabby/package.nix index 6ae1b447c375..3769773a906b 100644 --- a/pkgs/by-name/ta/tabby/package.nix +++ b/pkgs/by-name/ta/tabby/package.nix @@ -20,7 +20,7 @@ cudaSupport ? config.cudaSupport, rocmSupport ? config.rocmSupport, - metalSupport ? stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64, + metalSupport ? stdenv.hostPlatform.isDarwin, # one of [ null "cpu" "rocm" "cuda" "metal" ]; acceleration ? null, }: @@ -56,7 +56,7 @@ let # If user did not not override the acceleration attribute, then try to use one of # - nixpkgs.config.cudaSupport # - nixpkgs.config.rocmSupport - # - metal if (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) + # - metal if stdenv.hostPlatform.isDarwin # !! warn if multiple acceleration methods are enabled and default to the first one in the list featureDevice = if (isNull acceleration) then @@ -70,11 +70,11 @@ let "building tabby with `${api}` is only supported on linux; falling back to cpu" stdenv.hostPlatform.isLinux ); - warnIfNotDarwinAarch64 = + warnIfNotDarwin = api: - (lib.warnIfNot (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) + (lib.warnIfNot stdenv.hostPlatform.isDarwin "building tabby with `${api}` is only supported on Darwin-aarch64; falling back to cpu" - (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) + stdenv.hostPlatform.isDarwin ); validAccel = lib.assertOneOf "tabby.featureDevice" featureDevice [ @@ -88,7 +88,7 @@ let # The would result in a startup failure of the service module. enableRocm = validAccel && (featureDevice == "rocm") && (warnIfNotLinux "rocm"); enableCuda = validAccel && (featureDevice == "cuda") && (warnIfNotLinux "cuda"); - enableMetal = validAccel && (featureDevice == "metal") && (warnIfNotDarwinAarch64 "metal"); + enableMetal = validAccel && (featureDevice == "metal") && (warnIfNotDarwin "metal"); # We have to use override here because tabby doesn't actually tell llama-cpp # to use a specific device type as it is relying on llama-cpp only being diff --git a/pkgs/by-name/ta/tachyon/package.nix b/pkgs/by-name/ta/tachyon/package.nix index f18bf083cd27..0c63f6bc2b08 100644 --- a/pkgs/by-name/ta/tachyon/package.nix +++ b/pkgs/by-name/ta/tachyon/package.nix @@ -50,8 +50,6 @@ stdenv.mkDerivation rec { "linux-arm" else if stdenv.hostPlatform.system == "aarch64-darwin" then "macosx" - else if stdenv.hostPlatform.system == "x86_64-darwin" then - "macosx-x86-64-thr" else if stdenv.hostPlatform.system == "i686-cygwin" then "win32" else if stdenv.hostPlatform.system == "x86_64-freebsd" then diff --git a/pkgs/by-name/ta/tauno-monitor/package.nix b/pkgs/by-name/ta/tauno-monitor/package.nix index 4bcf3b71e299..3c9311e93bb0 100644 --- a/pkgs/by-name/ta/tauno-monitor/package.nix +++ b/pkgs/by-name/ta/tauno-monitor/package.nix @@ -17,8 +17,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.3.9"; pyproject = false; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "taunoe"; repo = "tauno-monitor"; diff --git a/pkgs/by-name/tc/tclint/package.nix b/pkgs/by-name/tc/tclint/package.nix index e8a00d71aa9a..42b9dbb07f1b 100644 --- a/pkgs/by-name/tc/tclint/package.nix +++ b/pkgs/by-name/tc/tclint/package.nix @@ -18,7 +18,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { pname = "tclint"; version = "0.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nmoroze"; diff --git a/pkgs/by-name/td/tdlib/package.nix b/pkgs/by-name/td/tdlib/package.nix index 427ea07cd324..49c71fef3bcc 100644 --- a/pkgs/by-name/td/tdlib/package.nix +++ b/pkgs/by-name/td/tdlib/package.nix @@ -88,7 +88,7 @@ stdenv.mkDerivation { --replace '\$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \ --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR} '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' sed -i "/vptr/d" test/CMakeLists.txt ''; diff --git a/pkgs/by-name/te/tea/package.nix b/pkgs/by-name/te/tea/package.nix index a8fe85f314ec..23f2273b2c18 100644 --- a/pkgs/by-name/te/tea/package.nix +++ b/pkgs/by-name/te/tea/package.nix @@ -43,11 +43,9 @@ buildGoModule (finalAttrs: { installShellCompletion --cmd tea \ --bash <($out/bin/tea completion bash) \ --fish <($out/bin/tea completion fish) \ + --powershell <($out/bin/tea completion pwsh) \ --zsh <($out/bin/tea completion zsh) - mkdir $out/share/powershell/ -p - $out/bin/tea completion pwsh > $out/share/powershell/tea.Completion.ps1 - $out/bin/tea man --out $out/share/man/man1/tea.1 ''; diff --git a/pkgs/by-name/te/telepathy-mission-control/package.nix b/pkgs/by-name/te/telepathy-mission-control/package.nix index 61dce816b613..e7f16df4218e 100644 --- a/pkgs/by-name/te/telepathy-mission-control/package.nix +++ b/pkgs/by-name/te/telepathy-mission-control/package.nix @@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: { libxslt makeWrapper ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ autoreconfHook gtk-doc ]; @@ -61,7 +61,5 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.lgpl21Only; maintainers = [ ]; platforms = lib.platforms.unix; - # The last successful Darwin Hydra build was in 2024 - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; }; }) diff --git a/pkgs/by-name/te/temporal-cli/package.nix b/pkgs/by-name/te/temporal-cli/package.nix index 9427244084f5..989e9743dec5 100644 --- a/pkgs/by-name/te/temporal-cli/package.nix +++ b/pkgs/by-name/te/temporal-cli/package.nix @@ -36,8 +36,7 @@ buildGoModule (finalAttrs: { "-X github.com/temporalio/cli/internal/temporalcli.Version=${finalAttrs.version}" ]; - # Tests fail with x86 on macOS Rosetta 2 - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); + doCheck = true; nativeCheckInputs = [ writableTmpDirAsHomeHook ]; diff --git a/pkgs/by-name/te/terminal-rain-lightning/package.nix b/pkgs/by-name/te/terminal-rain-lightning/package.nix index 1aab2a10f52a..e4559074d40e 100644 --- a/pkgs/by-name/te/terminal-rain-lightning/package.nix +++ b/pkgs/by-name/te/terminal-rain-lightning/package.nix @@ -26,7 +26,6 @@ python3Packages.buildPythonApplication (finalAttrs: { makeWrapperArgs+=("--prefix" "PATH" ":" "${lib.makeBinPath [ ffmpeg ]}") ''; - __structuredAttrs = true; passthru.updateScript = nix-update-script { }; meta = { diff --git a/pkgs/by-name/te/texture-synthesis/package.nix b/pkgs/by-name/te/texture-synthesis/package.nix index ce8d6fe68869..918c6eb76d07 100644 --- a/pkgs/by-name/te/texture-synthesis/package.nix +++ b/pkgs/by-name/te/texture-synthesis/package.nix @@ -26,7 +26,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; # tests fail for unknown reasons on aarch64-darwin - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; meta = { description = "Example-based texture synthesis written in Rust"; diff --git a/pkgs/by-name/tf/tft-cli/package.nix b/pkgs/by-name/tf/tft-cli/package.nix index d821a0357625..45de959bac63 100644 --- a/pkgs/by-name/tf/tft-cli/package.nix +++ b/pkgs/by-name/tf/tft-cli/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "0.0.38"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitLab { owner = "testing-farm"; repo = "cli"; diff --git a/pkgs/by-name/th/thrift/package.nix b/pkgs/by-name/th/thrift/package.nix index 14bd0ed0f1ed..2790f9337426 100644 --- a/pkgs/by-name/th/thrift/package.nix +++ b/pkgs/by-name/th/thrift/package.nix @@ -18,13 +18,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "thrift"; - version = "0.24.0"; + version = "0.25.0"; src = fetchFromGitHub { owner = "apache"; repo = "thrift"; tag = "v${finalAttrs.version}"; - hash = "sha256-+o/2exHsunjQBGjXrNQ1pQ5TKV53++qCxIMeVyOh5QY="; + hash = "sha256-ZXGxpjqQq+qlxEDM4tWOF1hHGZsy3s/K0c2bIxMky10="; }; postPatch = lib.optionalString (!finalAttrs.finalPackage.doCheck) '' @@ -116,6 +116,8 @@ stdenv.mkDerivation (finalAttrs: { enableParallelChecking = false; + __structuredAttrs = true; + meta = { description = "Library for scalable cross-language services"; mainProgram = "thrift"; diff --git a/pkgs/by-name/ti/tinycc/package.nix b/pkgs/by-name/ti/tinycc/package.nix index 0c90fa703339..6bdc2846971e 100644 --- a/pkgs/by-name/ti/tinycc/package.nix +++ b/pkgs/by-name/ti/tinycc/package.nix @@ -83,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: { # build cross compilers "--enable-cross" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # The bounds checker has an unresolved arm64 atomic helper on Darwin. "--config-bcheck=no" ] @@ -93,7 +93,7 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; - preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + preBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' # TCC cannot cross-compile x86 long double constants from aarch64-darwin. makeFlagsArray+=("TCC_X=i386-win32 x86_64-win32 arm arm64 arm-wince c67 riscv64 arm64-osx") ''; diff --git a/pkgs/by-name/ti/tinygo/package.nix b/pkgs/by-name/ti/tinygo/package.nix index 609f8fdc3236..1ff12d55301a 100644 --- a/pkgs/by-name/ti/tinygo/package.nix +++ b/pkgs/by-name/ti/tinygo/package.nix @@ -128,7 +128,7 @@ buildGoModule (finalAttrs: { openocd binaryen ] - ++ lib.optionals (!(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)) [ gdb ]; + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ gdb ]; installPhase = '' runHook preInstall diff --git a/pkgs/by-name/ti/tinysparql/package.nix b/pkgs/by-name/ti/tinysparql/package.nix index aeeae95159df..cb15d41c75f0 100644 --- a/pkgs/by-name/ti/tinysparql/package.nix +++ b/pkgs/by-name/ti/tinysparql/package.nix @@ -2,7 +2,6 @@ stdenv, lib, fetchurl, - fetchpatch, gettext, meson, mesonEmulatorHook, @@ -35,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "tinysparql"; - version = "3.11.1"; + version = "3.12.0"; outputs = [ "out" @@ -47,21 +46,9 @@ stdenv.mkDerivation (finalAttrs: { url = with finalAttrs; "mirror://gnome/sources/tinysparql/${lib.versions.majorMinor version}/tinysparql-${version}.tar.xz"; - hash = "sha256-z9RgIe4VFK1DXnFPeqHsenh8f1FqlPTHQ4iX7j1uyh4="; + hash = "sha256-QOPjrpgRrgepSsff6CWfIYZ567HJvJjXqzRbJAWSa1c="; }; - patches = [ - # sqlite changed the precision of float <-> text conversions, causing - # failures in the test suite. patch here until this appears in a release. - # https://gitlab.gnome.org/GNOME/tinysparql/-/work_items/496 - # https://gitlab.gnome.org/GNOME/tinysparql/-/merge_requests/811 - (fetchpatch { - name = "tinysparql-sqlite-double-value-precision.patch"; - url = "https://gitlab.gnome.org/GNOME/tinysparql/-/commit/47d5bf9313d0ccb1feb7169eed9047d0e1597a39.patch"; - hash = "sha256-k6eELZCEEtD8s7GiMckjTlf6QcAiUNY1Mraw7GROsm4="; - }) - ]; - strictDeps = true; depsBuildBuild = [ diff --git a/pkgs/by-name/to/todoman/package.nix b/pkgs/by-name/to/todoman/package.nix index 9ddacb728746..0685938e884d 100644 --- a/pkgs/by-name/to/todoman/package.nix +++ b/pkgs/by-name/to/todoman/package.nix @@ -62,8 +62,8 @@ python3.pkgs.buildPythonApplication (finalAttrs: { ]; sphinxBuilders = [ - # TODO: Split into separate strings again once #573479 arrives in master - "singlehtml man" + "singlehtml" + "man" ]; preInstallSphinx = '' diff --git a/pkgs/by-name/to/tokei/package.nix b/pkgs/by-name/to/tokei/package.nix index e7df76bb0692..846d4aaa4ab3 100644 --- a/pkgs/by-name/to/tokei/package.nix +++ b/pkgs/by-name/to/tokei/package.nix @@ -26,6 +26,8 @@ rustPlatform.buildRustPackage (finalAttrs: { checkInputs = lib.optionals stdenv.hostPlatform.isDarwin [ zlib ]; + dontCargoUseSystemLibs = true; + # enable all output formats buildFeatures = [ "all" ]; diff --git a/pkgs/by-name/to/tootik/package.nix b/pkgs/by-name/to/tootik/package.nix index 46196000a30a..180e531a37e6 100644 --- a/pkgs/by-name/to/tootik/package.nix +++ b/pkgs/by-name/to/tootik/package.nix @@ -34,7 +34,7 @@ buildGo127Module (finalAttrs: { tags = [ "fts5" ]; - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; diff --git a/pkgs/by-name/tp/tpm2-tss/package.nix b/pkgs/by-name/tp/tpm2-tss/package.nix index 49ce25505438..87b59dc1642f 100644 --- a/pkgs/by-name/tp/tpm2-tss/package.nix +++ b/pkgs/by-name/tp/tpm2-tss/package.nix @@ -30,13 +30,13 @@ in stdenv.mkDerivation (finalAttrs: { pname = "tpm2-tss"; - version = "4.2.0"; + version = "4.2.1"; src = fetchFromGitHub { owner = "tpm2-software"; repo = finalAttrs.pname; rev = finalAttrs.version; - hash = "sha256-MNrVKoA2sW3wKaQsq27UtakzdKmfirtDCoPWu0EEndw="; + hash = "sha256-+vsoANS3dLK+96sD6jFpbUZ8ut1f3U5RYbfWVtxRCzc="; }; outputs = [ diff --git a/pkgs/by-name/tr/trace-cmd/package.nix b/pkgs/by-name/tr/trace-cmd/package.nix index feef55ea236a..75afc2cb6486 100644 --- a/pkgs/by-name/tr/trace-cmd/package.nix +++ b/pkgs/by-name/tr/trace-cmd/package.nix @@ -11,7 +11,7 @@ libtraceevent, libtracefs, zstd, - sourceHighlight, + source-highlight, gitUpdater, }: stdenv.mkDerivation (finalAttrs: { @@ -37,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: { xmlto docbook_xsl docbook_xml_dtd_45 - sourceHighlight + source-highlight ]; buildInputs = [ diff --git a/pkgs/by-name/tr/tranquil-pds/package.nix b/pkgs/by-name/tr/tranquil-pds/package.nix index 19715eec70fd..e8ca60bea274 100644 --- a/pkgs/by-name/tr/tranquil-pds/package.nix +++ b/pkgs/by-name/tr/tranquil-pds/package.nix @@ -4,6 +4,7 @@ rustPlatform, pkg-config, openssl, + zstd, protobuf, nixosTests, }: @@ -29,6 +30,7 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ openssl + zstd ]; # the tranquil test suite has shown itself virtually impossible to complete on most hardware thus stopping reviews. diff --git a/pkgs/by-name/tr/tree-sitter/package.nix b/pkgs/by-name/tr/tree-sitter/package.nix index ebd2c362f222..9f37aec7c971 100644 --- a/pkgs/by-name/tr/tree-sitter/package.nix +++ b/pkgs/by-name/tr/tree-sitter/package.nix @@ -21,7 +21,15 @@ installShellFiles, buildPackages, cmake, - wasmtime_36, + validatePkgConfig, + # dependencies for wasmSupport + wasmtime_48, + binaryen, + llvmPackages, + makeWrapper, + pkgsCross, + symlinkJoin, + enableShared ? !stdenv.hostPlatform.isStatic, enableStatic ? stdenv.hostPlatform.isStatic, wasmSupport ? false, @@ -131,39 +139,58 @@ let ); isWasi = stdenv.hostPlatform.isWasi; - + # create a `TREE_SITTER_WASI_SDK_PATH` environment where + # `clang -> wasm32-unknown-wasip1-clang` so tree-sitter can find it + wasiCC = pkgsCross.wasi32.stdenv.cc; + wasiSdk = symlinkJoin { + name = "wasi-sdk"; + paths = [ wasiCC ]; + postBuild = '' + ln -s ${wasiCC.targetPrefix}clang $out/bin/clang + ''; + }; in rustPlatform.buildRustPackage (finalAttrs: { pname = "tree-sitter"; - version = "0.26.11"; + version = "0.27.1"; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "tree-sitter"; repo = "tree-sitter"; tag = "v${finalAttrs.version}"; - hash = "sha256-YXnmVM90sEH8kqgqCygpeCAyvggMIsv+oXi0SJOvMRM="; + hash = "sha256-KbPqA6pfplWRUtwRgbNXUF7aivj/n4shJqWbjNO93nQ="; fetchSubmodules = true; }; - cargoHash = "sha256-kHDjPRhBUYlxLWYSv6cn6U1QDIWwCgHeIz2A5yCi1yo="; + cargoHash = "sha256-GbW/qFq8X0UNi9LIepTIAKSAqCXM/gdy6XV6s5YO8r0="; cargoBuildFeatures = lib.optionals wasmSupport [ "wasm" ]; + outputs = [ + "out" + "dev" + "lib" + ]; + buildInputs = [ installShellFiles ] ++ lib.optionals wasmSupport [ - wasmtime_36 + wasmtime_48 ] ++ lib.optionals webUISupport [ openssl ]; nativeBuildInputs = [ rustPlatform.bindgenHook + validatePkgConfig which ] ++ lib.optionals wasmSupport [ cmake + makeWrapper ] ++ lib.optionals webUISupport [ emscripten @@ -182,7 +209,17 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; postPatch = - lib.optionalString webUISupport '' + # tree-sitter tries to concatenate $libdir/$includedir to $prefix, + # having multiple outputs on different paths requires patching this. + '' + substituteInPlace lib/tree-sitter.pc.in \ + --replace-fail 'libdir=''${prefix}/@CMAKE_INSTALL_LIBDIR@' 'libdir=@CMAKE_INSTALL_FULL_LIBDIR@' \ + --replace-fail 'includedir=''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@' 'includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@' + substituteInPlace ./Makefile \ + --replace-fail 's|@CMAKE_INSTALL_LIBDIR@|$(LIBDIR:$(PREFIX)/%=%)|' 's|@CMAKE_INSTALL_FULL_LIBDIR@|$(LIBDIR)|' \ + --replace-fail 's|@CMAKE_INSTALL_INCLUDEDIR@|$(INCLUDEDIR:$(PREFIX)/%=%)|' 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|$(INCLUDEDIR)|' + '' + + lib.optionalString webUISupport '' substituteInPlace crates/xtask/src/build_wasm.rs \ --replace-fail 'let emcc_name = if cfg!(windows) { "emcc.bat" } else { "emcc" };' 'let emcc_name = "${lib.getExe' emscripten "emcc"}";' '' @@ -192,7 +229,7 @@ rustPlatform.buildRustPackage (finalAttrs: { + lib.optionalString stdenv.hostPlatform.isStatic '' substituteInPlace ./Makefile \ --replace-fail 'all: libtree-sitter.a libtree-sitter.$(SOEXT) tree-sitter.pc' 'all: libtree-sitter.a tree-sitter.pc' - sed -i '/^install:/,/^[^[:space:]]/ { /$(SOEXT/d; }' ./Makefile + sed -i '/^install:/,/^uninstall:/ { /$(SOEXT/d; }' ./Makefile '' # rquickjs-sys passes the raw rust target to clang, which does not know riscv64gc + lib.optionalString stdenv.hostPlatform.isRiscV64 '' @@ -205,10 +242,10 @@ rustPlatform.buildRustPackage (finalAttrs: { # The Makefile install can't enable the wasm feature. cmakeFlags = lib.optionals wasmSupport [ (lib.cmakeBool "TREE_SITTER_FEATURE_WASM" true) - (lib.cmakeFeature "WASMTIME_INCLUDE_DIR" "${lib.getDev wasmtime_36}/include") - (lib.cmakeFeature "WASMTIME_LIBRARY" "${lib.getLib wasmtime_36}/lib/libwasmtime${stdenv.hostPlatform.extensions.sharedLibrary}") - (lib.cmakeFeature "CMAKE_INSTALL_INCLUDEDIR" "include") - (lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib") + (lib.cmakeFeature "WASMTIME_INCLUDE_DIR" "${lib.getDev wasmtime_48}/include") + (lib.cmakeFeature "WASMTIME_LIBRARY" "${lib.getLib wasmtime_48}/lib/libwasmtime${stdenv.hostPlatform.extensions.library}") + (lib.cmakeFeature "CMAKE_INSTALL_FULL_INCLUDEDIR" "${placeholder "dev"}/include") + (lib.cmakeFeature "CMAKE_INSTALL_FULL_LIBDIR" "${placeholder "lib"}/lib") ]; # Compile web assembly with emscripten. The --debug flag prevents us from @@ -221,14 +258,20 @@ rustPlatform.buildRustPackage (finalAttrs: { ''; postInstall = '' - PREFIX=$out make install + make install PREFIX=$out LIBDIR=$lib/lib INCLUDEDIR=$dev/include '' + # supply the nix paths for the Wasi SDK & `wasm-opt`: https://tree-sitter.github.io/tree-sitter/6-contributing.html#wasm-stdlib + # lld is required for the linker phase in `tree-sitter build --wasm` + lib.optionalString wasmSupport '' cmake --install $cmakeBuildDir + wrapProgram $out/bin/tree-sitter \ + --set-default TREE_SITTER_BINARYEN_PATH "${binaryen}" \ + --set-default TREE_SITTER_WASI_SDK_PATH "${wasiSdk}" \ + --prefix PATH : "${lib.makeBinPath [ llvmPackages.lld ]}" '' + '' - ${lib.optionalString (!enableShared) "rm -f $out/lib/*.so{,.*}"} - ${lib.optionalString (!enableStatic) "rm -f $out/lib/*.a"} + ${lib.optionalString (!enableShared) "rm -f $lib/lib/*.so{,.*}"} + ${lib.optionalString (!enableStatic) "rm -f $lib/lib/*.a"} mv docs/src/assets/schemas/config.schema.json $out/ '' diff --git a/pkgs/by-name/tr/trusttunnel-endpoint/package.nix b/pkgs/by-name/tr/trusttunnel-endpoint/package.nix index b8bcd14c800a..45a5fc86c446 100644 --- a/pkgs/by-name/tr/trusttunnel-endpoint/package.nix +++ b/pkgs/by-name/tr/trusttunnel-endpoint/package.nix @@ -6,6 +6,8 @@ boringssl, cacert, python3, + aws-lc, + pkg-config, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -43,10 +45,12 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ rustPlatform.bindgenHook + pkg-config ]; buildInputs = [ boringssl + aws-lc ]; nativeCheckInputs = [ @@ -54,6 +58,8 @@ rustPlatform.buildRustPackage (finalAttrs: { python3 ]; + __darwinAllowLocalNetworking = true; + passthru.updateScript = nix-update-script { }; meta = { diff --git a/pkgs/by-name/tt/tt-burnin/package.nix b/pkgs/by-name/tt/tt-burnin/package.nix index 4b1ee48fb514..51cb796b0207 100644 --- a/pkgs/by-name/tt/tt-burnin/package.nix +++ b/pkgs/by-name/tt/tt-burnin/package.nix @@ -10,7 +10,6 @@ python313Packages.buildPythonApplication (finalAttrs: { pname = "tt-burnin"; version = "0.4.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tenstorrent"; diff --git a/pkgs/by-name/tt/tt-smi/package.nix b/pkgs/by-name/tt/tt-smi/package.nix index 4edcc11da3c4..5408513ecee8 100644 --- a/pkgs/by-name/tt/tt-smi/package.nix +++ b/pkgs/by-name/tt/tt-smi/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "tt-smi"; version = "6.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tenstorrent"; diff --git a/pkgs/by-name/ty/ty/package.nix b/pkgs/by-name/ty/ty/package.nix index 5e1ff8040e09..0e93cc3acef7 100644 --- a/pkgs/by-name/ty/ty/package.nix +++ b/pkgs/by-name/ty/ty/package.nix @@ -6,9 +6,11 @@ # nativeBuildInputs installShellFiles, + pkg-config, # buildInputs rust-jemalloc-sys, + zstd, buildPackages, versionCheckHook, @@ -18,7 +20,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "ty"; - version = "0.0.95"; + version = "0.0.98"; __structuredAttrs = true; src = fetchFromGitHub { @@ -26,7 +28,7 @@ rustPlatform.buildRustPackage (finalAttrs: { repo = "ty"; tag = finalAttrs.version; fetchSubmodules = true; - hash = "sha256-e0Yg6e50I4w9NDEaTUdoWFFvvJyDvL4eulcImy/HRRM="; + hash = "sha256-MxdZnjzyjNlWZrau2NywwwnBdJS5P49pD7oNB+iAwuI="; }; # For Darwin platforms, remove the integration test for file notifications, @@ -40,10 +42,17 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoBuildFlags = [ "--package=ty" ]; - cargoHash = "sha256-FaK/P6nBJqfSkUqv8qmmIeAPQh5ksIS/lpIBVkrGALg="; + cargoHash = "sha256-emq9FOUAlj6CXZjZS+1Y/kc2SH+dgw0HrBIzqC+xAxo="; - nativeBuildInputs = [ installShellFiles ]; - buildInputs = [ rust-jemalloc-sys ]; + nativeBuildInputs = [ + installShellFiles + pkg-config + ]; + + buildInputs = [ + rust-jemalloc-sys + zstd + ]; # `ty`'s tests use `insta-cmd`, which depends on the structure of the `target/` directory, # and also fails to find the environment variable `$CARGO_BIN_EXE_ty`, which leads to tests failing. diff --git a/pkgs/by-name/tz/tzdata/package.nix b/pkgs/by-name/tz/tzdata/package.nix index 4b4675a81fd0..ab57261f5d35 100644 --- a/pkgs/by-name/tz/tzdata/package.nix +++ b/pkgs/by-name/tz/tzdata/package.nix @@ -9,16 +9,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "tzdata"; - version = "2026e"; + version = "2026f"; srcs = [ (fetchurl { url = "https://data.iana.org/time-zones/releases/tzdata${finalAttrs.version}.tar.gz"; - hash = "sha256-smiCgF8mqsWdWyIpeOZYBIS4NMzcmL6J3y8FptxTplI="; + hash = "sha256-AbSpHOxRZ+1IwR6Kt48gSM6teM6UsMr8rQroxaMETT0="; }) (fetchurl { url = "https://data.iana.org/time-zones/releases/tzcode${finalAttrs.version}.tar.gz"; - hash = "sha256-zD0nyioNg5lQRVG5IJcNgK+Dv7nCFugIKhVJGSGTXVQ="; + hash = "sha256-WhjaATk2ee8lWSFNxodWP389BWkfb1i3+8AWbz55bNY="; }) ]; diff --git a/pkgs/by-name/ub/ubus/package.nix b/pkgs/by-name/ub/ubus/package.nix index d64e5688da27..f45f84cbe192 100644 --- a/pkgs/by-name/ub/ubus/package.nix +++ b/pkgs/by-name/ub/ubus/package.nix @@ -24,12 +24,6 @@ stdenv.mkDerivation { ]; nativeBuildInputs = [ cmake ]; - env.NIX_CFLAGS_COMPILE = toString ( - lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "-Wno-error=gnu-folding-constant" - ] - ); - meta = { description = "OpenWrt system message/RPC bus"; homepage = "https://git.openwrt.org/?p=project/ubus.git;a=summary"; diff --git a/pkgs/by-name/um/umap/package.nix b/pkgs/by-name/um/umap/package.nix index ca8c897b3a8f..31d7fc52aa0e 100644 --- a/pkgs/by-name/um/umap/package.nix +++ b/pkgs/by-name/um/umap/package.nix @@ -22,8 +22,6 @@ python.pkgs.buildPythonApplication (finalAttrs: { version = "3.8.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "umap-project"; repo = "umap"; diff --git a/pkgs/by-name/um/umple-lsp/package.nix b/pkgs/by-name/um/umple-lsp/package.nix index a9f26473dd21..6fe5c84fa468 100644 --- a/pkgs/by-name/um/umple-lsp/package.nix +++ b/pkgs/by-name/um/umple-lsp/package.nix @@ -1,26 +1,14 @@ { lib, - pkgsCross, buildNpmPackage, fetchFromGitHub, - linkFarm, versionCheckHook, jre_headless, nodejs, - tree-sitter, + buildPackages, umple, withUmple ? true, }: -let - # tree-sitter needs a wasi32 clang available at `bin/clang` - wasi32cc = lib.getExe pkgsCross.wasi32.stdenv.cc; - wasi-sdk = linkFarm "wasi-sdk" { "bin/clang" = wasi32cc; }; - # tree-sitter invokes clang with `--target=wasm32-unknown-wasi`, so clang looks - # for an unprefixed `wasm-ld` instead of the prefixed one that the cross bintools ship - wasm-ld = linkFarm "wasm-ld" { - "bin/wasm-ld" = lib.getExe' pkgsCross.wasi32.buildPackages.llvmPackages.lld "wasm-ld"; - }; -in buildNpmPackage (finalAttrs: { pname = "umple-lsp"; version = "1.0.2"; @@ -46,14 +34,9 @@ buildNpmPackage (finalAttrs: { nativeBuildInputs = [ nodejs - pkgsCross.wasi32.stdenv.cc.bintools - tree-sitter - wasm-ld + (buildPackages.tree-sitter.override { wasmSupport = true; }) ]; - # Stop tree-sitter from trying to fetch its own wasi-sdk - env.TREE_SITTER_WASI_SDK_PATH = wasi-sdk; - dontNpmBuild = true; # Same process as the `build-grammar` script from package.json diff --git a/pkgs/by-name/um/umurmur/package.nix b/pkgs/by-name/um/umurmur/package.nix index dc5a88d2bfbc..5d01356b1d6c 100644 --- a/pkgs/by-name/um/umurmur/package.nix +++ b/pkgs/by-name/um/umurmur/package.nix @@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/umurmur/umurmur"; platforms = lib.platforms.all; # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ]; mainProgram = "umurmurd"; }; diff --git a/pkgs/by-name/un/unbound/package.nix b/pkgs/by-name/un/unbound/package.nix index f2e40a0efb70..f0d06cfa11f0 100644 --- a/pkgs/by-name/un/unbound/package.nix +++ b/pkgs/by-name/un/unbound/package.nix @@ -64,13 +64,13 @@ assert lib.assertMsg ( ) "unbound: withDoQ requires OpenSSL with QUIC support (OpenSSL >= 3.5)"; stdenv.mkDerivation (finalAttrs: { pname = "unbound"; - version = "1.26.1"; + version = "1.26.2"; src = fetchFromGitHub { owner = "NLnetLabs"; repo = "unbound"; tag = "release-${finalAttrs.version}"; - hash = "sha256-gf4vASdB6XzSGhJ2GKbUhgs0wpR32Du2ARx4bBQ+vJA="; + hash = "sha256-2CcDPUwzBRjRFzkXVinc7N956Cieb5QSS3BqDfFGgz0="; }; outputs = [ diff --git a/pkgs/by-name/un/unicorn/package.nix b/pkgs/by-name/un/unicorn/package.nix index 156ca182d110..e712b88e9da2 100644 --- a/pkgs/by-name/un/unicorn/package.nix +++ b/pkgs/by-name/un/unicorn/package.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: { NIX_LDFLAGS = "-latomic"; }; - cmakeFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ # Some x86 tests are interrupted by signal 10 "-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;test_x86" ]; diff --git a/pkgs/by-name/un/universal-android-debloater/package.nix b/pkgs/by-name/un/universal-android-debloater/package.nix index 1fadf2cd4bba..3949a23120ce 100644 --- a/pkgs/by-name/un/universal-android-debloater/package.nix +++ b/pkgs/by-name/un/universal-android-debloater/package.nix @@ -81,7 +81,6 @@ rustPlatform.buildRustPackage (finalAttrs: { license = lib.licenses.gpl3Only; mainProgram = "uad-ng"; maintainers = with lib.maintainers; [ lavafroth ]; - broken = with stdenv.hostPlatform; isDarwin && isx86_64; platforms = with lib.platforms; linux ++ darwin; }; }) diff --git a/pkgs/by-name/un/unrar-wrapper/package.nix b/pkgs/by-name/un/unrar-wrapper/package.nix index ddec94f3711d..c9c1368a34a7 100644 --- a/pkgs/by-name/un/unrar-wrapper/package.nix +++ b/pkgs/by-name/un/unrar-wrapper/package.nix @@ -10,8 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "openSUSE"; repo = "unrar_wrapper"; diff --git a/pkgs/by-name/un/unzip/package.nix b/pkgs/by-name/un/unzip/package.nix index c6893ddef92f..a00dc092e7cf 100644 --- a/pkgs/by-name/un/unzip/package.nix +++ b/pkgs/by-name/un/unzip/package.nix @@ -38,6 +38,11 @@ stdenv.mkDerivation (finalAttrs: { ./CVE-2016-9844.patch ./CVE-2018-18384.patch ./dont-hardcode-cc.patch + (fetchurl { + url = "https://sources.debian.org/data/main/u/unzip/6.0-31/debian/patches/cve-2018-1000035-unzip-buffer-overflow.patch"; + name = "CVE-2018-1000035-unzip-buffer-overflow.patch"; + hash = "sha256-TqvD+u3dVuvD1QU0hrYfh1jYQJAnJf1VXTRyz/sJRDc="; + }) (fetchurl { url = "https://github.com/madler/unzip/commit/41beb477c5744bc396fa1162ee0c14218ec12213.patch"; name = "CVE-2019-13232-1.patch"; diff --git a/pkgs/by-name/up/upki/package.nix b/pkgs/by-name/up/upki/package.nix index 1f8a81a24726..d240a1d42956 100644 --- a/pkgs/by-name/up/upki/package.nix +++ b/pkgs/by-name/up/upki/package.nix @@ -9,6 +9,7 @@ rustc, cacert, pkg-config, + aws-lc, openssl, cargo-c, validatePkgConfig, @@ -42,7 +43,10 @@ rustPlatform.buildRustPackage (finalAttrs: { cargo-c pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ + aws-lc + openssl + ]; env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; diff --git a/pkgs/by-name/us/user-scanner/package.nix b/pkgs/by-name/us/user-scanner/package.nix index bffe60ce40ea..b2fd0c9ee360 100644 --- a/pkgs/by-name/us/user-scanner/package.nix +++ b/pkgs/by-name/us/user-scanner/package.nix @@ -19,8 +19,6 @@ pythonPackages.buildPythonApplication (finalAttrs: { version = "1.5.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "kaifcodec"; repo = "user-scanner"; diff --git a/pkgs/by-name/ut/util-macros/package.nix b/pkgs/by-name/ut/util-macros/package.nix index f7c8c6d69ea9..f85cc6dc955a 100644 --- a/pkgs/by-name/ut/util-macros/package.nix +++ b/pkgs/by-name/ut/util-macros/package.nix @@ -31,6 +31,8 @@ stdenvNoCC.mkDerivation (finalAttrs: { }; }; + __structuredAttrs = true; + meta = { description = "GNU autoconf macros shared across X.Org projects"; homepage = "https://gitlab.freedesktop.org/xorg/util/macros"; diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index 055705103c0f..60af2f7adc6f 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -5,11 +5,14 @@ fetchFromGitHub, # buildInputs + aws-lc, rust-jemalloc-sys, + zstd, # nativeBuildInputs installShellFiles, makeBinaryWrapper, + pkg-config, buildPackages, versionCheckHook, @@ -32,12 +35,15 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-spQmSFAjNs6pWnw2nd/d3ZysIMK9j+BjDjrwcnUCmWw="; buildInputs = [ + aws-lc rust-jemalloc-sys + zstd ]; nativeBuildInputs = [ installShellFiles makeBinaryWrapper + pkg-config ]; cargoBuildFlags = [ diff --git a/pkgs/by-name/uv/uvwasi/package.nix b/pkgs/by-name/uv/uvwasi/package.nix index c3b85b5c8308..8a215220159a 100644 --- a/pkgs/by-name/uv/uvwasi/package.nix +++ b/pkgs/by-name/uv/uvwasi/package.nix @@ -31,6 +31,10 @@ stdenv.mkDerivation (finalAttrs: { url = "https://github.com/nodejs/uvwasi/commit/0820128569533c855d60c0f6382acbb14aa62ad2.patch?full_index=1"; hash = "sha256-psjivoarqisOuCdVJAWuFH0aITzwb/obmal3ewVXvG4="; }) + (fetchpatch2 { + url = "https://github.com/nodejs/uvwasi/commit/fe602a6911207efd8dcfc070a752bcf76813c978.patch?full_index=1"; + hash = "sha256-MyFvRuEhcqZR+Bz2pY9vani8U1iyQrDeni2kKKnJGEI="; + }) ]; postPatch = lib.optionalString static '' substituteInPlace CMakeLists.txt --replace-fail 'TARGETS uvwasi_a uvwasi' 'TARGETS uvwasi_a' @@ -48,7 +52,7 @@ stdenv.mkDerivation (finalAttrs: { cmake validatePkgConfig ]; - buildInputs = [ + propagatedBuildInputs = [ libuv ]; diff --git a/pkgs/by-name/uw/uwsgi/package.nix b/pkgs/by-name/uw/uwsgi/package.nix index 874fb024edc2..5b451df11071 100644 --- a/pkgs/by-name/uw/uwsgi/package.nix +++ b/pkgs/by-name/uw/uwsgi/package.nix @@ -113,7 +113,7 @@ stdenv.mkDerivation (finalAttrs: { pcre2 libxcrypt ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ expat zlib ] diff --git a/pkgs/by-name/va/vale-ls/package.nix b/pkgs/by-name/va/vale-ls/package.nix index d9483b7966b2..b1507d67487f 100644 --- a/pkgs/by-name/va/vale-ls/package.nix +++ b/pkgs/by-name/va/vale-ls/package.nix @@ -6,6 +6,7 @@ rustPlatform, pkg-config, openssl, + zstd, vale, }: @@ -28,6 +29,7 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ openssl + zstd ]; checkFlags = [ diff --git a/pkgs/by-name/va/valkey/package.nix b/pkgs/by-name/va/valkey/package.nix index 977d28e9e696..095f21988a91 100644 --- a/pkgs/by-name/va/valkey/package.nix +++ b/pkgs/by-name/va/valkey/package.nix @@ -24,13 +24,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "valkey"; - version = "9.1.2"; + version = "9.1.3"; src = fetchFromGitHub { owner = "valkey-io"; repo = "valkey"; rev = finalAttrs.version; - hash = "sha256-Lq5AqrLKILnsaOdAgWeeukPNF7KerB17R1mUOZjOsUg="; + hash = "sha256-hRmxA/TV9P2OXMD515HlH5MFwQKZVVgNmmxyeDDXUJI="; }; patches = lib.optional useSystemJemalloc ./use_system_jemalloc.patch; diff --git a/pkgs/by-name/va/vastai/package.nix b/pkgs/by-name/va/vastai/package.nix index 0311046ab27b..b319ae684d52 100644 --- a/pkgs/by-name/va/vastai/package.nix +++ b/pkgs/by-name/va/vastai/package.nix @@ -20,7 +20,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "vastai"; version = "1.8.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "vast-ai"; diff --git a/pkgs/by-name/va/vaultwarden/package.nix b/pkgs/by-name/va/vaultwarden/package.nix index d7fa29f528ad..f643a728ad51 100644 --- a/pkgs/by-name/va/vaultwarden/package.nix +++ b/pkgs/by-name/va/vaultwarden/package.nix @@ -7,6 +7,7 @@ nixosTests, pkg-config, openssl, + zstd, libiconv, dbBackend ? "sqlite_system", libmysqlclient, @@ -37,6 +38,7 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl + zstd ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv diff --git a/pkgs/by-name/vi/vimhjkl/package.nix b/pkgs/by-name/vi/vimhjkl/package.nix index 936c44520a87..977ab33f2604 100644 --- a/pkgs/by-name/vi/vimhjkl/package.nix +++ b/pkgs/by-name/vi/vimhjkl/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "vimhjkl"; version = "0.6.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "S-Sigdel"; diff --git a/pkgs/by-name/vi/visidata/package.nix b/pkgs/by-name/vi/visidata/package.nix index d0bc2db5e4d2..d8914c8df56c 100644 --- a/pkgs/by-name/vi/visidata/package.nix +++ b/pkgs/by-name/vi/visidata/package.nix @@ -22,7 +22,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "visidata"; version = "3.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "saulpw"; diff --git a/pkgs/by-name/vl/vlc-bin/package.nix b/pkgs/by-name/vl/vlc-bin/package.nix index 5aaf24f97a70..fe344eb98658 100644 --- a/pkgs/by-name/vl/vlc-bin/package.nix +++ b/pkgs/by-name/vl/vlc-bin/package.nix @@ -4,18 +4,11 @@ makeWrapper, stdenv, undmg, - variant ? - if (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) then - "arm64" - else if (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) then - "intel64" - else - "universal", # not reachable by normal means + variant ? if stdenv.hostPlatform.isDarwin then "arm64" else "universal", # not reachable by normal means }: assert builtins.elem variant [ "arm64" - "intel64" "universal" ]; stdenv.mkDerivation (finalAttrs: { @@ -27,7 +20,6 @@ stdenv.mkDerivation (finalAttrs: { hash = { "arm64" = "sha256-/G+sCNh/U4UX1ErKDF56JEtnyMTLWJv0eDY6cxX9Xg0="; - "intel64" = "sha256-7AFTDOadhJ3QV/uoh25orDm/J53CjeTpwE5K7BH8mNs="; "universal" = "sha256-Vu5lfDqvXHG0q31uT0p39uylRjPgv0KpO4EW6x0fbsk="; } .${variant}; @@ -57,14 +49,7 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.lgpl21Plus; mainProgram = "vlc"; maintainers = with lib.maintainers; [ pcasaretto ]; - platforms = lib.systems.inspect.patternLogicalAnd (lib.systems.inspect.patterns.isDarwin) ( - { - "arm64" = lib.systems.inspect.patterns.isAarch64; - "intel64" = lib.systems.inspect.patterns.isx86_64; - "universal" = lib.systems.inspect.patterns.isDarwin; - } - .${variant} - ); + platforms = lib.platforms.darwin; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; }; }) diff --git a/pkgs/by-name/vo/volantes-cursors/package.nix b/pkgs/by-name/vo/volantes-cursors/package.nix index 85fc0f90678a..9f2b1f6af4c0 100644 --- a/pkgs/by-name/vo/volantes-cursors/package.nix +++ b/pkgs/by-name/vo/volantes-cursors/package.nix @@ -35,6 +35,6 @@ stdenv.mkDerivation { license = lib.licenses.gpl2; maintainers = with lib.maintainers; [ jordanisaacs ]; platforms = lib.platforms.unix; - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; # build timeout + broken = stdenv.hostPlatform.isDarwin; # build timeout }; } diff --git a/pkgs/by-name/wa/wasmer/package.nix b/pkgs/by-name/wa/wasmer/package.nix index 9f1b9afa5ad1..2498f4917b45 100644 --- a/pkgs/by-name/wa/wasmer/package.nix +++ b/pkgs/by-name/wa/wasmer/package.nix @@ -14,8 +14,7 @@ libffi, libxml2, fixDarwinDylibNames, - withLLVM ? - stdenv.hostPlatform.isLinux || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64), + withLLVM ? stdenv.hostPlatform.isLinux, withV8 ? (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64), }: @@ -38,7 +37,7 @@ let "v8-linux-musl.tar.xz" else if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64 then "v8-linux-amd64.tar.xz" - else if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then + else if stdenv.hostPlatform.isDarwin then "v8-darwin-aarch64.tar.xz" else throw "withV8 = true is not supported on ${stdenv.hostPlatform.system}"; diff --git a/pkgs/by-name/wa/wasmtime/package.nix b/pkgs/by-name/wa/wasmtime/package.nix index 5482794a0699..6443ddeb58c9 100644 --- a/pkgs/by-name/wa/wasmtime/package.nix +++ b/pkgs/by-name/wa/wasmtime/package.nix @@ -5,6 +5,8 @@ fetchFromGitHub, buildPackages, cmake, + pkg-config, + zstd, installShellFiles, versionCheckHook, _experimental-update-script-combinators, @@ -21,6 +23,11 @@ let hash = "sha256-zp/BEh1uWaDEGeyqZUZ4PyNGzMDx1hUruMS499yEJA8="; cargoHash = "sha256-h5qEnyhIDxZIbvuiQ/kKZvxcRwynHm18X2jQcY/ChgE="; }; + lts-48 = { + version = "48.0.6"; + hash = "sha256-UysbVNsE9OVYF3e2+JVIedrKEn34NprLL1S8IUuWgF8="; + cargoHash = "sha256-W40zAZKKKEIOZaSDq8jgv2dz3LVHS0+2l2Hwt/zsMo0="; + }; main = { version = "50.0.0"; hash = "sha256-s0DWWCZLEdKf2joTn+QghgfWkJ6Vy4oCxgdB/0/QQlM="; @@ -64,9 +71,12 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ cmake + pkg-config installShellFiles ]; + buildInputs = [ zstd ]; + doCheck = with stdenv.buildPlatform; # SIMD tests are only executed on platforms that support all diff --git a/pkgs/by-name/wa/wasmtime_48/package.nix b/pkgs/by-name/wa/wasmtime_48/package.nix new file mode 100644 index 000000000000..c5afe3f1eb03 --- /dev/null +++ b/pkgs/by-name/wa/wasmtime_48/package.nix @@ -0,0 +1,16 @@ +{ + nix-update-script, + wasmtime, +}: + +# NOTE: LTS Version EOL August 20 2028 +(wasmtime.override { variant = "lts-48"; }).overrideAttrs (old: { + passthru = old.passthru // { + updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^v(48\\.\\d+\\.\\d+)$" + ]; + }; + }; +}) diff --git a/pkgs/by-name/wa/wayback-machine-archiver/package.nix b/pkgs/by-name/wa/wayback-machine-archiver/package.nix index 468dfc38e08c..b111a72a71c1 100644 --- a/pkgs/by-name/wa/wayback-machine-archiver/package.nix +++ b/pkgs/by-name/wa/wayback-machine-archiver/package.nix @@ -9,8 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "4.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "agude"; repo = "wayback-machine-archiver"; diff --git a/pkgs/by-name/wa/wayland-protocols/package.nix b/pkgs/by-name/wa/wayland-protocols/package.nix index 3aeaf002b5dd..37bb14ecce2b 100644 --- a/pkgs/by-name/wa/wayland-protocols/package.nix +++ b/pkgs/by-name/wa/wayland-protocols/package.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "wayland-protocols"; - version = "1.49"; + version = "1.50"; doCheck = stdenv.hostPlatform == stdenv.buildPlatform @@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gitlab.freedesktop.org/wayland/${finalAttrs.pname}/-/releases/${finalAttrs.version}/downloads/${finalAttrs.pname}-${finalAttrs.version}.tar.xz"; - hash = "sha256-7EyPdJQtbf96zotM5HZPDvn/YYqTXZdOp37e4q0kCxQ="; + hash = "sha256-RGDCDPz2i5lKXuIG7RX8Ga0xLxbJYHUYboOw4/SqSKU="; }; postPatch = lib.optionalString finalAttrs.finalPackage.doCheck '' diff --git a/pkgs/by-name/we/weblate/package.nix b/pkgs/by-name/we/weblate/package.nix index 4c4efe191349..3ec94eb3bbd1 100644 --- a/pkgs/by-name/we/weblate/package.nix +++ b/pkgs/by-name/we/weblate/package.nix @@ -37,7 +37,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "weblate"; version = "2026.9.1"; pyproject = true; - __structuredAttrs = true; outputs = [ "out" diff --git a/pkgs/by-name/wh/whichllm/package.nix b/pkgs/by-name/wh/whichllm/package.nix index 792b61d36f5a..72250c6b88d7 100644 --- a/pkgs/by-name/wh/whichllm/package.nix +++ b/pkgs/by-name/wh/whichllm/package.nix @@ -9,7 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "whichllm"; version = "0.6.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Andyyyy64"; diff --git a/pkgs/by-name/wh/whisper-cpp/package.nix b/pkgs/by-name/wh/whisper-cpp/package.nix index 7cbf4689cb10..02724f0ac7ec 100644 --- a/pkgs/by-name/wh/whisper-cpp/package.nix +++ b/pkgs/by-name/wh/whisper-cpp/package.nix @@ -13,7 +13,7 @@ makeWrapper, nix-update-script, - metalSupport ? stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64, + metalSupport ? stdenv.hostPlatform.isDarwin, coreMLSupport ? stdenv.hostPlatform.isDarwin && true, config, diff --git a/pkgs/by-name/wh/why3find/package.nix b/pkgs/by-name/wh/why3find/package.nix index e9761f556ee8..edb4f1cbd485 100644 --- a/pkgs/by-name/wh/why3find/package.nix +++ b/pkgs/by-name/wh/why3find/package.nix @@ -12,6 +12,10 @@ ocamlPackages.buildDunePackage (finalAttrs: { pname = "why3find"; version = "1.3.0"; + # why3find looks up its dune-site locations in its library directory at + # runtime, so the library can't be split into a separate "dev" output. + outputs = [ "out" ]; + src = fetchFromGitLab { domain = "git.frama-c.com"; owner = "pub"; diff --git a/pkgs/by-name/wp/wp-scanner/package.nix b/pkgs/by-name/wp/wp-scanner/package.nix index 685b31c56c84..61f7700d733b 100644 --- a/pkgs/by-name/wp/wp-scanner/package.nix +++ b/pkgs/by-name/wp/wp-scanner/package.nix @@ -10,8 +10,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: { version = "3.0.0"; pyproject = false; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Triotion"; repo = "WP-Scanner"; diff --git a/pkgs/by-name/x1/x16/rom.nix b/pkgs/by-name/x1/x16/rom.nix index 9f291b5d9a95..111e5712798d 100644 --- a/pkgs/by-name/x1/x16/rom.nix +++ b/pkgs/by-name/x1/x16/rom.nix @@ -58,6 +58,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ pluiedev ]; inherit (cc65.meta) platforms; - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; + broken = stdenv.hostPlatform.isDarwin; }; }) diff --git a/pkgs/by-name/xa/xacro/package.nix b/pkgs/by-name/xa/xacro/package.nix index 40cc861e1e5b..2c603d7ac3ca 100644 --- a/pkgs/by-name/xa/xacro/package.nix +++ b/pkgs/by-name/xa/xacro/package.nix @@ -28,8 +28,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pythonImportsCheck = [ "xacro" ]; - __structuredAttrs = true; - meta = { description = "Xacro is an XML macro language. With xacro, you can construct shorter and more readable XML files by using macros that expand to larger XML expressions"; homepage = "https://github.com/ros/xacro"; diff --git a/pkgs/by-name/xa/xacrodoc/package.nix b/pkgs/by-name/xa/xacrodoc/package.nix index 298752ec52c9..609674515ed3 100644 --- a/pkgs/by-name/xa/xacrodoc/package.nix +++ b/pkgs/by-name/xa/xacrodoc/package.nix @@ -41,8 +41,6 @@ python3Packages.buildPythonApplication (finalAttrs: { "xacrodoc" ]; - __structuredAttrs = true; - meta = { description = "Compile xacro files to plain URDF or MJCF from Python or the command line (no ROS required)"; homepage = "https://github.com/adamheins/xacrodoc"; diff --git a/pkgs/by-name/xc/xcb-proto/package.nix b/pkgs/by-name/xc/xcb-proto/package.nix index d5fd73e2f42c..47c3e7061b75 100644 --- a/pkgs/by-name/xc/xcb-proto/package.nix +++ b/pkgs/by-name/xc/xcb-proto/package.nix @@ -35,6 +35,8 @@ stdenv.mkDerivation (finalAttrs: { ''; }; + __structuredAttrs = true; + meta = { description = "XML-XCB protocol descriptions used by libxcb for the X11 protocol & extensions"; homepage = "https://gitlab.freedesktop.org/xorg/proto/xcbproto"; diff --git a/pkgs/by-name/xd/xdg-desktop-portal-cosmic/package.nix b/pkgs/by-name/xd/xdg-desktop-portal-cosmic/package.nix index ca5b86a71421..19fd271fefeb 100644 --- a/pkgs/by-name/xd/xdg-desktop-portal-cosmic/package.nix +++ b/pkgs/by-name/xd/xdg-desktop-portal-cosmic/package.nix @@ -10,6 +10,7 @@ util-linux, libgbm, pipewire, + zstd, gst_all_1, cosmic-wallpapers, nix-update-script, @@ -47,6 +48,7 @@ rustPlatform.buildRustPackage (finalAttrs: { glib libgbm pipewire + zstd ]; checkInputs = [ gst_all_1.gstreamer ]; diff --git a/pkgs/by-name/xd/xdg-desktop-portal-gnome/package.nix b/pkgs/by-name/xd/xdg-desktop-portal-gnome/package.nix index 95c538036275..be9c05ca29c7 100644 --- a/pkgs/by-name/xd/xdg-desktop-portal-gnome/package.nix +++ b/pkgs/by-name/xd/xdg-desktop-portal-gnome/package.nix @@ -23,11 +23,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "xdg-desktop-portal-gnome"; - version = "50.0"; + version = "51.0"; src = fetchurl { url = "mirror://gnome/sources/xdg-desktop-portal-gnome/${lib.versions.major finalAttrs.version}/xdg-desktop-portal-gnome-${finalAttrs.version}.tar.xz"; - hash = "sha256-zu7y+2izSz9mo97wozKiKnCvJyZB+2xQBlt6L949V1k="; + hash = "sha256-7CKLMFCRtknBbGkOECqh1m/BDpg0iI1R5BGRPILBQw0="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/xe/xemu/package.nix b/pkgs/by-name/xe/xemu/package.nix index b70955b2f10d..d6b735c934a7 100644 --- a/pkgs/by-name/xe/xemu/package.nix +++ b/pkgs/by-name/xe/xemu/package.nix @@ -110,9 +110,6 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals stdenv.hostPlatform.isDarwin [ # As seen in the official build script ($src/build.sh) "--disable-cocoa" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "--enable-hvf" ]; buildFlags = [ "qemu-system-i386" ]; @@ -153,14 +150,9 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace ./build.ninja --replace /usr/bin/env $(which env) ''; - postBuild = - lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - # Needed for HVF acceleration - codesign --entitlements $src/accel/hvf/entitlements.plist -f -s - qemu-system-i386-unsigned - '' - + lib.optionalString stdenv.hostPlatform.isDarwin '' - mv qemu-system-i386-unsigned qemu-system-i386 - ''; + postBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' + mv qemu-system-i386-unsigned qemu-system-i386 + ''; installPhase = '' runHook preInstall diff --git a/pkgs/by-name/xh/xhyve/package.nix b/pkgs/by-name/xh/xhyve/package.nix deleted file mode 100644 index e7e9bb506de2..000000000000 --- a/pkgs/by-name/xh/xhyve/package.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - stdenv, - lib, - fetchFromGitHub, - zlib, -}: - -stdenv.mkDerivation rec { - pname = "xhyve"; - version = "20210203"; - - src = fetchFromGitHub { - owner = "machyve"; - repo = "xhyve"; - rev = "83516a009c692ea5d2993d1071e68d05d359b11e"; - sha256 = "1pjdg4ppy6qh3vr1ls5zyw3jzcvwny9wydnmfpadwij1hvns7lj3"; - }; - - buildInputs = [ - zlib - ]; - - # Don't use git to determine version - prePatch = '' - substituteInPlace Makefile \ - --replace 'shell git describe --abbrev=6 --dirty --always --tags' "$version" - ''; - - makeFlags = [ - "CFLAGS+=-Wno-shift-sign-overflow" - ''CFLAGS+=-DVERSION=\"${version}\"'' - ]; - - installPhase = '' - mkdir -p $out/bin - cp build/xhyve $out/bin - ''; - - meta = { - description = "Lightweight Virtualization on macOS Based on bhyve"; - homepage = "https://github.com/mist64/xhyve"; - maintainers = [ ]; - license = lib.licenses.bsd2; - platforms = lib.platforms.darwin; - # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; - }; -} diff --git a/pkgs/by-name/xk/xkbcomp/package.nix b/pkgs/by-name/xk/xkbcomp/package.nix index 24cf1311e7b1..0c2ee133d02f 100644 --- a/pkgs/by-name/xk/xkbcomp/package.nix +++ b/pkgs/by-name/xk/xkbcomp/package.nix @@ -49,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "XKB keyboard description compiler"; homepage = "https://gitlab.freedesktop.org/xorg/app/xkbcomp"; diff --git a/pkgs/by-name/xk/xkeyboard-config/package.nix b/pkgs/by-name/xk/xkeyboard-config/package.nix index 685de9619f8c..a3f53e8236ea 100644 --- a/pkgs/by-name/xk/xkeyboard-config/package.nix +++ b/pkgs/by-name/xk/xkeyboard-config/package.nix @@ -1,7 +1,7 @@ { lib, stdenv, - fetchurl, + fetchFromGitLab, pkg-config, meson, ninja, @@ -9,15 +9,18 @@ perl, libxslt, gettext, - writeScript, + gitUpdater, }: stdenv.mkDerivation (finalAttrs: { pname = "xkeyboard-config"; - version = "2.48"; + version = "2.49"; - src = fetchurl { - url = "mirror://xorg/individual/data/xkeyboard-config/xkeyboard-config-${finalAttrs.version}.tar.xz"; - hash = "sha256-t3BBMk8BCfdxYe5DdD/gS6pIWGavhGDTHkdq0/dkj9U="; + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "xkeyboard-config"; + repo = "xkeyboard-config"; + tag = "xkeyboard-config-${finalAttrs.version}"; + hash = "sha256-55CigEgcPNc3YQlwFVKv+fV5W9JYwnsi9ZPgs13Z14w="; }; strictDeps = true; @@ -48,18 +51,11 @@ stdenv.mkDerivation (finalAttrs: { ''; passthru = { - updateScript = writeScript "update-${finalAttrs.pname}" '' - #!/usr/bin/env nix-shell - #!nix-shell -i bash -p common-updater-scripts - - version="$(list-directory-versions --pname ${finalAttrs.pname} \ - --url https://xorg.freedesktop.org/releases/individual/data/xkeyboard-config/ \ - | sort -V | tail -n1)" - - update-source-version ${finalAttrs.pname} "$version" - ''; + updateScript = gitUpdater { }; }; + __structuredAttrs = true; + meta = { description = "Provides a consistent, well-structured, database of keyboard configuration data"; homepage = "https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config"; diff --git a/pkgs/by-name/xo/xorg-server/package.nix b/pkgs/by-name/xo/xorg-server/package.nix index 9a9f64b499d4..f5731276d101 100644 --- a/pkgs/by-name/xo/xorg-server/package.nix +++ b/pkgs/by-name/xo/xorg-server/package.nix @@ -11,6 +11,7 @@ # deps dbus, dri-pkgconfig-stub, + fetchpatch, font-util, libdrm, libepoxy, @@ -60,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: { # `xvfb` inherits `version` and `src` from here, leading to many rebuilds. If # necessary, these can be moved out of lockstep in order to merge updates # quickly. - version = "21.1.24"; + version = "21.1.25"; outputs = [ "out" @@ -69,10 +70,20 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://xorg/individual/xserver/xorg-server-${finalAttrs.version}.tar.xz"; - hash = "sha256-Gk6zbKZcw7G5NlZtZ3qXhuE8Ec1YBulRrFXz9c45hK8="; + hash = "sha256-atTjx7WaMJsyyS5cFc4SZxEPnhPxrHjaYjYaYo2hoOs="; }; - patches = lib.optionals stdenv.hostPlatform.isDarwin [ + patches = [ + # Revert "damage: Unlink a damage from the list it was actually inserted on" + # Upstream broke AMD drivers see issue below. + # https://gitlab.freedesktop.org/xorg/xserver/-/issues/1930 + (fetchpatch { + name = "revert-damage-unlink-abi-break.patch"; + url = "https://gitlab.freedesktop.org/xorg/xserver/-/commit/a10192e7c3237a707e9bb712a566e2f14415dddd.patch"; + hash = "sha256-vtloUZrdtQ9L56KhNy7m3praW9KmeMmwVGM+rX5EmUw="; + }) + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ ./darwin/bundle_main.patch ./darwin/find-cpp.patch ./darwin/stub.patch diff --git a/pkgs/by-name/xo/xorgproto/package.nix b/pkgs/by-name/xo/xorgproto/package.nix index e36e92a8de03..eb1c2da89412 100644 --- a/pkgs/by-name/xo/xorgproto/package.nix +++ b/pkgs/by-name/xo/xorgproto/package.nix @@ -48,6 +48,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "X Window System unified protocol definitions"; homepage = "https://gitlab.freedesktop.org/xorg/proto/xorgproto"; diff --git a/pkgs/by-name/xp/xplr/package.nix b/pkgs/by-name/xp/xplr/package.nix index a1ddece9e649..7566f89a12a5 100644 --- a/pkgs/by-name/xp/xplr/package.nix +++ b/pkgs/by-name/xp/xplr/package.nix @@ -1,6 +1,5 @@ { lib, - stdenv, rustPlatform, fetchFromGitHub, }: @@ -17,11 +16,6 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-CmpiMRiif7fkJtcNHapWuY8p0QgIROzF4tXUQ8/1I7s="; - # fixes `thread 'main' panicked at 'cannot find strip'` on x86_64-darwin - env = lib.optionalAttrs (stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin) { - TARGET_STRIP = "${stdenv.cc.targetPrefix}strip"; - }; - # error: linker `aarch64-linux-gnu-gcc` not found postPatch = '' rm .cargo/config.toml diff --git a/pkgs/by-name/xp/xpra/package.nix b/pkgs/by-name/xp/xpra/package.nix index 34804fc6299e..1c41584ba9b6 100644 --- a/pkgs/by-name/xp/xpra/package.nix +++ b/pkgs/by-name/xp/xpra/package.nix @@ -106,7 +106,6 @@ effectiveBuildPythonApplication (finalAttrs: { pname = "xpra"; version = "6.5.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Xpra-org"; diff --git a/pkgs/by-name/xs/xsser/package.nix b/pkgs/by-name/xs/xsser/package.nix index ab4cbe99223f..f78e7c05e5e0 100644 --- a/pkgs/by-name/xs/xsser/package.nix +++ b/pkgs/by-name/xs/xsser/package.nix @@ -14,8 +14,6 @@ python3Packages.buildPythonApplication (finalAttrs: { version = "1.9"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "epsylon"; repo = "xsser"; diff --git a/pkgs/by-name/xs/xsstrike/package.nix b/pkgs/by-name/xs/xsstrike/package.nix index 7502cdd97fd5..faa0c49839d6 100644 --- a/pkgs/by-name/xs/xsstrike/package.nix +++ b/pkgs/by-name/xs/xsstrike/package.nix @@ -19,8 +19,6 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-6U0e9JkYYIt+APZ6B4+kNO/hcC3BAfrn+QXbCnLqpbs="; }; - __structuredAttrs = true; - patches = [ (fetchpatch2 { # https://github.com/s0md3v/XSStrike/pull/435 diff --git a/pkgs/by-name/xt/xterm/package.nix b/pkgs/by-name/xt/xterm/package.nix index 20ff4cec75d2..8679e752ee6a 100644 --- a/pkgs/by-name/xt/xterm/package.nix +++ b/pkgs/by-name/xt/xterm/package.nix @@ -24,14 +24,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "xterm"; - version = "411"; + version = "412"; src = fetchurl { urls = [ "https://invisible-island.net/archives/xterm/xterm-${finalAttrs.version}.tgz" "https://invisible-mirror.net/archives/xterm/xterm-${finalAttrs.version}.tgz" ]; - hash = "sha256-lpvig2cN6t1mk0hlxN5sWrBF46P6zCsijez5GiDYw2w="; + hash = "sha256-tIvHgMHLwU9tiSafflk3Eq9glYdpYNZQvii1Xl2tZaY="; }; patches = [ ./sixel-256.support.patch ]; diff --git a/pkgs/by-name/xt/xtrans/package.nix b/pkgs/by-name/xt/xtrans/package.nix index 5f6a4b9b7eaa..5c7a6911425e 100644 --- a/pkgs/by-name/xt/xtrans/package.nix +++ b/pkgs/by-name/xt/xtrans/package.nix @@ -40,6 +40,8 @@ stdenv.mkDerivation (finalAttrs: { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; + __structuredAttrs = true; + meta = { description = "X Window System Protocols Transport layer shared code"; homepage = "https://gitlab.freedesktop.org/xorg/lib/libxtrans"; diff --git a/pkgs/by-name/xv/xvfb/package.nix b/pkgs/by-name/xv/xvfb/package.nix index 934fade5a795..d5b82ed8a5b8 100644 --- a/pkgs/by-name/xv/xvfb/package.nix +++ b/pkgs/by-name/xv/xvfb/package.nix @@ -38,7 +38,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "xvfb"; - inherit (xorg-server) src version; + # TODO: commented out for rebuild avoidance after xorg-server update. revert + # on staging. + # inherit (xorg-server) src version; + version = "21.1.24"; + src = fetchurl { + url = "mirror://xorg/individual/xserver/xorg-server-${finalAttrs.version}.tar.xz"; + hash = "sha256-Gk6zbKZcw7G5NlZtZ3qXhuE8Ec1YBulRrFXz9c45hK8="; + }; strictDeps = true; diff --git a/pkgs/by-name/ya/yamlpath/package.nix b/pkgs/by-name/ya/yamlpath/package.nix index 9c0100c48675..f2008c7e5393 100644 --- a/pkgs/by-name/ya/yamlpath/package.nix +++ b/pkgs/by-name/ya/yamlpath/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "yamlpath"; version = "3.9.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "wwkimball"; diff --git a/pkgs/by-name/ya/yaneuraou/package.nix b/pkgs/by-name/ya/yaneuraou/package.nix index 644b503fad90..81853d89301e 100644 --- a/pkgs/by-name/ya/yaneuraou/package.nix +++ b/pkgs/by-name/ya/yaneuraou/package.nix @@ -7,12 +7,7 @@ targetLabel ? with stdenv.hostPlatform; if isDarwin then - if isAarch64 then - "APPLEM1" - else if avx2Support then - "APPLEAVX2" - else - "APPLESSE42" + "APPLEM1" else if isx86_64 then if avx512Support then "AVX512" diff --git a/pkgs/by-name/ya/yaookctl/package.nix b/pkgs/by-name/ya/yaookctl/package.nix index 0f7b8736645f..5da8369677ea 100644 --- a/pkgs/by-name/ya/yaookctl/package.nix +++ b/pkgs/by-name/ya/yaookctl/package.nix @@ -15,8 +15,6 @@ python3.pkgs.buildPythonApplication { hash = "sha256-417m1kW9vSmEiFAl4R0aXdTktpIgm+iA85na9r3uZtE="; }; - __structuredAttrs = true; - pyproject = true; build-system = [ python3.pkgs.setuptools ]; diff --git a/pkgs/by-name/ya/yarn-zpm/package.nix b/pkgs/by-name/ya/yarn-zpm/package.nix index 0b5de2a5eec3..ddbaecd08c8d 100644 --- a/pkgs/by-name/ya/yarn-zpm/package.nix +++ b/pkgs/by-name/ya/yarn-zpm/package.nix @@ -8,7 +8,10 @@ rustPlatform, versionCheckHook, stdenv, + pkg-config, + aws-lc, cacert, + rust-jemalloc-sys, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -27,6 +30,13 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoBuildFlags = [ "--package=zpm" ]; cargoTestFlags = [ "--package=zpm" ]; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + aws-lc + rust-jemalloc-sys + ]; + env = { SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; }; diff --git a/pkgs/by-name/ye/yelp/package.nix b/pkgs/by-name/ye/yelp/package.nix index 30b0cbce2796..f2ae6876f38f 100644 --- a/pkgs/by-name/ye/yelp/package.nix +++ b/pkgs/by-name/ye/yelp/package.nix @@ -24,11 +24,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "yelp"; - version = "49.1"; + version = "49.2"; src = fetchurl { url = "mirror://gnome/sources/yelp/${lib.versions.major finalAttrs.version}/yelp-${finalAttrs.version}.tar.xz"; - hash = "sha256-Pj6U7y0slIfMUQYuOvv6FXjOvSnYDIQ1e21+5tz9inQ="; + hash = "sha256-WvyOdzCEUe5F7pGe/uWhVMo8FTqQ4qG1jOv3gnq4itA="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/yo/yocto-cooker/package.nix b/pkgs/by-name/yo/yocto-cooker/package.nix index 8a2859585927..e8b6174f5338 100644 --- a/pkgs/by-name/yo/yocto-cooker/package.nix +++ b/pkgs/by-name/yo/yocto-cooker/package.nix @@ -26,8 +26,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pyjson5 ]; - __structuredAttrs = true; - meta = { description = "Meta buildtool for Yocto Project based Linux embedded systems"; homepage = "https://github.com/cpb-/yocto-cooker"; diff --git a/pkgs/by-name/yt/yt-dlp/package.nix b/pkgs/by-name/yt/yt-dlp/package.nix index 8e36ef08ed7e..56d1164032dc 100644 --- a/pkgs/by-name/yt/yt-dlp/package.nix +++ b/pkgs/by-name/yt/yt-dlp/package.nix @@ -54,7 +54,6 @@ python3Packages.buildPythonApplication rec { ''} ''; - __structuredAttrs = true; outputs = [ "out" "man" diff --git a/pkgs/by-name/zb/zbctl/package.nix b/pkgs/by-name/zb/zbctl/package.nix index e2c1feee05b3..f95d874a6b00 100644 --- a/pkgs/by-name/zb/zbctl/package.nix +++ b/pkgs/by-name/zb/zbctl/package.nix @@ -9,12 +9,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { version = "8.4.19"; src = - if stdenvNoCC.hostPlatform.system == "x86_64-darwin" then - fetchurl { - url = "https://github.com/camunda/zeebe/releases/download/${finalAttrs.version}/zbctl.darwin"; - hash = "sha256-RuZX9TWuXBxxegLw0La0l9/6zh96V/2trJvZUoCvTKk="; - } - else if stdenvNoCC.hostPlatform.system == "x86_64-linux" then + if stdenvNoCC.hostPlatform.system == "x86_64-linux" then fetchurl { url = "https://github.com/camunda/zeebe/releases/download/${finalAttrs.version}/zbctl"; hash = "sha256-NTJqmcOzpOzHjrtOHBU2J3u0f7sESBeZMbb8kx3zR38="; diff --git a/pkgs/by-name/zc/zcash/package.nix b/pkgs/by-name/zc/zcash/package.nix index f62290dfe9c0..178a2ab0941c 100644 --- a/pkgs/by-name/zc/zcash/package.nix +++ b/pkgs/by-name/zc/zcash/package.nix @@ -114,6 +114,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.mit; # https://github.com/zcash/zcash/issues/4405 - broken = stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin; + broken = stdenv.hostPlatform.isDarwin; }; }) diff --git a/pkgs/by-name/ze/zed-editor/package.nix b/pkgs/by-name/ze/zed-editor/package.nix index 9d78105a5fd1..b1bba64a4c40 100644 --- a/pkgs/by-name/ze/zed-editor/package.nix +++ b/pkgs/by-name/ze/zed-editor/package.nix @@ -6,6 +6,7 @@ pkg-config, protobuf, fontconfig, + aws-lc, libgit2, openssl, sqlite, @@ -155,6 +156,7 @@ rustPlatform.buildRustPackage (finalAttrs: { dontUseCmakeConfigure = true; buildInputs = [ + aws-lc libgit2 sqlite zlib diff --git a/pkgs/by-name/zf/zfs-replicate/package.nix b/pkgs/by-name/zf/zfs-replicate/package.nix index c0ee00252530..c25c299c7869 100644 --- a/pkgs/by-name/zf/zfs-replicate/package.nix +++ b/pkgs/by-name/zf/zfs-replicate/package.nix @@ -10,7 +10,6 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "zfs_replicate"; version = "4.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "alunduil"; diff --git a/pkgs/by-name/zv/zvbi/package.nix b/pkgs/by-name/zv/zvbi/package.nix index ea33b1e12e8e..5f5dc81de0e9 100644 --- a/pkgs/by-name/zv/zvbi/package.nix +++ b/pkgs/by-name/zv/zvbi/package.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "zvbi"; - version = "0.2.45"; + version = "0.2.46"; src = fetchFromGitHub { owner = "zapping-vbi"; repo = "zvbi"; rev = "v${finalAttrs.version}"; - hash = "sha256-Nkg/Y7tHYAEi3ndbiJwwutVrGCOIE5RUCNQW3j12BkM="; + hash = "sha256-7x14IzU5qSY4Tu1LQtqnlbUjbIyMnI8zOtMYRc3m5d8="; }; configureFlags = lib.optionals (!lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform) [ @@ -41,6 +41,8 @@ stdenv.mkDerivation (finalAttrs: { tzdata ]; + strictDeps = true; + outputs = [ "out" "dev" @@ -61,6 +63,8 @@ stdenv.mkDerivation (finalAttrs: { updateScript = gitUpdater { rev-prefix = "v"; }; }; + __structuredAttrs = true; + meta = { description = "Vertical Blanking Interval (VBI) utilities"; homepage = "https://github.com/zapping-vbi/zvbi"; diff --git a/pkgs/development/compilers/binaryen/default.nix b/pkgs/development/compilers/binaryen/default.nix index 841b4ae598c6..e44d49bb8700 100644 --- a/pkgs/development/compilers/binaryen/default.nix +++ b/pkgs/development/compilers/binaryen/default.nix @@ -58,6 +58,10 @@ stdenv.mkDerivation rec { fi ''; + cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ + (lib.cmakeFeature "CMAKE_OSX_DEPLOYMENT_TARGET" stdenv.hostPlatform.darwinMinVersion) + ]; + nativeCheckInputs = [ lit nodejs diff --git a/pkgs/development/compilers/chicken/4/chicken.nix b/pkgs/development/compilers/chicken/4/chicken.nix index fa96639f85db..62fe8920c7bc 100644 --- a/pkgs/development/compilers/chicken/4/chicken.nix +++ b/pkgs/development/compilers/chicken/4/chicken.nix @@ -65,7 +65,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ makeWrapper ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/development/compilers/chicken/common/chicken.nix b/pkgs/development/compilers/chicken/common/chicken.nix index 6c6f6c867ca5..72f0637083f3 100644 --- a/pkgs/development/compilers/chicken/common/chicken.nix +++ b/pkgs/development/compilers/chicken/common/chicken.nix @@ -75,7 +75,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ makeWrapper ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.autoSignDarwinBinariesHook ]; diff --git a/pkgs/development/compilers/gcc/common/checksum.nix b/pkgs/development/compilers/gcc/common/checksum.nix index 45c5e4340305..bc22fc9c4b89 100644 --- a/pkgs/development/compilers/gcc/common/checksum.nix +++ b/pkgs/development/compilers/gcc/common/checksum.nix @@ -35,8 +35,9 @@ in mv gcc/build/genchecksum gcc/build/.genchecksum-wrapped cat > gcc/build/genchecksum <<\EOF #!${runtimeShell} + set -e ${nukeReferences}/bin/nuke-refs $@ - for INPUT in "$@"; do install -Dt $INPUT $checksum/inputs/; done + for INPUT in "$@"; do install -Dt "$checksum/inputs/" "$INPUT"; done exec build/.genchecksum-wrapped $@ EOF chmod +x gcc/build/genchecksum diff --git a/pkgs/development/compilers/gcc/default.nix b/pkgs/development/compilers/gcc/default.nix index a78b290c953d..60eea4f51325 100644 --- a/pkgs/development/compilers/gcc/default.nix +++ b/pkgs/development/compilers/gcc/default.nix @@ -52,9 +52,7 @@ buildPackages, pkgsBuildTarget, libxcrypt, - disableGdbPlugin ? - !enablePlugin - || (stdenv.targetPlatform.isAvr && stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64), + disableGdbPlugin ? !enablePlugin || (stdenv.targetPlatform.isAvr && stdenv.hostPlatform.isDarwin), nukeReferences, callPackage, majorMinorVersion, diff --git a/pkgs/development/compilers/gcc/patches/default.nix b/pkgs/development/compilers/gcc/patches/default.nix index 8a8994d406ad..6b7284111006 100644 --- a/pkgs/development/compilers/gcc/patches/default.nix +++ b/pkgs/development/compilers/gcc/patches/default.nix @@ -108,6 +108,9 @@ optionals noSysDirs ( # LoongArch: fix miscompile of both_non_zero{,_subreg} when operands[0] == operands[2] # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127153 ++ optional is16 ./16/loongarch-fix-miscompile-of-both_non_zero.patch +# Allow room for the sign in libgomp device UIDs; GCC 16 otherwise fails with +# -Werror=format-truncation when cross-compiling against glibc. +++ optional is16 ../ng/16/libgomp/uid-buffer-size.patch ## 2. Patches relevant on specific platforms #################################### diff --git a/pkgs/development/compilers/ghc/common-hadrian.nix b/pkgs/development/compilers/ghc/common-hadrian.nix index d3049455a1d6..56d0dfda9c8c 100644 --- a/pkgs/development/compilers/ghc/common-hadrian.nix +++ b/pkgs/development/compilers/ghc/common-hadrian.nix @@ -791,7 +791,7 @@ stdenv.mkDerivation ( # Tool used to update GHC's settings file in postInstall bootPkgs.ghc-settings-edit ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ autoSignDarwinBinariesHook ] ++ lib.optionals enableDocs [ diff --git a/pkgs/development/compilers/ghc/common-make-native-bignum.nix b/pkgs/development/compilers/ghc/common-make-native-bignum.nix index ad691d9f5247..8ac5c6ecb01e 100644 --- a/pkgs/development/compilers/ghc/common-make-native-bignum.nix +++ b/pkgs/development/compilers/ghc/common-make-native-bignum.nix @@ -579,7 +579,7 @@ stdenv.mkDerivation ( bootPkgs.hscolour bootPkgs.ghc-settings-edit ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ autoSignDarwinBinariesHook ] ++ lib.optionals enableDocs [ diff --git a/pkgs/development/compilers/gnat-bootstrap/default.nix b/pkgs/development/compilers/gnat-bootstrap/default.nix index f776ef6ef102..37a449231197 100644 --- a/pkgs/development/compilers/gnat-bootstrap/default.nix +++ b/pkgs/development/compilers/gnat-bootstrap/default.nix @@ -15,7 +15,7 @@ libipt, zlib, dejagnu, - sourceHighlight, + source-highlight, python3, elfutils, guile, @@ -139,7 +139,7 @@ stdenv.mkDerivation ( mpfr python3 readline - sourceHighlight + source-highlight zlib ] ++ lib.optionals stdenv.buildPlatform.isLinux [ diff --git a/pkgs/development/compilers/julia/generic-bin.nix b/pkgs/development/compilers/julia/generic-bin.nix index 5b2f3358c7b9..b7f359d9cbec 100644 --- a/pkgs/development/compilers/julia/generic-bin.nix +++ b/pkgs/development/compilers/julia/generic-bin.nix @@ -54,12 +54,6 @@ let # Test requires network access "Sockets" "Distributed" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Test Failed at $out/share/julia/stdlib/v1.8/LinearAlgebra/test/blas.jl:702 - "LinearAlgebra/blas" - # Test Failed at $out/share/julia/test/misc.jl:724 - "misc" ]; in stdenv.mkDerivation { diff --git a/pkgs/development/compilers/llvm/18/llvm/align-__linkedit-entries-to-pointer-size.patch b/pkgs/development/compilers/llvm/18/llvm/align-__linkedit-entries-to-pointer-size.patch new file mode 100644 index 000000000000..44455c79ad89 --- /dev/null +++ b/pkgs/development/compilers/llvm/18/llvm/align-__linkedit-entries-to-pointer-size.patch @@ -0,0 +1,946 @@ +diff --git a/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp b/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp +index a3d4ba3a94..3597af7471 100644 +--- a/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp ++++ b/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp +@@ -236,24 +236,27 @@ + "Incorrect tail offset"); + Offset = std::max(Offset, HeaderSize + O.Header.SizeOfCmds); + ++ const uint64_t LinkEditAlign = Is64Bit ? 8 : 4; ++ Offset = alignToPowerOf2(Offset, LinkEditAlign); ++ + // The exports trie can be in either LC_DYLD_INFO or in + // LC_DYLD_EXPORTS_TRIE, but not both. +- size_t DyldInfoExportsTrieSize = 0; +- size_t DyldExportsTrieSize = 0; ++ uint64_t DyldInfoExportsTrieRawSize = 0; ++ uint64_t DyldExportsTrieRawSize = 0; + for (const auto &LC : O.LoadCommands) { + switch (LC.MachOLoadCommand.load_command_data.cmd) { + case MachO::LC_DYLD_INFO: + case MachO::LC_DYLD_INFO_ONLY: +- DyldInfoExportsTrieSize = O.Exports.Trie.size(); ++ DyldInfoExportsTrieRawSize = O.Exports.Trie.size(); + break; + case MachO::LC_DYLD_EXPORTS_TRIE: +- DyldExportsTrieSize = O.Exports.Trie.size(); ++ DyldExportsTrieRawSize = O.Exports.Trie.size(); + break; + default: + break; + } + } +- assert((DyldInfoExportsTrieSize == 0 || DyldExportsTrieSize == 0) && ++ assert((DyldInfoExportsTrieRawSize == 0 || DyldExportsTrieRawSize == 0) && + "Export trie in both LCs"); + + uint64_t NListSize = Is64Bit ? sizeof(MachO::nlist_64) : sizeof(MachO::nlist); +@@ -264,28 +267,43 @@ + // trie, chained fixups, dyld exports trie, function starts, data-in-code, + // symbol table, indirect symbol table, symbol table strings, + // dylib codesign drs, and code signature. +- auto updateOffset = [&Offset](size_t Size) { ++ auto updateOffset = [&Offset, LinkEditAlign](uint64_t Size) { + uint64_t PreviousOffset = Offset; +- Offset += Size; +- return PreviousOffset; ++ // Match ld64 and lld-macho behavior by aligning all LINKEDIT entries to ++ // pointer size. This is safe because zero padding is valid for all entries. ++ uint64_t PaddedSize = alignToPowerOf2(Size, LinkEditAlign); ++ Offset += PaddedSize; ++ return std::make_pair(PreviousOffset, PaddedSize); + }; + +- uint64_t StartOfRebaseInfo = updateOffset(O.Rebases.Opcodes.size()); +- uint64_t StartOfBindingInfo = updateOffset(O.Binds.Opcodes.size()); +- uint64_t StartOfWeakBindingInfo = updateOffset(O.WeakBinds.Opcodes.size()); +- uint64_t StartOfLazyBindingInfo = updateOffset(O.LazyBinds.Opcodes.size()); +- uint64_t StartOfExportTrie = updateOffset(DyldInfoExportsTrieSize); +- uint64_t StartOfChainedFixups = updateOffset(O.ChainedFixups.Data.size()); +- uint64_t StartOfDyldExportsTrie = updateOffset(DyldExportsTrieSize); +- uint64_t StartOfFunctionStarts = updateOffset(O.FunctionStarts.Data.size()); +- uint64_t StartOfDataInCode = updateOffset(O.DataInCode.Data.size()); +- uint64_t StartOfLinkerOptimizationHint = ++ auto [StartOfRebaseInfo, RebaseInfoSize] = ++ updateOffset(O.Rebases.Opcodes.size()); ++ auto [StartOfBindingInfo, BindingInfoSize] = ++ updateOffset(O.Binds.Opcodes.size()); ++ auto [StartOfWeakBindingInfo, WeakBindingInfoSize] = ++ updateOffset(O.WeakBinds.Opcodes.size()); ++ auto [StartOfLazyBindingInfo, LazyBindingInfoSize] = ++ updateOffset(O.LazyBinds.Opcodes.size()); ++ auto [StartOfExportTrie, ExportTrieSize] = ++ updateOffset(DyldInfoExportsTrieRawSize); ++ auto [StartOfChainedFixups, ChainedFixupsSize] = ++ updateOffset(O.ChainedFixups.Data.size()); ++ auto [StartOfDyldExportsTrie, DyldExportsTrieSize] = ++ updateOffset(DyldExportsTrieRawSize); ++ auto [StartOfFunctionStarts, FunctionStartsSize] = ++ updateOffset(O.FunctionStarts.Data.size()); ++ auto [StartOfDataInCode, DataInCodeSize] = ++ updateOffset(O.DataInCode.Data.size()); ++ auto [StartOfLinkerOptimizationHint, LinkerOptimizationHintSize] = + updateOffset(O.LinkerOptimizationHint.Data.size()); +- uint64_t StartOfSymbols = updateOffset(NListSize * O.SymTable.Symbols.size()); ++ uint64_t StartOfSymbols = ++ updateOffset(NListSize * O.SymTable.Symbols.size()).first; + uint64_t StartOfIndirectSymbols = +- updateOffset(sizeof(uint32_t) * O.IndirectSymTable.Symbols.size()); +- uint64_t StartOfSymbolStrings = updateOffset(StrTableBuilder.getSize()); +- uint64_t StartOfDylibCodeSignDRs = updateOffset(O.DylibCodeSignDRs.Data.size()); ++ updateOffset(sizeof(uint32_t) * O.IndirectSymTable.Symbols.size()).first; ++ auto [StartOfSymbolStrings, SymbolStringsSize] = ++ updateOffset(StrTableBuilder.getSize()); ++ auto [StartOfDylibCodeSignDRs, DylibCodeSignDRsSize] = ++ updateOffset(O.DylibCodeSignDRs.Data.size()); + + uint64_t StartOfCodeSignature = Offset; + uint32_t CodeSignatureSize = 0; +@@ -344,13 +362,13 @@ + break; + case MachO::LC_DYLIB_CODE_SIGN_DRS: + MLC.linkedit_data_command_data.dataoff = StartOfDylibCodeSignDRs; +- MLC.linkedit_data_command_data.datasize = O.DylibCodeSignDRs.Data.size(); ++ MLC.linkedit_data_command_data.datasize = DylibCodeSignDRsSize; + break; + case MachO::LC_SYMTAB: + MLC.symtab_command_data.symoff = StartOfSymbols; + MLC.symtab_command_data.nsyms = O.SymTable.Symbols.size(); + MLC.symtab_command_data.stroff = StartOfSymbolStrings; +- MLC.symtab_command_data.strsize = StrTableBuilder.getSize(); ++ MLC.symtab_command_data.strsize = SymbolStringsSize; + break; + case MachO::LC_DYSYMTAB: { + if (MLC.dysymtab_command_data.ntoc != 0 || +@@ -372,20 +390,19 @@ + } + case MachO::LC_DATA_IN_CODE: + MLC.linkedit_data_command_data.dataoff = StartOfDataInCode; +- MLC.linkedit_data_command_data.datasize = O.DataInCode.Data.size(); ++ MLC.linkedit_data_command_data.datasize = DataInCodeSize; + break; + case MachO::LC_LINKER_OPTIMIZATION_HINT: + MLC.linkedit_data_command_data.dataoff = StartOfLinkerOptimizationHint; +- MLC.linkedit_data_command_data.datasize = +- O.LinkerOptimizationHint.Data.size(); ++ MLC.linkedit_data_command_data.datasize = LinkerOptimizationHintSize; + break; + case MachO::LC_FUNCTION_STARTS: + MLC.linkedit_data_command_data.dataoff = StartOfFunctionStarts; +- MLC.linkedit_data_command_data.datasize = O.FunctionStarts.Data.size(); ++ MLC.linkedit_data_command_data.datasize = FunctionStartsSize; + break; + case MachO::LC_DYLD_CHAINED_FIXUPS: + MLC.linkedit_data_command_data.dataoff = StartOfChainedFixups; +- MLC.linkedit_data_command_data.datasize = O.ChainedFixups.Data.size(); ++ MLC.linkedit_data_command_data.datasize = ChainedFixupsSize; + break; + case MachO::LC_DYLD_EXPORTS_TRIE: + MLC.linkedit_data_command_data.dataoff = StartOfDyldExportsTrie; +@@ -395,19 +412,19 @@ + case MachO::LC_DYLD_INFO_ONLY: + MLC.dyld_info_command_data.rebase_off = + O.Rebases.Opcodes.empty() ? 0 : StartOfRebaseInfo; +- MLC.dyld_info_command_data.rebase_size = O.Rebases.Opcodes.size(); ++ MLC.dyld_info_command_data.rebase_size = RebaseInfoSize; + MLC.dyld_info_command_data.bind_off = + O.Binds.Opcodes.empty() ? 0 : StartOfBindingInfo; +- MLC.dyld_info_command_data.bind_size = O.Binds.Opcodes.size(); ++ MLC.dyld_info_command_data.bind_size = BindingInfoSize; + MLC.dyld_info_command_data.weak_bind_off = + O.WeakBinds.Opcodes.empty() ? 0 : StartOfWeakBindingInfo; +- MLC.dyld_info_command_data.weak_bind_size = O.WeakBinds.Opcodes.size(); ++ MLC.dyld_info_command_data.weak_bind_size = WeakBindingInfoSize; + MLC.dyld_info_command_data.lazy_bind_off = + O.LazyBinds.Opcodes.empty() ? 0 : StartOfLazyBindingInfo; +- MLC.dyld_info_command_data.lazy_bind_size = O.LazyBinds.Opcodes.size(); ++ MLC.dyld_info_command_data.lazy_bind_size = LazyBindingInfoSize; + MLC.dyld_info_command_data.export_off = + O.Exports.Trie.empty() ? 0 : StartOfExportTrie; +- MLC.dyld_info_command_data.export_size = DyldInfoExportsTrieSize; ++ MLC.dyld_info_command_data.export_size = ExportTrieSize; + break; + // Note that LC_ENCRYPTION_INFO.cryptoff despite its name and the comment in + // is not an offset in the binary file, instead, it is a +diff --git a/lib/ObjCopy/MachO/MachOWriter.cpp b/lib/ObjCopy/MachO/MachOWriter.cpp +index f416796496..a4924cd1ed 100644 +--- a/lib/ObjCopy/MachO/MachOWriter.cpp ++++ b/lib/ObjCopy/MachO/MachOWriter.cpp +@@ -25,6 +25,12 @@ + using namespace llvm::objcopy::macho; + using namespace llvm::support::endian; + ++#ifndef NDEBUG ++static uint64_t paddedLinkEditEntrySize(uint64_t Size, bool Is64Bit) { ++ return alignToPowerOf2(Size, Is64Bit ? 8 : 4); ++} ++#endif ++ + size_t MachOWriter::headerSize() const { + return Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); + } +@@ -56,29 +62,34 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + if (DyLdInfoCommand.rebase_off) { +- assert((DyLdInfoCommand.rebase_size == O.Rebases.Opcodes.size()) && ++ assert((DyLdInfoCommand.rebase_size == ++ paddedLinkEditEntrySize(O.Rebases.Opcodes.size(), Is64Bit)) && + "Incorrect rebase opcodes size"); + Ends.push_back(DyLdInfoCommand.rebase_off + DyLdInfoCommand.rebase_size); + } + if (DyLdInfoCommand.bind_off) { +- assert((DyLdInfoCommand.bind_size == O.Binds.Opcodes.size()) && ++ assert((DyLdInfoCommand.bind_size == ++ paddedLinkEditEntrySize(O.Binds.Opcodes.size(), Is64Bit)) && + "Incorrect bind opcodes size"); + Ends.push_back(DyLdInfoCommand.bind_off + DyLdInfoCommand.bind_size); + } + if (DyLdInfoCommand.weak_bind_off) { +- assert((DyLdInfoCommand.weak_bind_size == O.WeakBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.weak_bind_size == ++ paddedLinkEditEntrySize(O.WeakBinds.Opcodes.size(), Is64Bit)) && + "Incorrect weak bind opcodes size"); + Ends.push_back(DyLdInfoCommand.weak_bind_off + + DyLdInfoCommand.weak_bind_size); + } + if (DyLdInfoCommand.lazy_bind_off) { +- assert((DyLdInfoCommand.lazy_bind_size == O.LazyBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.lazy_bind_size == ++ paddedLinkEditEntrySize(O.LazyBinds.Opcodes.size(), Is64Bit)) && + "Incorrect lazy bind opcodes size"); + Ends.push_back(DyLdInfoCommand.lazy_bind_off + + DyLdInfoCommand.lazy_bind_size); + } + if (DyLdInfoCommand.export_off) { +- assert((DyLdInfoCommand.export_size == O.Exports.Trie.size()) && ++ assert((DyLdInfoCommand.export_size == ++ paddedLinkEditEntrySize(O.Exports.Trie.size(), Is64Bit)) && + "Incorrect trie size"); + Ends.push_back(DyLdInfoCommand.export_off + DyLdInfoCommand.export_size); + } +@@ -321,7 +332,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.rebase_off; +- assert((DyLdInfoCommand.rebase_size == O.Rebases.Opcodes.size()) && ++ assert((DyLdInfoCommand.rebase_size == ++ paddedLinkEditEntrySize(O.Rebases.Opcodes.size(), Is64Bit)) && + "Incorrect rebase opcodes size"); + memcpy(Out, O.Rebases.Opcodes.data(), O.Rebases.Opcodes.size()); + } +@@ -333,7 +345,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.bind_off; +- assert((DyLdInfoCommand.bind_size == O.Binds.Opcodes.size()) && ++ assert((DyLdInfoCommand.bind_size == ++ paddedLinkEditEntrySize(O.Binds.Opcodes.size(), Is64Bit)) && + "Incorrect bind opcodes size"); + memcpy(Out, O.Binds.Opcodes.data(), O.Binds.Opcodes.size()); + } +@@ -345,7 +358,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.weak_bind_off; +- assert((DyLdInfoCommand.weak_bind_size == O.WeakBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.weak_bind_size == ++ paddedLinkEditEntrySize(O.WeakBinds.Opcodes.size(), Is64Bit)) && + "Incorrect weak bind opcodes size"); + memcpy(Out, O.WeakBinds.Opcodes.data(), O.WeakBinds.Opcodes.size()); + } +@@ -357,7 +371,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.lazy_bind_off; +- assert((DyLdInfoCommand.lazy_bind_size == O.LazyBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.lazy_bind_size == ++ paddedLinkEditEntrySize(O.LazyBinds.Opcodes.size(), Is64Bit)) && + "Incorrect lazy bind opcodes size"); + memcpy(Out, O.LazyBinds.Opcodes.data(), O.LazyBinds.Opcodes.size()); + } +@@ -369,7 +384,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.export_off; +- assert((DyLdInfoCommand.export_size == O.Exports.Trie.size()) && ++ assert((DyLdInfoCommand.export_size == ++ paddedLinkEditEntrySize(O.Exports.Trie.size(), Is64Bit)) && + "Incorrect export trie size"); + memcpy(Out, O.Exports.Trie.data(), O.Exports.Trie.size()); + } +@@ -399,7 +415,8 @@ + const MachO::linkedit_data_command &LinkEditDataCommand = + O.LoadCommands[*LCIndex].MachOLoadCommand.linkedit_data_command_data; + char *Out = (char *)Buf->getBufferStart() + LinkEditDataCommand.dataoff; +- assert((LinkEditDataCommand.datasize == LD.Data.size()) && ++ assert((LinkEditDataCommand.datasize == ++ paddedLinkEditEntrySize(LD.Data.size(), Is64Bit)) && + "Incorrect data size"); + memcpy(Out, LD.Data.data(), LD.Data.size()); + } +@@ -576,7 +593,8 @@ + O.LoadCommands[*O.ExportsTrieCommandIndex] + .MachOLoadCommand.linkedit_data_command_data; + char *Out = (char *)Buf->getBufferStart() + ExportsTrieCmd.dataoff; +- assert((ExportsTrieCmd.datasize == O.Exports.Trie.size()) && ++ assert((ExportsTrieCmd.datasize == ++ paddedLinkEditEntrySize(O.Exports.Trie.size(), Is64Bit)) && + "Incorrect export trie size"); + memcpy(Out, O.Exports.Trie.data(), O.Exports.Trie.size()); + } +diff --git a/lib/ObjectYAML/MachOEmitter.cpp b/lib/ObjectYAML/MachOEmitter.cpp +index c08b389dae..f24f904ffc 100644 +--- a/lib/ObjectYAML/MachOEmitter.cpp ++++ b/lib/ObjectYAML/MachOEmitter.cpp +@@ -597,9 +597,12 @@ + } + + void MachOWriter::writeDynamicSymbolTable(raw_ostream &OS) { +- for (auto Data : Obj.LinkEdit.IndirectSymbols) +- OS.write(reinterpret_cast(&Data), +- sizeof(yaml::Hex32::BaseType)); ++ for (auto Data : Obj.LinkEdit.IndirectSymbols) { ++ uint32_t Value = Data; ++ if (Obj.IsLittleEndian != sys::IsLittleEndianHost) ++ MachO::swapStruct(Value); ++ OS.write(reinterpret_cast(&Value), sizeof(uint32_t)); ++ } + } + + void MachOWriter::writeFunctionStarts(raw_ostream &OS) { +diff --git a/test/ObjectYAML/MachO/endianness.yaml b/test/ObjectYAML/MachO/endianness.yaml +new file mode 100644 +index 0000000000..a0880e4642 +--- /dev/null ++++ b/test/ObjectYAML/MachO/endianness.yaml +@@ -0,0 +1,207 @@ ++# RUN: yaml2obj -DENDIAN=false %s | obj2yaml | FileCheck %s ++# RUN: yaml2obj -DENDIAN=true %s | obj2yaml | FileCheck %s ++ ++## Check that yaml2obj writes all endian-sensitive Mach-O fields in object ++## endianness rather than host endianness. ++ ++# CHECK: FileHeader: ++# CHECK: magic: 0xFEEDFACF ++# CHECK: cputype: 0x1000012 ++# CHECK: cpusubtype: 0x34 ++# CHECK: filetype: 0x1 ++# CHECK: ncmds: 5 ++# CHECK: sizeofcmds: 304 ++# CHECK: flags: 0x1020304 ++ ++# CHECK: LoadCommands: ++# CHECK: - cmd: LC_SEGMENT_64 ++# CHECK: cmdsize: 152 ++# CHECK: segname: __TEXT ++# CHECK: vmaddr: 2387509390608836384 ++# CHECK: vmsize: 256 ++# CHECK: fileoff: 336 ++# CHECK: filesize: 4 ++# CHECK: maxprot: 16909060 ++# CHECK: initprot: 84281096 ++# CHECK: nsects: 1 ++# CHECK: flags: 151653132 ++# CHECK: Sections: ++# CHECK: - sectname: __text ++# CHECK: segname: __TEXT ++# CHECK: addr: 0x2122232425262728 ++# CHECK: size: 4 ++# CHECK: offset: 0x150 ++# CHECK: align: 2 ++# CHECK: reloff: 0x154 ++# CHECK: nreloc: 1 ++# CHECK: flags: 0x80000400 ++# CHECK: reserved1: 0x1020304 ++# CHECK: reserved2: 0x5060708 ++# CHECK: reserved3: 0x90A0B0C ++# CHECK: content: DEADBEEF ++# CHECK: relocations: ++# CHECK: - address: 0x1020304 ++# CHECK: symbolnum: 1 ++# CHECK: pcrel: false ++# CHECK: length: 3 ++# CHECK: extern: true ++# CHECK: type: 2 ++# CHECK: scattered: false ++# CHECK: value: 0 ++# CHECK: - cmd: LC_SYMTAB ++# CHECK: cmdsize: 24 ++# CHECK: symoff: 356 ++# CHECK: nsyms: 2 ++# CHECK: stroff: 396 ++# CHECK: strsize: 8 ++# CHECK: - cmd: LC_DYSYMTAB ++# CHECK: cmdsize: 80 ++# CHECK: ilocalsym: 0 ++# CHECK: nlocalsym: 1 ++# CHECK: iextdefsym: 1 ++# CHECK: nextdefsym: 0 ++# CHECK: iundefsym: 1 ++# CHECK: nundefsym: 1 ++# CHECK: indirectsymoff: 388 ++# CHECK: nindirectsyms: 2 ++# CHECK: - cmd: LC_DATA_IN_CODE ++# CHECK: cmdsize: 16 ++# CHECK: dataoff: 348 ++# CHECK: datasize: 8 ++# CHECK: - cmd: LC_BUILD_VERSION ++# CHECK: cmdsize: 32 ++# CHECK: platform: 16909060 ++# CHECK: minos: 84281096 ++# CHECK: sdk: 151653132 ++# CHECK: ntools: 1 ++# CHECK: Tools: ++# CHECK: - tool: 219025168 ++# CHECK: version: 286397204 ++ ++# CHECK: LinkEditData: ++# CHECK: NameList: ++# CHECK: - n_strx: 1 ++# CHECK: n_type: 0x1 ++# CHECK: n_sect: 1 ++# CHECK: n_desc: 4660 ++# CHECK: n_value: 72623859790382856 ++# CHECK: - n_strx: 4 ++# CHECK: n_type: 0x1 ++# CHECK: n_sect: 0 ++# CHECK: n_desc: 22136 ++# CHECK: n_value: 1230066625199609624 ++# CHECK: StringTable: ++# CHECK: - '' ++# CHECK: - _a ++# CHECK: - _b ++# CHECK: - '' ++# CHECK: IndirectSymbols: [ 0x1, 0x40000000 ] ++# CHECK: DataInCode: ++# CHECK: - Offset: 0x1020304 ++# CHECK: Length: 1286 ++# CHECK: Kind: 0x708 ++ ++--- !mach-o ++IsLittleEndian: [[ENDIAN]] ++FileHeader: ++ magic: 0xFEEDFACF ++ cputype: 0x01000012 ++ cpusubtype: 0x00000034 ++ filetype: 0x00000001 ++ ncmds: 5 ++ sizeofcmds: 304 ++ flags: 0x01020304 ++ reserved: 0x05060708 ++LoadCommands: ++ - cmd: LC_SEGMENT_64 ++ cmdsize: 152 ++ segname: __TEXT ++ vmaddr: 0x2122232425262720 ++ vmsize: 0x0000000000000100 ++ fileoff: 336 ++ filesize: 4 ++ maxprot: 0x01020304 ++ initprot: 0x05060708 ++ nsects: 1 ++ flags: 0x090A0B0C ++ Sections: ++ - sectname: __text ++ segname: __TEXT ++ addr: 0x2122232425262728 ++ size: 4 ++ offset: 336 ++ align: 2 ++ reloff: 340 ++ nreloc: 1 ++ flags: 0x80000400 ++ reserved1: 0x01020304 ++ reserved2: 0x05060708 ++ reserved3: 0x090A0B0C ++ content: DEADBEEF ++ relocations: ++ - address: 0x01020304 ++ symbolnum: 1 ++ pcrel: false ++ length: 3 ++ extern: true ++ type: 2 ++ scattered: false ++ value: 0 ++ - cmd: LC_SYMTAB ++ cmdsize: 24 ++ symoff: 356 ++ nsyms: 2 ++ stroff: 396 ++ strsize: 8 ++ - cmd: LC_DYSYMTAB ++ cmdsize: 80 ++ ilocalsym: 0 ++ nlocalsym: 1 ++ iextdefsym: 1 ++ nextdefsym: 0 ++ iundefsym: 1 ++ nundefsym: 1 ++ tocoff: 0 ++ ntoc: 0 ++ modtaboff: 0 ++ nmodtab: 0 ++ extrefsymoff: 0 ++ nextrefsyms: 0 ++ indirectsymoff: 388 ++ nindirectsyms: 2 ++ extreloff: 0 ++ nextrel: 0 ++ locreloff: 0 ++ nlocrel: 0 ++ - cmd: LC_DATA_IN_CODE ++ cmdsize: 16 ++ dataoff: 348 ++ datasize: 8 ++ - cmd: LC_BUILD_VERSION ++ cmdsize: 32 ++ platform: 0x01020304 ++ minos: 0x05060708 ++ sdk: 0x090A0B0C ++ ntools: 1 ++ Tools: ++ - tool: 0x0D0E0F10 ++ version: 0x11121314 ++LinkEditData: ++ NameList: ++ - n_strx: 1 ++ n_type: 0x01 ++ n_sect: 1 ++ n_desc: 0x1234 ++ n_value: 0x0102030405060708 ++ - n_strx: 4 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0x5678 ++ n_value: 0x1112131415161718 ++ StringTable: [ '', _a, _b, '' ] ++ IndirectSymbols: [ 0x1, 0x40000000 ] ++ DataInCode: ++ - Offset: 0x01020304 ++ Length: 0x0506 ++ Kind: 0x0708 ++... +diff --git a/test/tools/llvm-objcopy/MachO/linkedit-alignment.test b/test/tools/llvm-objcopy/MachO/linkedit-alignment.test +new file mode 100644 +index 0000000000..86f826968c +--- /dev/null ++++ b/test/tools/llvm-objcopy/MachO/linkedit-alignment.test +@@ -0,0 +1,366 @@ ++## This test verifies that all LINKEDIT entry offset and sizes are ++## aligned to the target word size. ++ ++# RUN: yaml2obj --docnum=1 %s -o %t.arm64 ++# RUN: llvm-objcopy %t.arm64 %t.arm64.copy ++# RUN: obj2yaml %t.arm64.copy > %t.arm64.yaml ++## Print the result twice: first to capture the LINKEDIT offsets and sizes, ++## then to check that the captured values are aligned. ++# RUN: cat %t.arm64.yaml %t.arm64.yaml | FileCheck %s --check-prefix=ARM64 ++ ++# ARM64: cmd: LC_SEGMENT_64 ++# ARM64: segname: __LINKEDIT ++# ARM64: fileoff: [[#ARM64_LINKEDIT_FILEOFF:]] ++# ARM64: filesize: [[#ARM64_LINKEDIT_FILESIZE:]] ++ ++# ARM64: cmd: LC_DYLD_INFO_ONLY ++# ARM64: rebase_off: [[#ARM64_REBASE_OFF:]] ++# ARM64: rebase_size: [[#ARM64_REBASE_SIZE:]] ++# ARM64: bind_off: [[#ARM64_BIND_OFF:]] ++# ARM64: bind_size: [[#ARM64_BIND_SIZE:]] ++# ARM64: weak_bind_off: [[#ARM64_WEAK_BIND_OFF:]] ++# ARM64: weak_bind_size: [[#ARM64_WEAK_BIND_SIZE:]] ++# ARM64: lazy_bind_off: [[#ARM64_LAZY_BIND_OFF:]] ++# ARM64: lazy_bind_size: [[#ARM64_LAZY_BIND_SIZE:]] ++# ARM64: export_off: [[#ARM64_EXPORT_OFF:]] ++# ARM64: export_size: [[#ARM64_EXPORT_SIZE:]] ++ ++# ARM64: cmd: LC_SYMTAB ++# ARM64: symoff: [[#ARM64_SYMOFF:]] ++# ARM64: stroff: [[#ARM64_STROFF:]] ++# ARM64: strsize: [[#ARM64_STRSIZE:]] ++ ++# ARM64: cmd: LC_DYSYMTAB ++# ARM64: indirectsymoff: [[#ARM64_INDIRECTSYMOFF:]] ++ ++# ARM64: cmd: LC_FUNCTION_STARTS ++# ARM64: dataoff: [[#ARM64_FUNCTION_STARTS_OFF:]] ++# ARM64: datasize: [[#ARM64_FUNCTION_STARTS_SIZE:]] ++ ++# ARM64: cmd: LC_DATA_IN_CODE ++# ARM64: dataoff: [[#ARM64_DATA_IN_CODE_OFF:]] ++# ARM64: datasize: [[#ARM64_DATA_IN_CODE_SIZE:]] ++ ++# ARM64: --- !mach-o ++ ++# ARM64: cmd: LC_SEGMENT_64 ++# ARM64: segname: __LINKEDIT ++# ARM64: fileoff: [[#mul(div(ARM64_LINKEDIT_FILEOFF, 8), 8)]] ++# ARM64: filesize: [[#mul(div(ARM64_LINKEDIT_FILESIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_DYLD_INFO_ONLY ++# ARM64: rebase_off: [[#mul(div(ARM64_REBASE_OFF, 8), 8)]] ++# ARM64: rebase_size: [[#mul(div(ARM64_REBASE_SIZE, 8), 8)]] ++# ARM64: bind_off: [[#mul(div(ARM64_BIND_OFF, 8), 8)]] ++# ARM64: bind_size: [[#mul(div(ARM64_BIND_SIZE, 8), 8)]] ++# ARM64: weak_bind_off: [[#mul(div(ARM64_WEAK_BIND_OFF, 8), 8)]] ++# ARM64: weak_bind_size: [[#mul(div(ARM64_WEAK_BIND_SIZE, 8), 8)]] ++# ARM64: lazy_bind_off: [[#mul(div(ARM64_LAZY_BIND_OFF, 8), 8)]] ++# ARM64: lazy_bind_size: [[#mul(div(ARM64_LAZY_BIND_SIZE, 8), 8)]] ++# ARM64: export_off: [[#mul(div(ARM64_EXPORT_OFF, 8), 8)]] ++# ARM64: export_size: [[#mul(div(ARM64_EXPORT_SIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_SYMTAB ++# ARM64: symoff: [[#mul(div(ARM64_SYMOFF, 8), 8)]] ++# ARM64: stroff: [[#mul(div(ARM64_STROFF, 8), 8)]] ++# ARM64: strsize: [[#mul(div(ARM64_STRSIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_DYSYMTAB ++# ARM64: indirectsymoff: [[#mul(div(ARM64_INDIRECTSYMOFF, 8), 8)]] ++ ++# ARM64: cmd: LC_FUNCTION_STARTS ++# ARM64: dataoff: [[#mul(div(ARM64_FUNCTION_STARTS_OFF, 8), 8)]] ++# ARM64: datasize: [[#mul(div(ARM64_FUNCTION_STARTS_SIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_DATA_IN_CODE ++# ARM64: dataoff: [[#mul(div(ARM64_DATA_IN_CODE_OFF, 8), 8)]] ++# ARM64: datasize: [[#mul(div(ARM64_DATA_IN_CODE_SIZE, 8), 8)]] ++ ++# RUN: yaml2obj --docnum=2 %s -o %t.armv7 ++# RUN: llvm-objcopy %t.armv7 %t.armv7.copy ++# RUN: obj2yaml %t.armv7.copy > %t.armv7.yaml ++# RUN: cat %t.armv7.yaml %t.armv7.yaml | FileCheck %s --check-prefix=ARMV7 ++ ++# ARMV7: cmd: LC_SEGMENT ++# ARMV7: segname: __LINKEDIT ++# ARMV7: fileoff: [[#ARMV7_LINKEDIT_FILEOFF:]] ++# ARMV7: filesize: [[#ARMV7_LINKEDIT_FILESIZE:]] ++ ++# ARMV7: cmd: LC_DYLD_INFO_ONLY ++# ARMV7: rebase_off: [[#ARMV7_REBASE_OFF:]] ++# ARMV7: rebase_size: [[#ARMV7_REBASE_SIZE:]] ++# ARMV7: bind_off: [[#ARMV7_BIND_OFF:]] ++# ARMV7: bind_size: [[#ARMV7_BIND_SIZE:]] ++# ARMV7: weak_bind_off: [[#ARMV7_WEAK_BIND_OFF:]] ++# ARMV7: weak_bind_size: [[#ARMV7_WEAK_BIND_SIZE:]] ++# ARMV7: lazy_bind_off: [[#ARMV7_LAZY_BIND_OFF:]] ++# ARMV7: lazy_bind_size: [[#ARMV7_LAZY_BIND_SIZE:]] ++# ARMV7: export_off: [[#ARMV7_EXPORT_OFF:]] ++# ARMV7: export_size: [[#ARMV7_EXPORT_SIZE:]] ++ ++# ARMV7: cmd: LC_SYMTAB ++# ARMV7: symoff: [[#ARMV7_SYMOFF:]] ++# ARMV7: stroff: [[#ARMV7_STROFF:]] ++# ARMV7: strsize: [[#ARMV7_STRSIZE:]] ++ ++# ARMV7: cmd: LC_DYSYMTAB ++# ARMV7: indirectsymoff: [[#ARMV7_INDIRECTSYMOFF:]] ++ ++# ARMV7: cmd: LC_FUNCTION_STARTS ++# ARMV7: dataoff: [[#ARMV7_FUNCTION_STARTS_OFF:]] ++# ARMV7: datasize: [[#ARMV7_FUNCTION_STARTS_SIZE:]] ++ ++# ARMV7: cmd: LC_DATA_IN_CODE ++# ARMV7: dataoff: [[#ARMV7_DATA_IN_CODE_OFF:]] ++# ARMV7: datasize: [[#ARMV7_DATA_IN_CODE_SIZE:]] ++ ++# ARMV7: --- !mach-o ++ ++# ARMV7: cmd: LC_SEGMENT ++# ARMV7: segname: __LINKEDIT ++# ARMV7: fileoff: [[#mul(div(ARMV7_LINKEDIT_FILEOFF, 4), 4)]] ++# ARMV7: filesize: [[#mul(div(ARMV7_LINKEDIT_FILESIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_DYLD_INFO_ONLY ++# ARMV7: rebase_off: [[#mul(div(ARMV7_REBASE_OFF, 4), 4)]] ++# ARMV7: rebase_size: [[#mul(div(ARMV7_REBASE_SIZE, 4), 4)]] ++# ARMV7: bind_off: [[#mul(div(ARMV7_BIND_OFF, 4), 4)]] ++# ARMV7: bind_size: [[#mul(div(ARMV7_BIND_SIZE, 4), 4)]] ++# ARMV7: weak_bind_off: [[#mul(div(ARMV7_WEAK_BIND_OFF, 4), 4)]] ++# ARMV7: weak_bind_size: [[#mul(div(ARMV7_WEAK_BIND_SIZE, 4), 4)]] ++# ARMV7: lazy_bind_off: [[#mul(div(ARMV7_LAZY_BIND_OFF, 4), 4)]] ++# ARMV7: lazy_bind_size: [[#mul(div(ARMV7_LAZY_BIND_SIZE, 4), 4)]] ++# ARMV7: export_off: [[#mul(div(ARMV7_EXPORT_OFF, 4), 4)]] ++# ARMV7: export_size: [[#mul(div(ARMV7_EXPORT_SIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_SYMTAB ++# ARMV7: symoff: [[#mul(div(ARMV7_SYMOFF, 4), 4)]] ++# ARMV7: stroff: [[#mul(div(ARMV7_STROFF, 4), 4)]] ++# ARMV7: strsize: [[#mul(div(ARMV7_STRSIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_DYSYMTAB ++# ARMV7: indirectsymoff: [[#mul(div(ARMV7_INDIRECTSYMOFF, 4), 4)]] ++ ++# ARMV7: cmd: LC_FUNCTION_STARTS ++# ARMV7: dataoff: [[#mul(div(ARMV7_FUNCTION_STARTS_OFF, 4), 4)]] ++# ARMV7: datasize: [[#mul(div(ARMV7_FUNCTION_STARTS_SIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_DATA_IN_CODE ++# ARMV7: dataoff: [[#mul(div(ARMV7_DATA_IN_CODE_OFF, 4), 4)]] ++# ARMV7: datasize: [[#mul(div(ARMV7_DATA_IN_CODE_SIZE, 4), 4)]] ++ ++--- !mach-o ++FileHeader: ++ magic: 0xFEEDFACF ++ cputype: 0x0100000C ++ cpusubtype: 0x00000000 ++ filetype: 0x00000002 ++ ncmds: 6 ++ sizeofcmds: 256 ++ flags: 0x00000085 ++ reserved: 0x00000000 ++LoadCommands: ++ - cmd: LC_SEGMENT_64 ++ cmdsize: 72 ++ segname: __LINKEDIT ++ vmaddr: 288 ++ vmsize: 256 ++ fileoff: 288 ++ filesize: 256 ++ maxprot: 1 ++ initprot: 1 ++ nsects: 0 ++ flags: 0 ++ - cmd: LC_DYLD_INFO_ONLY ++ cmdsize: 48 ++ rebase_off: 288 ++ rebase_size: 1 ++ bind_off: 289 ++ bind_size: 1 ++ weak_bind_off: 290 ++ weak_bind_size: 1 ++ lazy_bind_off: 291 ++ lazy_bind_size: 1 ++ export_off: 0 ++ export_size: 0 ++ - cmd: LC_SYMTAB ++ cmdsize: 24 ++ symoff: 304 ++ nsyms: 2 ++ stroff: 340 ++ strsize: 24 ++ - cmd: LC_DYSYMTAB ++ cmdsize: 80 ++ ilocalsym: 0 ++ nlocalsym: 0 ++ iextdefsym: 0 ++ nextdefsym: 0 ++ iundefsym: 0 ++ nundefsym: 2 ++ tocoff: 0 ++ ntoc: 0 ++ modtaboff: 0 ++ nmodtab: 0 ++ extrefsymoff: 0 ++ nextrefsyms: 0 ++ indirectsymoff: 336 ++ nindirectsyms: 1 ++ extreloff: 0 ++ nextrel: 0 ++ locreloff: 0 ++ nlocrel: 0 ++ - cmd: LC_FUNCTION_STARTS ++ cmdsize: 16 ++ dataoff: 292 ++ datasize: 1 ++ - cmd: LC_DATA_IN_CODE ++ cmdsize: 16 ++ dataoff: 293 ++ datasize: 8 ++LinkEditData: ++ RebaseOpcodes: ++ - Opcode: REBASE_OPCODE_DONE ++ Imm: 0 ++ BindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ WeakBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ LazyBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ NameList: ++ - n_strx: 1 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ - n_strx: 6 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ StringTable: ++ - '' ++ - _foo ++ - _bar ++ - '' ++ IndirectSymbols: [ 0x1 ] ++ FunctionStarts: [ 0x0 ] ++ DataInCode: ++ - Offset: 0x0 ++ Length: 4 ++ Kind: 0x4 ++... ++ ++--- !mach-o ++IsLittleEndian: true ++FileHeader: ++ magic: 0xFEEDFACE ++ cputype: 0x0000000C ++ cpusubtype: 0x00000009 ++ filetype: 0x00000002 ++ ncmds: 6 ++ sizeofcmds: 240 ++ flags: 0x00000085 ++LoadCommands: ++ - cmd: LC_SEGMENT ++ cmdsize: 56 ++ segname: __LINKEDIT ++ vmaddr: 268 ++ vmsize: 128 ++ fileoff: 268 ++ filesize: 128 ++ maxprot: 1 ++ initprot: 1 ++ nsects: 0 ++ flags: 0 ++ - cmd: LC_DYLD_INFO_ONLY ++ cmdsize: 48 ++ rebase_off: 268 ++ rebase_size: 1 ++ bind_off: 269 ++ bind_size: 1 ++ weak_bind_off: 270 ++ weak_bind_size: 1 ++ lazy_bind_off: 271 ++ lazy_bind_size: 1 ++ export_off: 0 ++ export_size: 0 ++ - cmd: LC_SYMTAB ++ cmdsize: 24 ++ symoff: 284 ++ nsyms: 2 ++ stroff: 312 ++ strsize: 16 ++ - cmd: LC_DYSYMTAB ++ cmdsize: 80 ++ ilocalsym: 0 ++ nlocalsym: 0 ++ iextdefsym: 0 ++ nextdefsym: 0 ++ iundefsym: 0 ++ nundefsym: 2 ++ tocoff: 0 ++ ntoc: 0 ++ modtaboff: 0 ++ nmodtab: 0 ++ extrefsymoff: 0 ++ nextrefsyms: 0 ++ indirectsymoff: 308 ++ nindirectsyms: 1 ++ extreloff: 0 ++ nextrel: 0 ++ locreloff: 0 ++ nlocrel: 0 ++ - cmd: LC_FUNCTION_STARTS ++ cmdsize: 16 ++ dataoff: 272 ++ datasize: 4 ++ - cmd: LC_DATA_IN_CODE ++ cmdsize: 16 ++ dataoff: 276 ++ datasize: 8 ++LinkEditData: ++ RebaseOpcodes: ++ - Opcode: REBASE_OPCODE_DONE ++ Imm: 0 ++ BindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ WeakBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ LazyBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ NameList: ++ - n_strx: 1 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ - n_strx: 6 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ StringTable: ++ - '' ++ - _foo ++ - _bar ++ - '' ++ IndirectSymbols: [ 0x1 ] ++ FunctionStarts: [ 0x0 ] ++ DataInCode: ++ - Offset: 0x0 ++ Length: 4 ++ Kind: 0x4 ++... +diff --git a/test/tools/llvm-objcopy/MachO/linkedit-order-1.test b/test/tools/llvm-objcopy/MachO/linkedit-order-1.test +index 4915f344c1..b7ee56ed47 100644 +--- a/test/tools/llvm-objcopy/MachO/linkedit-order-1.test ++++ b/test/tools/llvm-objcopy/MachO/linkedit-order-1.test +@@ -51,7 +51,8 @@ + # CHECK: --- !mach-o + + # CHECK: cmd: LC_SYMTAB +-# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(DYSYMTAB_NINDIRECTSYMS, 4)]] ++## LINKEDIT entries are aligned to the target word size. ++# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(div(mul(DYSYMTAB_NINDIRECTSYMS, 4) + 4, 8), 8)]] + # CHECK: strsize: [[#SYMTAB_STRSIZE:]] + + # CHECK: cmd: LC_CODE_SIGNATURE +diff --git a/test/tools/llvm-objcopy/MachO/linkedit-order-2.test b/test/tools/llvm-objcopy/MachO/linkedit-order-2.test +index 0c5521ece0..dfbb7277a4 100644 +--- a/test/tools/llvm-objcopy/MachO/linkedit-order-2.test ++++ b/test/tools/llvm-objcopy/MachO/linkedit-order-2.test +@@ -50,7 +50,8 @@ + # CHECK: --- !mach-o + + # CHECK: cmd: LC_SYMTAB +-# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(DYSYMTAB_NINDIRECTSYMS, 4)]] ++## LINKEDIT entries are aligned to the target word size. ++# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(div(mul(DYSYMTAB_NINDIRECTSYMS, 4) + 4, 8), 8)]] + # CHECK: strsize: [[#SYMTAB_STRSIZE:]] + + # CHECK: cmd: LC_CODE_SIGNATURE +diff --git a/test/tools/llvm-objcopy/MachO/symbol-table.test b/test/tools/llvm-objcopy/MachO/symbol-table.test +index 7e0e1421c0..a95c2ac7a3 100644 +--- a/test/tools/llvm-objcopy/MachO/symbol-table.test ++++ b/test/tools/llvm-objcopy/MachO/symbol-table.test +@@ -301,7 +301,7 @@ + vmaddr: 4294975488 + vmsize: 4096 + fileoff: 8192 +- filesize: 508 ++ filesize: 512 + maxprot: 1 + initprot: 1 + nsects: 0 +@@ -310,7 +310,7 @@ + cmdsize: 24 + symoff: 8192 + nsyms: 18 +- stroff: 8484 ++ stroff: 8488 + strsize: 216 + - cmd: LC_DYSYMTAB + cmdsize: 80 diff --git a/pkgs/development/compilers/llvm/18/llvm/get-rid-of-incorrect-std-template-specializations.patch b/pkgs/development/compilers/llvm/18/llvm/get-rid-of-incorrect-std-template-specializations.patch new file mode 100644 index 000000000000..2065ded75df7 --- /dev/null +++ b/pkgs/development/compilers/llvm/18/llvm/get-rid-of-incorrect-std-template-specializations.patch @@ -0,0 +1,231 @@ +diff --git a/include/llvm/CodeGen/RDFGraph.h b/include/llvm/CodeGen/RDFGraph.h +index cf7344e8c3..30c38da96c 100644 +--- a/include/llvm/CodeGen/RDFGraph.h ++++ b/include/llvm/CodeGen/RDFGraph.h +@@ -447,7 +447,7 @@ + AllocatorTy MemPool; + }; + +-using RegisterSet = std::set; ++using RegisterSet = std::set; + + struct TargetOperandInfo { + TargetOperandInfo(const TargetInstrInfo &tii) : TII(tii) {} +diff --git a/include/llvm/CodeGen/RDFRegisters.h b/include/llvm/CodeGen/RDFRegisters.h +index 7eed0b4e1e..c5060f00a0 100644 +--- a/include/llvm/CodeGen/RDFRegisters.h ++++ b/include/llvm/CodeGen/RDFRegisters.h +@@ -201,6 +201,33 @@ + std::vector AliasInfos; + }; + ++struct RegisterRefEqualTo { ++ constexpr RegisterRefEqualTo(const llvm::rdf::PhysicalRegisterInfo &pri) ++ : PRI(&pri) {} ++ ++ bool operator()(llvm::rdf::RegisterRef A, llvm::rdf::RegisterRef B) const { ++ return PRI->equal_to(A, B); ++ } ++ ++private: ++ // Make it a pointer just in case. See comment in `RegisterRefLess` below. ++ const llvm::rdf::PhysicalRegisterInfo *PRI; ++}; ++ ++struct RegisterRefLess { ++ constexpr RegisterRefLess(const llvm::rdf::PhysicalRegisterInfo &pri) ++ : PRI(&pri) {} ++ ++ bool operator()(llvm::rdf::RegisterRef A, llvm::rdf::RegisterRef B) const { ++ return PRI->less(A, B); ++ } ++ ++private: ++ // Make it a pointer because apparently some versions of MSVC use std::swap ++ // on the comparator object. ++ const llvm::rdf::PhysicalRegisterInfo *PRI; ++}; ++ + struct RegisterAggr { + RegisterAggr(const PhysicalRegisterInfo &pri) + : Units(pri.getTRI().getNumRegUnits()), PRI(pri) {} +@@ -336,18 +363,6 @@ + } + }; + +-template <> struct equal_to { +- constexpr equal_to(const llvm::rdf::PhysicalRegisterInfo &pri) : PRI(&pri) {} +- +- bool operator()(llvm::rdf::RegisterRef A, llvm::rdf::RegisterRef B) const { +- return PRI->equal_to(A, B); +- } +- +-private: +- // Make it a pointer just in case. See comment in `less` below. +- const llvm::rdf::PhysicalRegisterInfo *PRI; +-}; +- + template <> struct equal_to { + bool operator()(const llvm::rdf::RegisterAggr &A, + const llvm::rdf::RegisterAggr &B) const { +@@ -355,23 +370,10 @@ + } + }; + +-template <> struct less { +- constexpr less(const llvm::rdf::PhysicalRegisterInfo &pri) : PRI(&pri) {} +- +- bool operator()(llvm::rdf::RegisterRef A, llvm::rdf::RegisterRef B) const { +- return PRI->less(A, B); +- } +- +-private: +- // Make it a pointer because apparently some versions of MSVC use std::swap +- // on the std::less specialization. +- const llvm::rdf::PhysicalRegisterInfo *PRI; +-}; +- + } // namespace std + + namespace llvm::rdf { +-using RegisterSet = std::set>; ++using RegisterSet = std::set; + } // namespace llvm::rdf + + #endif // LLVM_CODEGEN_RDFREGISTERS_H +diff --git a/lib/CodeGen/RDFLiveness.cpp b/lib/CodeGen/RDFLiveness.cpp +index 11f3fedaa5..43bfbad397 100644 +--- a/lib/CodeGen/RDFLiveness.cpp ++++ b/lib/CodeGen/RDFLiveness.cpp +@@ -655,8 +655,9 @@ + // defs, cache the result of subtracting these defs from a given register + // ref. + using RefHash = std::hash; +- using RefEqual = std::equal_to; +- using SubMap = std::unordered_map; ++ using RefEqual = RegisterRefEqualTo; ++ using SubMap = ++ std::unordered_map; + std::unordered_map Subs; + auto ClearIn = [](RegisterRef RR, const RegisterAggr &Mid, SubMap &SM) { + if (Mid.empty()) +@@ -873,7 +874,7 @@ + std::vector LV; + for (const MachineBasicBlock::RegisterMaskPair &LI : B.liveins()) + LV.push_back(RegisterRef(LI.PhysReg, LI.LaneMask)); +- llvm::sort(LV, std::less(PRI)); ++ llvm::sort(LV, RegisterRefLess(PRI)); + dbgs() << printMBBReference(B) << "\t rec = {"; + for (auto I : LV) + dbgs() << ' ' << Print(I, DFG); +@@ -883,7 +884,7 @@ + LV.clear(); + for (RegisterRef RR : LiveMap[&B].refs()) + LV.push_back(RR); +- llvm::sort(LV, std::less(PRI)); ++ llvm::sort(LV, RegisterRefLess(PRI)); + dbgs() << "\tcomp = {"; + for (auto I : LV) + dbgs() << ' ' << Print(I, DFG); +diff --git a/lib/Target/Hexagon/RDFCopy.cpp b/lib/Target/Hexagon/RDFCopy.cpp +index b26821cd01..b2c1075244 100644 +--- a/lib/Target/Hexagon/RDFCopy.cpp ++++ b/lib/Target/Hexagon/RDFCopy.cpp +@@ -109,7 +109,7 @@ + for (NodeAddr IA : BA.Addr->members(DFG)) { + if (DFG.IsCode(IA)) { + NodeAddr SA = IA; +- EqualityMap EM(std::less(DFG.getPRI())); ++ EqualityMap EM(RegisterRefLess(DFG.getPRI())); + if (interpretAsCopy(SA.Addr->getCode(), EM)) + recordCopy(SA, EM); + } +diff --git a/lib/Target/Hexagon/RDFCopy.h b/lib/Target/Hexagon/RDFCopy.h +index e4fb898928..92b2c65982 100644 +--- a/lib/Target/Hexagon/RDFCopy.h ++++ b/lib/Target/Hexagon/RDFCopy.h +@@ -25,8 +25,8 @@ + namespace rdf { + + struct CopyPropagation { +- CopyPropagation(DataFlowGraph &dfg) : MDT(dfg.getDT()), DFG(dfg), +- RDefMap(std::less(DFG.getPRI())) {} ++ CopyPropagation(DataFlowGraph &dfg) ++ : MDT(dfg.getDT()), DFG(dfg), RDefMap(RegisterRefLess(DFG.getPRI())) {} + + virtual ~CopyPropagation() = default; + +@@ -35,7 +35,7 @@ + bool trace() const { return Trace; } + DataFlowGraph &getDFG() { return DFG; } + +- using EqualityMap = std::map; ++ using EqualityMap = std::map; + virtual bool interpretAsCopy(const MachineInstr *MI, EqualityMap &EM); + + private: +@@ -45,7 +45,7 @@ + bool Trace = false; + + // map: register -> (map: stmt -> reaching def) +- std::map> RDefMap; ++ std::map, RegisterRefLess> RDefMap; + // map: statement -> (map: dst reg -> src reg) + std::map CopyMap; + std::vector Copies; +diff --git a/unittests/CodeGen/TypeTraitsTest.cpp b/unittests/CodeGen/TypeTraitsTest.cpp +index 0ca4fa4e82..592e7cdda4 100644 +--- a/unittests/CodeGen/TypeTraitsTest.cpp ++++ b/unittests/CodeGen/TypeTraitsTest.cpp +@@ -6,13 +6,16 @@ + // + //===----------------------------------------------------------------------===// + ++#include "llvm/CodeGen/RDFRegisters.h" + #include "llvm/CodeGen/RegisterPressure.h" + #include "llvm/CodeGen/ScheduleDAG.h" + #include "llvm/CodeGen/SelectionDAGNodes.h" + #include "llvm/CodeGen/SlotIndexes.h" + #include "llvm/CodeGen/TargetPassConfig.h" + #include "gtest/gtest.h" ++#include + #include ++#include + + using namespace llvm; + +@@ -26,3 +29,34 @@ + "trivially copyable"); + #endif + ++// https://llvm.org/PR105169 ++// Verify that we won't accidently specialize std::less and std::equal_to in a ++// wrong way. ++// C++17 [namespace.std]/2, C++20/23 [namespace.std]/5: ++// A program may explicitly instantiate a template defined in the standard ++// library only if the declaration ++// - depends on the name of a user-defined type and ++// - the instantiation meets the standard library requirements for the ++// original template. ++template constexpr bool CheckStdCmpRequirements() { ++ // std::less and std::equal_to are literal, default constructible, and ++ // copyable classes. ++ Fn f1; ++ auto f2 = f1; ++ auto f3 = std::move(f2); ++ f2 = f3; ++ f2 = std::move(f3); ++ ++ // Properties held on all known implementations, although not guaranteed by ++ // the standard. ++ static_assert(std::is_empty_v); ++ static_assert(std::is_trivially_default_constructible_v); ++ static_assert(std::is_trivially_copyable_v); ++ ++ return true; ++} ++ ++static_assert(CheckStdCmpRequirements>(), ++ "same as the original template"); ++static_assert(CheckStdCmpRequirements>(), ++ "same as the original template"); diff --git a/pkgs/development/compilers/llvm/22/llvm/align-__linkedit-entries-to-pointer-size.patch b/pkgs/development/compilers/llvm/22/llvm/align-__linkedit-entries-to-pointer-size.patch new file mode 100644 index 000000000000..2b5b406eda14 --- /dev/null +++ b/pkgs/development/compilers/llvm/22/llvm/align-__linkedit-entries-to-pointer-size.patch @@ -0,0 +1,946 @@ +diff --git a/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp b/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp +index 8660c903c6..aa4c0654ea 100644 +--- a/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp ++++ b/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp +@@ -235,24 +235,27 @@ + "Incorrect tail offset"); + Offset = std::max(Offset, HeaderSize + O.Header.SizeOfCmds); + ++ const uint64_t LinkEditAlign = Is64Bit ? 8 : 4; ++ Offset = alignToPowerOf2(Offset, LinkEditAlign); ++ + // The exports trie can be in either LC_DYLD_INFO or in + // LC_DYLD_EXPORTS_TRIE, but not both. +- size_t DyldInfoExportsTrieSize = 0; +- size_t DyldExportsTrieSize = 0; ++ uint64_t DyldInfoExportsTrieRawSize = 0; ++ uint64_t DyldExportsTrieRawSize = 0; + for (const auto &LC : O.LoadCommands) { + switch (LC.MachOLoadCommand.load_command_data.cmd) { + case MachO::LC_DYLD_INFO: + case MachO::LC_DYLD_INFO_ONLY: +- DyldInfoExportsTrieSize = O.Exports.Trie.size(); ++ DyldInfoExportsTrieRawSize = O.Exports.Trie.size(); + break; + case MachO::LC_DYLD_EXPORTS_TRIE: +- DyldExportsTrieSize = O.Exports.Trie.size(); ++ DyldExportsTrieRawSize = O.Exports.Trie.size(); + break; + default: + break; + } + } +- assert((DyldInfoExportsTrieSize == 0 || DyldExportsTrieSize == 0) && ++ assert((DyldInfoExportsTrieRawSize == 0 || DyldExportsTrieRawSize == 0) && + "Export trie in both LCs"); + + uint64_t NListSize = Is64Bit ? sizeof(MachO::nlist_64) : sizeof(MachO::nlist); +@@ -263,28 +266,43 @@ + // trie, chained fixups, dyld exports trie, function starts, data-in-code, + // symbol table, indirect symbol table, symbol table strings, + // dylib codesign drs, and code signature. +- auto updateOffset = [&Offset](size_t Size) { ++ auto updateOffset = [&Offset, LinkEditAlign](uint64_t Size) { + uint64_t PreviousOffset = Offset; +- Offset += Size; +- return PreviousOffset; ++ // Match ld64 and lld-macho behavior by aligning all LINKEDIT entries to ++ // pointer size. This is safe because zero padding is valid for all entries. ++ uint64_t PaddedSize = alignToPowerOf2(Size, LinkEditAlign); ++ Offset += PaddedSize; ++ return std::make_pair(PreviousOffset, PaddedSize); + }; + +- uint64_t StartOfRebaseInfo = updateOffset(O.Rebases.Opcodes.size()); +- uint64_t StartOfBindingInfo = updateOffset(O.Binds.Opcodes.size()); +- uint64_t StartOfWeakBindingInfo = updateOffset(O.WeakBinds.Opcodes.size()); +- uint64_t StartOfLazyBindingInfo = updateOffset(O.LazyBinds.Opcodes.size()); +- uint64_t StartOfExportTrie = updateOffset(DyldInfoExportsTrieSize); +- uint64_t StartOfChainedFixups = updateOffset(O.ChainedFixups.Data.size()); +- uint64_t StartOfDyldExportsTrie = updateOffset(DyldExportsTrieSize); +- uint64_t StartOfFunctionStarts = updateOffset(O.FunctionStarts.Data.size()); +- uint64_t StartOfDataInCode = updateOffset(O.DataInCode.Data.size()); +- uint64_t StartOfLinkerOptimizationHint = ++ auto [StartOfRebaseInfo, RebaseInfoSize] = ++ updateOffset(O.Rebases.Opcodes.size()); ++ auto [StartOfBindingInfo, BindingInfoSize] = ++ updateOffset(O.Binds.Opcodes.size()); ++ auto [StartOfWeakBindingInfo, WeakBindingInfoSize] = ++ updateOffset(O.WeakBinds.Opcodes.size()); ++ auto [StartOfLazyBindingInfo, LazyBindingInfoSize] = ++ updateOffset(O.LazyBinds.Opcodes.size()); ++ auto [StartOfExportTrie, ExportTrieSize] = ++ updateOffset(DyldInfoExportsTrieRawSize); ++ auto [StartOfChainedFixups, ChainedFixupsSize] = ++ updateOffset(O.ChainedFixups.Data.size()); ++ auto [StartOfDyldExportsTrie, DyldExportsTrieSize] = ++ updateOffset(DyldExportsTrieRawSize); ++ auto [StartOfFunctionStarts, FunctionStartsSize] = ++ updateOffset(O.FunctionStarts.Data.size()); ++ auto [StartOfDataInCode, DataInCodeSize] = ++ updateOffset(O.DataInCode.Data.size()); ++ auto [StartOfLinkerOptimizationHint, LinkerOptimizationHintSize] = + updateOffset(O.LinkerOptimizationHint.Data.size()); +- uint64_t StartOfSymbols = updateOffset(NListSize * O.SymTable.Symbols.size()); ++ uint64_t StartOfSymbols = ++ updateOffset(NListSize * O.SymTable.Symbols.size()).first; + uint64_t StartOfIndirectSymbols = +- updateOffset(sizeof(uint32_t) * O.IndirectSymTable.Symbols.size()); +- uint64_t StartOfSymbolStrings = updateOffset(StrTableBuilder.getSize()); +- uint64_t StartOfDylibCodeSignDRs = updateOffset(O.DylibCodeSignDRs.Data.size()); ++ updateOffset(sizeof(uint32_t) * O.IndirectSymTable.Symbols.size()).first; ++ auto [StartOfSymbolStrings, SymbolStringsSize] = ++ updateOffset(StrTableBuilder.getSize()); ++ auto [StartOfDylibCodeSignDRs, DylibCodeSignDRsSize] = ++ updateOffset(O.DylibCodeSignDRs.Data.size()); + + uint64_t StartOfCodeSignature = Offset; + uint32_t CodeSignatureSize = 0; +@@ -343,13 +361,13 @@ + break; + case MachO::LC_DYLIB_CODE_SIGN_DRS: + MLC.linkedit_data_command_data.dataoff = StartOfDylibCodeSignDRs; +- MLC.linkedit_data_command_data.datasize = O.DylibCodeSignDRs.Data.size(); ++ MLC.linkedit_data_command_data.datasize = DylibCodeSignDRsSize; + break; + case MachO::LC_SYMTAB: + MLC.symtab_command_data.symoff = StartOfSymbols; + MLC.symtab_command_data.nsyms = O.SymTable.Symbols.size(); + MLC.symtab_command_data.stroff = StartOfSymbolStrings; +- MLC.symtab_command_data.strsize = StrTableBuilder.getSize(); ++ MLC.symtab_command_data.strsize = SymbolStringsSize; + break; + case MachO::LC_DYSYMTAB: { + if (MLC.dysymtab_command_data.ntoc != 0 || +@@ -368,20 +386,19 @@ + } + case MachO::LC_DATA_IN_CODE: + MLC.linkedit_data_command_data.dataoff = StartOfDataInCode; +- MLC.linkedit_data_command_data.datasize = O.DataInCode.Data.size(); ++ MLC.linkedit_data_command_data.datasize = DataInCodeSize; + break; + case MachO::LC_LINKER_OPTIMIZATION_HINT: + MLC.linkedit_data_command_data.dataoff = StartOfLinkerOptimizationHint; +- MLC.linkedit_data_command_data.datasize = +- O.LinkerOptimizationHint.Data.size(); ++ MLC.linkedit_data_command_data.datasize = LinkerOptimizationHintSize; + break; + case MachO::LC_FUNCTION_STARTS: + MLC.linkedit_data_command_data.dataoff = StartOfFunctionStarts; +- MLC.linkedit_data_command_data.datasize = O.FunctionStarts.Data.size(); ++ MLC.linkedit_data_command_data.datasize = FunctionStartsSize; + break; + case MachO::LC_DYLD_CHAINED_FIXUPS: + MLC.linkedit_data_command_data.dataoff = StartOfChainedFixups; +- MLC.linkedit_data_command_data.datasize = O.ChainedFixups.Data.size(); ++ MLC.linkedit_data_command_data.datasize = ChainedFixupsSize; + break; + case MachO::LC_DYLD_EXPORTS_TRIE: + MLC.linkedit_data_command_data.dataoff = StartOfDyldExportsTrie; +@@ -391,19 +408,19 @@ + case MachO::LC_DYLD_INFO_ONLY: + MLC.dyld_info_command_data.rebase_off = + O.Rebases.Opcodes.empty() ? 0 : StartOfRebaseInfo; +- MLC.dyld_info_command_data.rebase_size = O.Rebases.Opcodes.size(); ++ MLC.dyld_info_command_data.rebase_size = RebaseInfoSize; + MLC.dyld_info_command_data.bind_off = + O.Binds.Opcodes.empty() ? 0 : StartOfBindingInfo; +- MLC.dyld_info_command_data.bind_size = O.Binds.Opcodes.size(); ++ MLC.dyld_info_command_data.bind_size = BindingInfoSize; + MLC.dyld_info_command_data.weak_bind_off = + O.WeakBinds.Opcodes.empty() ? 0 : StartOfWeakBindingInfo; +- MLC.dyld_info_command_data.weak_bind_size = O.WeakBinds.Opcodes.size(); ++ MLC.dyld_info_command_data.weak_bind_size = WeakBindingInfoSize; + MLC.dyld_info_command_data.lazy_bind_off = + O.LazyBinds.Opcodes.empty() ? 0 : StartOfLazyBindingInfo; +- MLC.dyld_info_command_data.lazy_bind_size = O.LazyBinds.Opcodes.size(); ++ MLC.dyld_info_command_data.lazy_bind_size = LazyBindingInfoSize; + MLC.dyld_info_command_data.export_off = + O.Exports.Trie.empty() ? 0 : StartOfExportTrie; +- MLC.dyld_info_command_data.export_size = DyldInfoExportsTrieSize; ++ MLC.dyld_info_command_data.export_size = ExportTrieSize; + break; + // Note that LC_ENCRYPTION_INFO.cryptoff despite its name and the comment in + // is not an offset in the binary file, instead, it is a +diff --git a/lib/ObjCopy/MachO/MachOWriter.cpp b/lib/ObjCopy/MachO/MachOWriter.cpp +index 07514dd2f8..d83a82cee7 100644 +--- a/lib/ObjCopy/MachO/MachOWriter.cpp ++++ b/lib/ObjCopy/MachO/MachOWriter.cpp +@@ -24,6 +24,12 @@ + using namespace llvm::objcopy::macho; + using namespace llvm::support::endian; + ++#ifndef NDEBUG ++static uint64_t paddedLinkEditEntrySize(uint64_t Size, bool Is64Bit) { ++ return alignToPowerOf2(Size, Is64Bit ? 8 : 4); ++} ++#endif ++ + size_t MachOWriter::headerSize() const { + return Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); + } +@@ -55,29 +61,34 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + if (DyLdInfoCommand.rebase_off) { +- assert((DyLdInfoCommand.rebase_size == O.Rebases.Opcodes.size()) && ++ assert((DyLdInfoCommand.rebase_size == ++ paddedLinkEditEntrySize(O.Rebases.Opcodes.size(), Is64Bit)) && + "Incorrect rebase opcodes size"); + Ends.push_back(DyLdInfoCommand.rebase_off + DyLdInfoCommand.rebase_size); + } + if (DyLdInfoCommand.bind_off) { +- assert((DyLdInfoCommand.bind_size == O.Binds.Opcodes.size()) && ++ assert((DyLdInfoCommand.bind_size == ++ paddedLinkEditEntrySize(O.Binds.Opcodes.size(), Is64Bit)) && + "Incorrect bind opcodes size"); + Ends.push_back(DyLdInfoCommand.bind_off + DyLdInfoCommand.bind_size); + } + if (DyLdInfoCommand.weak_bind_off) { +- assert((DyLdInfoCommand.weak_bind_size == O.WeakBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.weak_bind_size == ++ paddedLinkEditEntrySize(O.WeakBinds.Opcodes.size(), Is64Bit)) && + "Incorrect weak bind opcodes size"); + Ends.push_back(DyLdInfoCommand.weak_bind_off + + DyLdInfoCommand.weak_bind_size); + } + if (DyLdInfoCommand.lazy_bind_off) { +- assert((DyLdInfoCommand.lazy_bind_size == O.LazyBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.lazy_bind_size == ++ paddedLinkEditEntrySize(O.LazyBinds.Opcodes.size(), Is64Bit)) && + "Incorrect lazy bind opcodes size"); + Ends.push_back(DyLdInfoCommand.lazy_bind_off + + DyLdInfoCommand.lazy_bind_size); + } + if (DyLdInfoCommand.export_off) { +- assert((DyLdInfoCommand.export_size == O.Exports.Trie.size()) && ++ assert((DyLdInfoCommand.export_size == ++ paddedLinkEditEntrySize(O.Exports.Trie.size(), Is64Bit)) && + "Incorrect trie size"); + Ends.push_back(DyLdInfoCommand.export_off + DyLdInfoCommand.export_size); + } +@@ -320,7 +331,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = Buf->getBufferStart() + DyLdInfoCommand.rebase_off; +- assert((DyLdInfoCommand.rebase_size == O.Rebases.Opcodes.size()) && ++ assert((DyLdInfoCommand.rebase_size == ++ paddedLinkEditEntrySize(O.Rebases.Opcodes.size(), Is64Bit)) && + "Incorrect rebase opcodes size"); + memcpy(Out, O.Rebases.Opcodes.data(), O.Rebases.Opcodes.size()); + } +@@ -332,7 +344,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = Buf->getBufferStart() + DyLdInfoCommand.bind_off; +- assert((DyLdInfoCommand.bind_size == O.Binds.Opcodes.size()) && ++ assert((DyLdInfoCommand.bind_size == ++ paddedLinkEditEntrySize(O.Binds.Opcodes.size(), Is64Bit)) && + "Incorrect bind opcodes size"); + memcpy(Out, O.Binds.Opcodes.data(), O.Binds.Opcodes.size()); + } +@@ -344,7 +357,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = Buf->getBufferStart() + DyLdInfoCommand.weak_bind_off; +- assert((DyLdInfoCommand.weak_bind_size == O.WeakBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.weak_bind_size == ++ paddedLinkEditEntrySize(O.WeakBinds.Opcodes.size(), Is64Bit)) && + "Incorrect weak bind opcodes size"); + memcpy(Out, O.WeakBinds.Opcodes.data(), O.WeakBinds.Opcodes.size()); + } +@@ -356,7 +370,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = Buf->getBufferStart() + DyLdInfoCommand.lazy_bind_off; +- assert((DyLdInfoCommand.lazy_bind_size == O.LazyBinds.Opcodes.size()) && ++ assert((DyLdInfoCommand.lazy_bind_size == ++ paddedLinkEditEntrySize(O.LazyBinds.Opcodes.size(), Is64Bit)) && + "Incorrect lazy bind opcodes size"); + memcpy(Out, O.LazyBinds.Opcodes.data(), O.LazyBinds.Opcodes.size()); + } +@@ -368,7 +383,8 @@ + O.LoadCommands[*O.DyLdInfoCommandIndex] + .MachOLoadCommand.dyld_info_command_data; + char *Out = Buf->getBufferStart() + DyLdInfoCommand.export_off; +- assert((DyLdInfoCommand.export_size == O.Exports.Trie.size()) && ++ assert((DyLdInfoCommand.export_size == ++ paddedLinkEditEntrySize(O.Exports.Trie.size(), Is64Bit)) && + "Incorrect export trie size"); + memcpy(Out, O.Exports.Trie.data(), O.Exports.Trie.size()); + } +@@ -398,7 +414,8 @@ + const MachO::linkedit_data_command &LinkEditDataCommand = + O.LoadCommands[*LCIndex].MachOLoadCommand.linkedit_data_command_data; + char *Out = Buf->getBufferStart() + LinkEditDataCommand.dataoff; +- assert((LinkEditDataCommand.datasize == LD.Data.size()) && ++ assert((LinkEditDataCommand.datasize == ++ paddedLinkEditEntrySize(LD.Data.size(), Is64Bit)) && + "Incorrect data size"); + memcpy(Out, LD.Data.data(), LD.Data.size()); + } +@@ -575,7 +592,8 @@ + O.LoadCommands[*O.ExportsTrieCommandIndex] + .MachOLoadCommand.linkedit_data_command_data; + char *Out = Buf->getBufferStart() + ExportsTrieCmd.dataoff; +- assert((ExportsTrieCmd.datasize == O.Exports.Trie.size()) && ++ assert((ExportsTrieCmd.datasize == ++ paddedLinkEditEntrySize(O.Exports.Trie.size(), Is64Bit)) && + "Incorrect export trie size"); + memcpy(Out, O.Exports.Trie.data(), O.Exports.Trie.size()); + } +diff --git a/lib/ObjectYAML/MachOEmitter.cpp b/lib/ObjectYAML/MachOEmitter.cpp +index a4d17dfe1e..cf7202c7da 100644 +--- a/lib/ObjectYAML/MachOEmitter.cpp ++++ b/lib/ObjectYAML/MachOEmitter.cpp +@@ -625,9 +625,12 @@ + } + + void MachOWriter::writeDynamicSymbolTable(raw_ostream &OS) { +- for (auto Data : Obj.LinkEdit.IndirectSymbols) +- OS.write(reinterpret_cast(&Data), +- sizeof(yaml::Hex32::BaseType)); ++ for (auto Data : Obj.LinkEdit.IndirectSymbols) { ++ uint32_t Value = Data; ++ if (Obj.IsLittleEndian != sys::IsLittleEndianHost) ++ MachO::swapStruct(Value); ++ OS.write(reinterpret_cast(&Value), sizeof(uint32_t)); ++ } + } + + void MachOWriter::writeFunctionStarts(raw_ostream &OS) { +diff --git a/test/ObjectYAML/MachO/endianness.yaml b/test/ObjectYAML/MachO/endianness.yaml +new file mode 100644 +index 0000000000..a0880e4642 +--- /dev/null ++++ b/test/ObjectYAML/MachO/endianness.yaml +@@ -0,0 +1,207 @@ ++# RUN: yaml2obj -DENDIAN=false %s | obj2yaml | FileCheck %s ++# RUN: yaml2obj -DENDIAN=true %s | obj2yaml | FileCheck %s ++ ++## Check that yaml2obj writes all endian-sensitive Mach-O fields in object ++## endianness rather than host endianness. ++ ++# CHECK: FileHeader: ++# CHECK: magic: 0xFEEDFACF ++# CHECK: cputype: 0x1000012 ++# CHECK: cpusubtype: 0x34 ++# CHECK: filetype: 0x1 ++# CHECK: ncmds: 5 ++# CHECK: sizeofcmds: 304 ++# CHECK: flags: 0x1020304 ++ ++# CHECK: LoadCommands: ++# CHECK: - cmd: LC_SEGMENT_64 ++# CHECK: cmdsize: 152 ++# CHECK: segname: __TEXT ++# CHECK: vmaddr: 2387509390608836384 ++# CHECK: vmsize: 256 ++# CHECK: fileoff: 336 ++# CHECK: filesize: 4 ++# CHECK: maxprot: 16909060 ++# CHECK: initprot: 84281096 ++# CHECK: nsects: 1 ++# CHECK: flags: 151653132 ++# CHECK: Sections: ++# CHECK: - sectname: __text ++# CHECK: segname: __TEXT ++# CHECK: addr: 0x2122232425262728 ++# CHECK: size: 4 ++# CHECK: offset: 0x150 ++# CHECK: align: 2 ++# CHECK: reloff: 0x154 ++# CHECK: nreloc: 1 ++# CHECK: flags: 0x80000400 ++# CHECK: reserved1: 0x1020304 ++# CHECK: reserved2: 0x5060708 ++# CHECK: reserved3: 0x90A0B0C ++# CHECK: content: DEADBEEF ++# CHECK: relocations: ++# CHECK: - address: 0x1020304 ++# CHECK: symbolnum: 1 ++# CHECK: pcrel: false ++# CHECK: length: 3 ++# CHECK: extern: true ++# CHECK: type: 2 ++# CHECK: scattered: false ++# CHECK: value: 0 ++# CHECK: - cmd: LC_SYMTAB ++# CHECK: cmdsize: 24 ++# CHECK: symoff: 356 ++# CHECK: nsyms: 2 ++# CHECK: stroff: 396 ++# CHECK: strsize: 8 ++# CHECK: - cmd: LC_DYSYMTAB ++# CHECK: cmdsize: 80 ++# CHECK: ilocalsym: 0 ++# CHECK: nlocalsym: 1 ++# CHECK: iextdefsym: 1 ++# CHECK: nextdefsym: 0 ++# CHECK: iundefsym: 1 ++# CHECK: nundefsym: 1 ++# CHECK: indirectsymoff: 388 ++# CHECK: nindirectsyms: 2 ++# CHECK: - cmd: LC_DATA_IN_CODE ++# CHECK: cmdsize: 16 ++# CHECK: dataoff: 348 ++# CHECK: datasize: 8 ++# CHECK: - cmd: LC_BUILD_VERSION ++# CHECK: cmdsize: 32 ++# CHECK: platform: 16909060 ++# CHECK: minos: 84281096 ++# CHECK: sdk: 151653132 ++# CHECK: ntools: 1 ++# CHECK: Tools: ++# CHECK: - tool: 219025168 ++# CHECK: version: 286397204 ++ ++# CHECK: LinkEditData: ++# CHECK: NameList: ++# CHECK: - n_strx: 1 ++# CHECK: n_type: 0x1 ++# CHECK: n_sect: 1 ++# CHECK: n_desc: 4660 ++# CHECK: n_value: 72623859790382856 ++# CHECK: - n_strx: 4 ++# CHECK: n_type: 0x1 ++# CHECK: n_sect: 0 ++# CHECK: n_desc: 22136 ++# CHECK: n_value: 1230066625199609624 ++# CHECK: StringTable: ++# CHECK: - '' ++# CHECK: - _a ++# CHECK: - _b ++# CHECK: - '' ++# CHECK: IndirectSymbols: [ 0x1, 0x40000000 ] ++# CHECK: DataInCode: ++# CHECK: - Offset: 0x1020304 ++# CHECK: Length: 1286 ++# CHECK: Kind: 0x708 ++ ++--- !mach-o ++IsLittleEndian: [[ENDIAN]] ++FileHeader: ++ magic: 0xFEEDFACF ++ cputype: 0x01000012 ++ cpusubtype: 0x00000034 ++ filetype: 0x00000001 ++ ncmds: 5 ++ sizeofcmds: 304 ++ flags: 0x01020304 ++ reserved: 0x05060708 ++LoadCommands: ++ - cmd: LC_SEGMENT_64 ++ cmdsize: 152 ++ segname: __TEXT ++ vmaddr: 0x2122232425262720 ++ vmsize: 0x0000000000000100 ++ fileoff: 336 ++ filesize: 4 ++ maxprot: 0x01020304 ++ initprot: 0x05060708 ++ nsects: 1 ++ flags: 0x090A0B0C ++ Sections: ++ - sectname: __text ++ segname: __TEXT ++ addr: 0x2122232425262728 ++ size: 4 ++ offset: 336 ++ align: 2 ++ reloff: 340 ++ nreloc: 1 ++ flags: 0x80000400 ++ reserved1: 0x01020304 ++ reserved2: 0x05060708 ++ reserved3: 0x090A0B0C ++ content: DEADBEEF ++ relocations: ++ - address: 0x01020304 ++ symbolnum: 1 ++ pcrel: false ++ length: 3 ++ extern: true ++ type: 2 ++ scattered: false ++ value: 0 ++ - cmd: LC_SYMTAB ++ cmdsize: 24 ++ symoff: 356 ++ nsyms: 2 ++ stroff: 396 ++ strsize: 8 ++ - cmd: LC_DYSYMTAB ++ cmdsize: 80 ++ ilocalsym: 0 ++ nlocalsym: 1 ++ iextdefsym: 1 ++ nextdefsym: 0 ++ iundefsym: 1 ++ nundefsym: 1 ++ tocoff: 0 ++ ntoc: 0 ++ modtaboff: 0 ++ nmodtab: 0 ++ extrefsymoff: 0 ++ nextrefsyms: 0 ++ indirectsymoff: 388 ++ nindirectsyms: 2 ++ extreloff: 0 ++ nextrel: 0 ++ locreloff: 0 ++ nlocrel: 0 ++ - cmd: LC_DATA_IN_CODE ++ cmdsize: 16 ++ dataoff: 348 ++ datasize: 8 ++ - cmd: LC_BUILD_VERSION ++ cmdsize: 32 ++ platform: 0x01020304 ++ minos: 0x05060708 ++ sdk: 0x090A0B0C ++ ntools: 1 ++ Tools: ++ - tool: 0x0D0E0F10 ++ version: 0x11121314 ++LinkEditData: ++ NameList: ++ - n_strx: 1 ++ n_type: 0x01 ++ n_sect: 1 ++ n_desc: 0x1234 ++ n_value: 0x0102030405060708 ++ - n_strx: 4 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0x5678 ++ n_value: 0x1112131415161718 ++ StringTable: [ '', _a, _b, '' ] ++ IndirectSymbols: [ 0x1, 0x40000000 ] ++ DataInCode: ++ - Offset: 0x01020304 ++ Length: 0x0506 ++ Kind: 0x0708 ++... +diff --git a/test/tools/llvm-objcopy/MachO/linkedit-alignment.test b/test/tools/llvm-objcopy/MachO/linkedit-alignment.test +new file mode 100644 +index 0000000000..86f826968c +--- /dev/null ++++ b/test/tools/llvm-objcopy/MachO/linkedit-alignment.test +@@ -0,0 +1,366 @@ ++## This test verifies that all LINKEDIT entry offset and sizes are ++## aligned to the target word size. ++ ++# RUN: yaml2obj --docnum=1 %s -o %t.arm64 ++# RUN: llvm-objcopy %t.arm64 %t.arm64.copy ++# RUN: obj2yaml %t.arm64.copy > %t.arm64.yaml ++## Print the result twice: first to capture the LINKEDIT offsets and sizes, ++## then to check that the captured values are aligned. ++# RUN: cat %t.arm64.yaml %t.arm64.yaml | FileCheck %s --check-prefix=ARM64 ++ ++# ARM64: cmd: LC_SEGMENT_64 ++# ARM64: segname: __LINKEDIT ++# ARM64: fileoff: [[#ARM64_LINKEDIT_FILEOFF:]] ++# ARM64: filesize: [[#ARM64_LINKEDIT_FILESIZE:]] ++ ++# ARM64: cmd: LC_DYLD_INFO_ONLY ++# ARM64: rebase_off: [[#ARM64_REBASE_OFF:]] ++# ARM64: rebase_size: [[#ARM64_REBASE_SIZE:]] ++# ARM64: bind_off: [[#ARM64_BIND_OFF:]] ++# ARM64: bind_size: [[#ARM64_BIND_SIZE:]] ++# ARM64: weak_bind_off: [[#ARM64_WEAK_BIND_OFF:]] ++# ARM64: weak_bind_size: [[#ARM64_WEAK_BIND_SIZE:]] ++# ARM64: lazy_bind_off: [[#ARM64_LAZY_BIND_OFF:]] ++# ARM64: lazy_bind_size: [[#ARM64_LAZY_BIND_SIZE:]] ++# ARM64: export_off: [[#ARM64_EXPORT_OFF:]] ++# ARM64: export_size: [[#ARM64_EXPORT_SIZE:]] ++ ++# ARM64: cmd: LC_SYMTAB ++# ARM64: symoff: [[#ARM64_SYMOFF:]] ++# ARM64: stroff: [[#ARM64_STROFF:]] ++# ARM64: strsize: [[#ARM64_STRSIZE:]] ++ ++# ARM64: cmd: LC_DYSYMTAB ++# ARM64: indirectsymoff: [[#ARM64_INDIRECTSYMOFF:]] ++ ++# ARM64: cmd: LC_FUNCTION_STARTS ++# ARM64: dataoff: [[#ARM64_FUNCTION_STARTS_OFF:]] ++# ARM64: datasize: [[#ARM64_FUNCTION_STARTS_SIZE:]] ++ ++# ARM64: cmd: LC_DATA_IN_CODE ++# ARM64: dataoff: [[#ARM64_DATA_IN_CODE_OFF:]] ++# ARM64: datasize: [[#ARM64_DATA_IN_CODE_SIZE:]] ++ ++# ARM64: --- !mach-o ++ ++# ARM64: cmd: LC_SEGMENT_64 ++# ARM64: segname: __LINKEDIT ++# ARM64: fileoff: [[#mul(div(ARM64_LINKEDIT_FILEOFF, 8), 8)]] ++# ARM64: filesize: [[#mul(div(ARM64_LINKEDIT_FILESIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_DYLD_INFO_ONLY ++# ARM64: rebase_off: [[#mul(div(ARM64_REBASE_OFF, 8), 8)]] ++# ARM64: rebase_size: [[#mul(div(ARM64_REBASE_SIZE, 8), 8)]] ++# ARM64: bind_off: [[#mul(div(ARM64_BIND_OFF, 8), 8)]] ++# ARM64: bind_size: [[#mul(div(ARM64_BIND_SIZE, 8), 8)]] ++# ARM64: weak_bind_off: [[#mul(div(ARM64_WEAK_BIND_OFF, 8), 8)]] ++# ARM64: weak_bind_size: [[#mul(div(ARM64_WEAK_BIND_SIZE, 8), 8)]] ++# ARM64: lazy_bind_off: [[#mul(div(ARM64_LAZY_BIND_OFF, 8), 8)]] ++# ARM64: lazy_bind_size: [[#mul(div(ARM64_LAZY_BIND_SIZE, 8), 8)]] ++# ARM64: export_off: [[#mul(div(ARM64_EXPORT_OFF, 8), 8)]] ++# ARM64: export_size: [[#mul(div(ARM64_EXPORT_SIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_SYMTAB ++# ARM64: symoff: [[#mul(div(ARM64_SYMOFF, 8), 8)]] ++# ARM64: stroff: [[#mul(div(ARM64_STROFF, 8), 8)]] ++# ARM64: strsize: [[#mul(div(ARM64_STRSIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_DYSYMTAB ++# ARM64: indirectsymoff: [[#mul(div(ARM64_INDIRECTSYMOFF, 8), 8)]] ++ ++# ARM64: cmd: LC_FUNCTION_STARTS ++# ARM64: dataoff: [[#mul(div(ARM64_FUNCTION_STARTS_OFF, 8), 8)]] ++# ARM64: datasize: [[#mul(div(ARM64_FUNCTION_STARTS_SIZE, 8), 8)]] ++ ++# ARM64: cmd: LC_DATA_IN_CODE ++# ARM64: dataoff: [[#mul(div(ARM64_DATA_IN_CODE_OFF, 8), 8)]] ++# ARM64: datasize: [[#mul(div(ARM64_DATA_IN_CODE_SIZE, 8), 8)]] ++ ++# RUN: yaml2obj --docnum=2 %s -o %t.armv7 ++# RUN: llvm-objcopy %t.armv7 %t.armv7.copy ++# RUN: obj2yaml %t.armv7.copy > %t.armv7.yaml ++# RUN: cat %t.armv7.yaml %t.armv7.yaml | FileCheck %s --check-prefix=ARMV7 ++ ++# ARMV7: cmd: LC_SEGMENT ++# ARMV7: segname: __LINKEDIT ++# ARMV7: fileoff: [[#ARMV7_LINKEDIT_FILEOFF:]] ++# ARMV7: filesize: [[#ARMV7_LINKEDIT_FILESIZE:]] ++ ++# ARMV7: cmd: LC_DYLD_INFO_ONLY ++# ARMV7: rebase_off: [[#ARMV7_REBASE_OFF:]] ++# ARMV7: rebase_size: [[#ARMV7_REBASE_SIZE:]] ++# ARMV7: bind_off: [[#ARMV7_BIND_OFF:]] ++# ARMV7: bind_size: [[#ARMV7_BIND_SIZE:]] ++# ARMV7: weak_bind_off: [[#ARMV7_WEAK_BIND_OFF:]] ++# ARMV7: weak_bind_size: [[#ARMV7_WEAK_BIND_SIZE:]] ++# ARMV7: lazy_bind_off: [[#ARMV7_LAZY_BIND_OFF:]] ++# ARMV7: lazy_bind_size: [[#ARMV7_LAZY_BIND_SIZE:]] ++# ARMV7: export_off: [[#ARMV7_EXPORT_OFF:]] ++# ARMV7: export_size: [[#ARMV7_EXPORT_SIZE:]] ++ ++# ARMV7: cmd: LC_SYMTAB ++# ARMV7: symoff: [[#ARMV7_SYMOFF:]] ++# ARMV7: stroff: [[#ARMV7_STROFF:]] ++# ARMV7: strsize: [[#ARMV7_STRSIZE:]] ++ ++# ARMV7: cmd: LC_DYSYMTAB ++# ARMV7: indirectsymoff: [[#ARMV7_INDIRECTSYMOFF:]] ++ ++# ARMV7: cmd: LC_FUNCTION_STARTS ++# ARMV7: dataoff: [[#ARMV7_FUNCTION_STARTS_OFF:]] ++# ARMV7: datasize: [[#ARMV7_FUNCTION_STARTS_SIZE:]] ++ ++# ARMV7: cmd: LC_DATA_IN_CODE ++# ARMV7: dataoff: [[#ARMV7_DATA_IN_CODE_OFF:]] ++# ARMV7: datasize: [[#ARMV7_DATA_IN_CODE_SIZE:]] ++ ++# ARMV7: --- !mach-o ++ ++# ARMV7: cmd: LC_SEGMENT ++# ARMV7: segname: __LINKEDIT ++# ARMV7: fileoff: [[#mul(div(ARMV7_LINKEDIT_FILEOFF, 4), 4)]] ++# ARMV7: filesize: [[#mul(div(ARMV7_LINKEDIT_FILESIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_DYLD_INFO_ONLY ++# ARMV7: rebase_off: [[#mul(div(ARMV7_REBASE_OFF, 4), 4)]] ++# ARMV7: rebase_size: [[#mul(div(ARMV7_REBASE_SIZE, 4), 4)]] ++# ARMV7: bind_off: [[#mul(div(ARMV7_BIND_OFF, 4), 4)]] ++# ARMV7: bind_size: [[#mul(div(ARMV7_BIND_SIZE, 4), 4)]] ++# ARMV7: weak_bind_off: [[#mul(div(ARMV7_WEAK_BIND_OFF, 4), 4)]] ++# ARMV7: weak_bind_size: [[#mul(div(ARMV7_WEAK_BIND_SIZE, 4), 4)]] ++# ARMV7: lazy_bind_off: [[#mul(div(ARMV7_LAZY_BIND_OFF, 4), 4)]] ++# ARMV7: lazy_bind_size: [[#mul(div(ARMV7_LAZY_BIND_SIZE, 4), 4)]] ++# ARMV7: export_off: [[#mul(div(ARMV7_EXPORT_OFF, 4), 4)]] ++# ARMV7: export_size: [[#mul(div(ARMV7_EXPORT_SIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_SYMTAB ++# ARMV7: symoff: [[#mul(div(ARMV7_SYMOFF, 4), 4)]] ++# ARMV7: stroff: [[#mul(div(ARMV7_STROFF, 4), 4)]] ++# ARMV7: strsize: [[#mul(div(ARMV7_STRSIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_DYSYMTAB ++# ARMV7: indirectsymoff: [[#mul(div(ARMV7_INDIRECTSYMOFF, 4), 4)]] ++ ++# ARMV7: cmd: LC_FUNCTION_STARTS ++# ARMV7: dataoff: [[#mul(div(ARMV7_FUNCTION_STARTS_OFF, 4), 4)]] ++# ARMV7: datasize: [[#mul(div(ARMV7_FUNCTION_STARTS_SIZE, 4), 4)]] ++ ++# ARMV7: cmd: LC_DATA_IN_CODE ++# ARMV7: dataoff: [[#mul(div(ARMV7_DATA_IN_CODE_OFF, 4), 4)]] ++# ARMV7: datasize: [[#mul(div(ARMV7_DATA_IN_CODE_SIZE, 4), 4)]] ++ ++--- !mach-o ++FileHeader: ++ magic: 0xFEEDFACF ++ cputype: 0x0100000C ++ cpusubtype: 0x00000000 ++ filetype: 0x00000002 ++ ncmds: 6 ++ sizeofcmds: 256 ++ flags: 0x00000085 ++ reserved: 0x00000000 ++LoadCommands: ++ - cmd: LC_SEGMENT_64 ++ cmdsize: 72 ++ segname: __LINKEDIT ++ vmaddr: 288 ++ vmsize: 256 ++ fileoff: 288 ++ filesize: 256 ++ maxprot: 1 ++ initprot: 1 ++ nsects: 0 ++ flags: 0 ++ - cmd: LC_DYLD_INFO_ONLY ++ cmdsize: 48 ++ rebase_off: 288 ++ rebase_size: 1 ++ bind_off: 289 ++ bind_size: 1 ++ weak_bind_off: 290 ++ weak_bind_size: 1 ++ lazy_bind_off: 291 ++ lazy_bind_size: 1 ++ export_off: 0 ++ export_size: 0 ++ - cmd: LC_SYMTAB ++ cmdsize: 24 ++ symoff: 304 ++ nsyms: 2 ++ stroff: 340 ++ strsize: 24 ++ - cmd: LC_DYSYMTAB ++ cmdsize: 80 ++ ilocalsym: 0 ++ nlocalsym: 0 ++ iextdefsym: 0 ++ nextdefsym: 0 ++ iundefsym: 0 ++ nundefsym: 2 ++ tocoff: 0 ++ ntoc: 0 ++ modtaboff: 0 ++ nmodtab: 0 ++ extrefsymoff: 0 ++ nextrefsyms: 0 ++ indirectsymoff: 336 ++ nindirectsyms: 1 ++ extreloff: 0 ++ nextrel: 0 ++ locreloff: 0 ++ nlocrel: 0 ++ - cmd: LC_FUNCTION_STARTS ++ cmdsize: 16 ++ dataoff: 292 ++ datasize: 1 ++ - cmd: LC_DATA_IN_CODE ++ cmdsize: 16 ++ dataoff: 293 ++ datasize: 8 ++LinkEditData: ++ RebaseOpcodes: ++ - Opcode: REBASE_OPCODE_DONE ++ Imm: 0 ++ BindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ WeakBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ LazyBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ NameList: ++ - n_strx: 1 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ - n_strx: 6 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ StringTable: ++ - '' ++ - _foo ++ - _bar ++ - '' ++ IndirectSymbols: [ 0x1 ] ++ FunctionStarts: [ 0x0 ] ++ DataInCode: ++ - Offset: 0x0 ++ Length: 4 ++ Kind: 0x4 ++... ++ ++--- !mach-o ++IsLittleEndian: true ++FileHeader: ++ magic: 0xFEEDFACE ++ cputype: 0x0000000C ++ cpusubtype: 0x00000009 ++ filetype: 0x00000002 ++ ncmds: 6 ++ sizeofcmds: 240 ++ flags: 0x00000085 ++LoadCommands: ++ - cmd: LC_SEGMENT ++ cmdsize: 56 ++ segname: __LINKEDIT ++ vmaddr: 268 ++ vmsize: 128 ++ fileoff: 268 ++ filesize: 128 ++ maxprot: 1 ++ initprot: 1 ++ nsects: 0 ++ flags: 0 ++ - cmd: LC_DYLD_INFO_ONLY ++ cmdsize: 48 ++ rebase_off: 268 ++ rebase_size: 1 ++ bind_off: 269 ++ bind_size: 1 ++ weak_bind_off: 270 ++ weak_bind_size: 1 ++ lazy_bind_off: 271 ++ lazy_bind_size: 1 ++ export_off: 0 ++ export_size: 0 ++ - cmd: LC_SYMTAB ++ cmdsize: 24 ++ symoff: 284 ++ nsyms: 2 ++ stroff: 312 ++ strsize: 16 ++ - cmd: LC_DYSYMTAB ++ cmdsize: 80 ++ ilocalsym: 0 ++ nlocalsym: 0 ++ iextdefsym: 0 ++ nextdefsym: 0 ++ iundefsym: 0 ++ nundefsym: 2 ++ tocoff: 0 ++ ntoc: 0 ++ modtaboff: 0 ++ nmodtab: 0 ++ extrefsymoff: 0 ++ nextrefsyms: 0 ++ indirectsymoff: 308 ++ nindirectsyms: 1 ++ extreloff: 0 ++ nextrel: 0 ++ locreloff: 0 ++ nlocrel: 0 ++ - cmd: LC_FUNCTION_STARTS ++ cmdsize: 16 ++ dataoff: 272 ++ datasize: 4 ++ - cmd: LC_DATA_IN_CODE ++ cmdsize: 16 ++ dataoff: 276 ++ datasize: 8 ++LinkEditData: ++ RebaseOpcodes: ++ - Opcode: REBASE_OPCODE_DONE ++ Imm: 0 ++ BindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ WeakBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ LazyBindOpcodes: ++ - Opcode: BIND_OPCODE_DONE ++ Imm: 0 ++ Symbol: '' ++ NameList: ++ - n_strx: 1 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ - n_strx: 6 ++ n_type: 0x01 ++ n_sect: 0 ++ n_desc: 0 ++ n_value: 0 ++ StringTable: ++ - '' ++ - _foo ++ - _bar ++ - '' ++ IndirectSymbols: [ 0x1 ] ++ FunctionStarts: [ 0x0 ] ++ DataInCode: ++ - Offset: 0x0 ++ Length: 4 ++ Kind: 0x4 ++... +diff --git a/test/tools/llvm-objcopy/MachO/linkedit-order-1.test b/test/tools/llvm-objcopy/MachO/linkedit-order-1.test +index 4915f344c1..b7ee56ed47 100644 +--- a/test/tools/llvm-objcopy/MachO/linkedit-order-1.test ++++ b/test/tools/llvm-objcopy/MachO/linkedit-order-1.test +@@ -51,7 +51,8 @@ + # CHECK: --- !mach-o + + # CHECK: cmd: LC_SYMTAB +-# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(DYSYMTAB_NINDIRECTSYMS, 4)]] ++## LINKEDIT entries are aligned to the target word size. ++# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(div(mul(DYSYMTAB_NINDIRECTSYMS, 4) + 4, 8), 8)]] + # CHECK: strsize: [[#SYMTAB_STRSIZE:]] + + # CHECK: cmd: LC_CODE_SIGNATURE +diff --git a/test/tools/llvm-objcopy/MachO/linkedit-order-2.test b/test/tools/llvm-objcopy/MachO/linkedit-order-2.test +index 0c5521ece0..dfbb7277a4 100644 +--- a/test/tools/llvm-objcopy/MachO/linkedit-order-2.test ++++ b/test/tools/llvm-objcopy/MachO/linkedit-order-2.test +@@ -50,7 +50,8 @@ + # CHECK: --- !mach-o + + # CHECK: cmd: LC_SYMTAB +-# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(DYSYMTAB_NINDIRECTSYMS, 4)]] ++## LINKEDIT entries are aligned to the target word size. ++# CHECK: stroff: [[#SYMTAB_STROFF: DYSYMTAB_INDIRECTSYMOFF + mul(div(mul(DYSYMTAB_NINDIRECTSYMS, 4) + 4, 8), 8)]] + # CHECK: strsize: [[#SYMTAB_STRSIZE:]] + + # CHECK: cmd: LC_CODE_SIGNATURE +diff --git a/test/tools/llvm-objcopy/MachO/symbol-table.test b/test/tools/llvm-objcopy/MachO/symbol-table.test +index 7e0e1421c0..a95c2ac7a3 100644 +--- a/test/tools/llvm-objcopy/MachO/symbol-table.test ++++ b/test/tools/llvm-objcopy/MachO/symbol-table.test +@@ -301,7 +301,7 @@ + vmaddr: 4294975488 + vmsize: 4096 + fileoff: 8192 +- filesize: 508 ++ filesize: 512 + maxprot: 1 + initprot: 1 + nsects: 0 +@@ -310,7 +310,7 @@ + cmdsize: 24 + symoff: 8192 + nsyms: 18 +- stroff: 8484 ++ stroff: 8488 + strsize: 216 + - cmd: LC_DYSYMTAB + cmdsize: 80 diff --git a/pkgs/development/compilers/llvm/common/clang/default.nix b/pkgs/development/compilers/llvm/common/clang/default.nix index c2f20ca26ff3..6223f2d93d0c 100644 --- a/pkgs/development/compilers/llvm/common/clang/default.nix +++ b/pkgs/development/compilers/llvm/common/clang/default.nix @@ -180,40 +180,26 @@ stdenv.mkDerivation ( moveToOutput "lib/libclang-cpp.*" "$lib" mkdir -p $python/bin $python/share/clang/ '' - + ( - # This conditional will be dropped on staging. Doing this to fix ROCm on master without rebuilding Darwin. - if lib.hasSuffix "rocm" finalAttrs.version then - '' - declare -a pythonScripts=( - analyze-build - git-clang-format - hmaptool - intercept-build - run-clang-tidy - scan-build-py - scan-view - set-xcode-analyzer - ) - for pythonScript in "''${pythonScripts[@]}"; do - if [ -e $out/bin/$pythonScript ]; then - mv $out/bin/$pythonScript $python/bin - fi - done - mv $out/share/clang/*.py $python/share/clang - # Delete the Perl implementation of scan-build. It doesn’t even work when libexec is in a separate output. - rm -rf $out/bin/scan-build $lib/libexec - '' - else - '' - mv $out/bin/{analyze-build,git-clang-format,hmaptool,intercept-build,run-clang-tidy,scan-build-py,scan-view} $python/bin - if [ -e $out/bin/set-xcode-analyzer ]; then - mv $out/bin/set-xcode-analyzer $python/bin - fi - mv $out/share/clang/*.py $python/share/clang - # Delete the Perl implementation of scan-build. It doesn’t even work when libexec is in a separate output. - rm -rf $out/bin/scan-build $lib/libexec - '' - ) + + '' + declare -a pythonScripts=( + analyze-build + git-clang-format + hmaptool + intercept-build + run-clang-tidy + scan-build-py + scan-view + set-xcode-analyzer + ) + for pythonScript in "''${pythonScripts[@]}"; do + if [ -e $out/bin/$pythonScript ]; then + mv $out/bin/$pythonScript $python/bin + fi + done + mv $out/share/clang/*.py $python/share/clang + # Delete the Perl implementation of scan-build. It doesn’t even work when libexec is in a separate output. + rm -rf $out/bin/scan-build $lib/libexec + '' + lib.optionalString (lib.versionOlder release_version "22") '' rm $out/bin/c-index-test '' diff --git a/pkgs/development/compilers/llvm/common/libc/default.nix b/pkgs/development/compilers/llvm/common/libc/default.nix index 9ecd7577139d..0fa1f243cbf8 100644 --- a/pkgs/development/compilers/llvm/common/libc/default.nix +++ b/pkgs/development/compilers/llvm/common/libc/default.nix @@ -6,6 +6,7 @@ monorepoSrc ? null, version, release_version, + fetchpatch, runCommand, python3, python3Packages, @@ -41,12 +42,20 @@ let needHdrGen = isFullBuild || lib.versionAtLeast release_version "22"; in stdenv.mkDerivation (finalAttrs: { - inherit pname version patches; + inherit pname version; src = src'; sourceRoot = "${finalAttrs.src.name}/runtimes"; + # Linux removed `linux/scc.h`, which breaks building compiler-rt. Upstream LLVM has fixed it in LLVM 22 and 23. + patches = + patches + ++ lib.optional (lib.strings.versionOlder version "22.1.5") (fetchpatch { + url = "https://github.com/llvm/llvm-project/commit/3dc4fd6dd41100f051a63642f449b16324389c96.patch?full_index=1"; + hash = "sha256-BJwFPeYCBO+PnUMMC/3GSYPgn0vczkkbdw5qcnURPbI="; + }); + nativeBuildInputs = [ cmake python3 @@ -72,10 +81,11 @@ stdenv.mkDerivation (finalAttrs: { prePatch = '' cd ../${finalAttrs.pname} chmod -R u+w ../ + cd .. ''; postPatch = '' - cd ../runtimes + cd runtimes ''; postInstall = diff --git a/pkgs/development/compilers/llvm/common/llvm/default.nix b/pkgs/development/compilers/llvm/common/llvm/default.nix index 60f90362e3af..9328b051301e 100644 --- a/pkgs/development/compilers/llvm/common/llvm/default.nix +++ b/pkgs/development/compilers/llvm/common/llvm/default.nix @@ -266,6 +266,12 @@ stdenv.mkDerivation ( hash = "sha256-HHVMVL7ZWiZkbfnD37zYxFWnfvI3LNS0Z2oFHhOaZsU="; }) ] + ++ lib.optionals (lib.versionOlder release_version "22") [ + # Fixes incorrect template specializations that cause building LLVM to fail to build after Darwin bumps its + # system libc++ headers to 22.1.6+apple-sdk-27.0. These definitions were also UB apparently. + # See: https://github.com/llvm/llvm-project/pull/160804 + (getVersionFile "llvm/get-rid-of-incorrect-std-template-specializations.patch") + ] ++ lib.optionals (lib.versionOlder release_version "23") [ # As of macOS 27 (and iOS 27, etc), the Darwin version number is the same as the OS version number. # This change breaks target parsing because `darwin27` is incorrectly interpreted as macOS 28. @@ -282,6 +288,12 @@ stdenv.mkDerivation ( # a new arm64 subtype that gives more pointer authentication machinery. # Vendored backport of the patch for LLVM 23 (getVersionFile "llvm/backport-minimal-arm64e_x1-support.patch") + ] + ++ lib.optionals (lib.versionOlder release_version "23") [ + # macOS 27 requires the string pool to be pointer-aligned when dylibs are linked against the 27.0 SDK. + # While ld64 does align them correctly, they are misaligned by LLVM’s `strip`. + # See: https://github.com/llvm/llvm-project/issues/203678 + (getVersionFile "llvm/align-__linkedit-entries-to-pointer-size.patch") ]; nativeBuildInputs = [ @@ -596,6 +608,13 @@ stdenv.mkDerivation ( ) ) ] + ++ optionals stdenv.hostPlatform.is32bit [ + # building some targets (*cough* RISC-V *cough*) OOMs on 32-bit + # so build a reduced set of things that is vaguely reasonable + # + # ARM is here because cargo-auditable tests just assume LLVM knows what an ARM is. Don't ask. + (lib.cmakeFeature "LLVM_TARGETS_TO_BUILD" "Native;AMDGPU;ARM;BPF;NVPTX;SPIRV;WebAssembly") + ] ++ devExtraCmakeFlags; postInstall = '' diff --git a/pkgs/development/compilers/llvm/common/openmp/default.nix b/pkgs/development/compilers/llvm/common/openmp/default.nix index 2601e294fccf..d6792fa1a94b 100644 --- a/pkgs/development/compilers/llvm/common/openmp/default.nix +++ b/pkgs/development/compilers/llvm/common/openmp/default.nix @@ -36,15 +36,28 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; __structuredAttrs = true; } - '' - mkdir -p "$out" - cp -r ${monorepoSrc}/cmake "$out" - cp -r ${monorepoSrc}/openmp "$out" - '' + ( + '' + mkdir -p "$out" + cp -r ${monorepoSrc}/cmake "$out" + cp -r ${monorepoSrc}/openmp "$out" + '' + + lib.optionalString (lib.versionAtLeast release_version "23") '' + mkdir -p "$out/llvm" + cp -r ${monorepoSrc}/llvm/cmake "$out/llvm" + cp -r ${monorepoSrc}/llvm/utils "$out/llvm" + cp -r ${monorepoSrc}/third-party "$out" + cp -r ${monorepoSrc}/runtimes "$out" + '' + ) else src; - sourceRoot = "${finalAttrs.src.name}/openmp"; + # LLVM 23 removed OpenMP's standalone build + # https://openmp.llvm.org/Building.html + sourceRoot = + "${finalAttrs.src.name}/" + + (if lib.versionAtLeast release_version "23" then "runtimes" else "openmp"); outputs = [ "out" @@ -89,6 +102,9 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "OPT_TOOL" "${llvm}/bin/opt") (lib.cmakeFeature "LINK_TOOL" "${llvm}/bin/llvm-link") ] + ++ lib.optionals (lib.versionAtLeast release_version "23") [ + (lib.cmakeFeature "LLVM_ENABLE_RUNTIMES" "openmp") + ] ++ devExtraCmakeFlags; doCheck = false; @@ -96,7 +112,9 @@ stdenv.mkDerivation (finalAttrs: { checkTarget = "check-openmp"; preCheck = '' - patchShebangs ../tools/archer/tests/deflake.bash + patchShebangs ${ + if lib.versionAtLeast release_version "23" then "../../openmp" else ".." + }/tools/archer/tests/deflake.bash ''; __structuredAttrs = true; diff --git a/pkgs/development/compilers/llvm/common/patches.nix b/pkgs/development/compilers/llvm/common/patches.nix index 3c2db1742e00..7cca681df141 100644 --- a/pkgs/development/compilers/llvm/common/patches.nix +++ b/pkgs/development/compilers/llvm/common/patches.nix @@ -57,6 +57,17 @@ path = ../23; } ]; + "llvm/align-__linkedit-entries-to-pointer-size.patch" = [ + { + before = "22"; + path = ../18; + } + { + after = "22"; + before = "23"; + path = ../22; + } + ]; "llvm/backport-darwin-triple-parsing.patch" = [ { after = "18"; @@ -89,6 +100,12 @@ path = ../22; } ]; + "llvm/get-rid-of-incorrect-std-template-specializations.patch" = [ + { + before = "22"; + path = ../18; + } + ]; "llvm/gnu-install-dirs.patch" = [ { after = "23"; diff --git a/pkgs/development/compilers/mono/generic.nix b/pkgs/development/compilers/mono/generic.nix index 379d6129c55d..5b01d37dee17 100644 --- a/pkgs/development/compilers/mono/generic.nix +++ b/pkgs/development/compilers/mono/generic.nix @@ -103,11 +103,7 @@ stdenv.mkDerivation (finalAttrs: { # Per nixpkgs#151720 the build failures for aarch64-darwin are fixed since 6.12.0.129. # Cross build is broken due to attempt to execute cert-sync built for the host. broken = - ( - stdenv.hostPlatform.isDarwin - && stdenv.hostPlatform.isAarch64 - && lib.versionOlder finalAttrs.version "6.12.0.129" - ) + (stdenv.hostPlatform.isDarwin && lib.versionOlder finalAttrs.version "6.12.0.129") || !stdenv.buildPlatform.canExecute stdenv.hostPlatform; homepage = if lib.versionOlder finalAttrs.version "6.14.0" then diff --git a/pkgs/development/compilers/ocaml/5.5.nix b/pkgs/development/compilers/ocaml/5.5.nix index 704a00a50cfa..6534b6810e3e 100644 --- a/pkgs/development/compilers/ocaml/5.5.nix +++ b/pkgs/development/compilers/ocaml/5.5.nix @@ -1,6 +1,6 @@ import ./generic.nix { major_version = "5"; minor_version = "5"; - patch_version = "1"; - sha256 = "sha256-zQqXvb/JnwD1P07khJGWTHNievsJ7Y5N4jC6RIij1rk="; + patch_version = "2"; + sha256 = "sha256-VQPhuq2LYl2jXx/nHUdVgBT6NiU65fGiLMOhj6sEHg0="; } diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix index da3136eb456a..ccb158f74fea 100644 --- a/pkgs/development/compilers/ocaml/generic.nix +++ b/pkgs/development/compilers/ocaml/generic.nix @@ -143,11 +143,7 @@ stdenv.mkDerivation ( # does not exist. So, disable these configure flags on `aarch64-darwin`. # See #144785 for details. configurePlatforms = - lib.optionals - ( - lib.versionAtLeast version "4.08" - && !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) - ) + lib.optionals (lib.versionAtLeast version "4.08" && !stdenv.hostPlatform.isDarwin) [ "host" "target" diff --git a/pkgs/development/compilers/openjdk/11/patches/currency-date-range-jdk10.patch b/pkgs/development/compilers/openjdk/11/patches/currency-date-range.patch similarity index 100% rename from pkgs/development/compilers/openjdk/11/patches/currency-date-range-jdk10.patch rename to pkgs/development/compilers/openjdk/11/patches/currency-date-range.patch diff --git a/pkgs/development/compilers/openjdk/11/patches/fix-java-home-jdk10.patch b/pkgs/development/compilers/openjdk/11/patches/fix-java-home.patch similarity index 100% rename from pkgs/development/compilers/openjdk/11/patches/fix-java-home-jdk10.patch rename to pkgs/development/compilers/openjdk/11/patches/fix-java-home.patch diff --git a/pkgs/development/compilers/openjdk/11/patches/fix-library-path-jdk11.patch b/pkgs/development/compilers/openjdk/11/patches/fix-library-path.patch similarity index 100% rename from pkgs/development/compilers/openjdk/11/patches/fix-library-path-jdk11.patch rename to pkgs/development/compilers/openjdk/11/patches/fix-library-path.patch diff --git a/pkgs/development/compilers/openjdk/11/patches/read-truststore-from-env-jdk10.patch b/pkgs/development/compilers/openjdk/11/patches/read-truststore-from-env.patch similarity index 100% rename from pkgs/development/compilers/openjdk/11/patches/read-truststore-from-env-jdk10.patch rename to pkgs/development/compilers/openjdk/11/patches/read-truststore-from-env.patch diff --git a/pkgs/development/compilers/openjdk/17/patches/fix-library-path-jdk17.patch b/pkgs/development/compilers/openjdk/17/patches/fix-library-path.patch similarity index 100% rename from pkgs/development/compilers/openjdk/17/patches/fix-library-path-jdk17.patch rename to pkgs/development/compilers/openjdk/17/patches/fix-library-path.patch diff --git a/pkgs/development/compilers/openjdk/17/patches/ignore-LegalNoticeFilePlugin-jdk17.patch b/pkgs/development/compilers/openjdk/17/patches/ignore-LegalNoticeFilePlugin.patch similarity index 100% rename from pkgs/development/compilers/openjdk/17/patches/ignore-LegalNoticeFilePlugin-jdk17.patch rename to pkgs/development/compilers/openjdk/17/patches/ignore-LegalNoticeFilePlugin.patch diff --git a/pkgs/development/compilers/openjdk/17/patches/increase-javadoc-heap-jdk13.patch b/pkgs/development/compilers/openjdk/17/patches/increase-javadoc-heap.patch similarity index 100% rename from pkgs/development/compilers/openjdk/17/patches/increase-javadoc-heap-jdk13.patch rename to pkgs/development/compilers/openjdk/17/patches/increase-javadoc-heap.patch diff --git a/pkgs/development/compilers/openjdk/21/patches/fix-java-home-jdk21.patch b/pkgs/development/compilers/openjdk/21/patches/fix-java-home.patch similarity index 100% rename from pkgs/development/compilers/openjdk/21/patches/fix-java-home-jdk21.patch rename to pkgs/development/compilers/openjdk/21/patches/fix-java-home.patch diff --git a/pkgs/development/compilers/openjdk/21/patches/ignore-LegalNoticeFilePlugin-jdk18.patch b/pkgs/development/compilers/openjdk/21/patches/ignore-LegalNoticeFilePlugin.patch similarity index 100% rename from pkgs/development/compilers/openjdk/21/patches/ignore-LegalNoticeFilePlugin-jdk18.patch rename to pkgs/development/compilers/openjdk/21/patches/ignore-LegalNoticeFilePlugin.patch diff --git a/pkgs/development/compilers/openjdk/21/source.json b/pkgs/development/compilers/openjdk/21/source.json index c157d6a64e4a..c64ed8dd5550 100644 --- a/pkgs/development/compilers/openjdk/21/source.json +++ b/pkgs/development/compilers/openjdk/21/source.json @@ -1,6 +1,6 @@ { - "hash": "sha256-vy4Q3hr3M+imeGnlZrpjG/tHFaVRelaVy4rtDAF6Z80=", + "hash": "sha256-IpAIDFoo21ap2hdTxjdN40hZbAE1qDqr6kWlyg83PoQ=", "owner": "openjdk", "repo": "jdk21u", - "rev": "refs/tags/jdk-21.0.12.1+1" + "rev": "refs/tags/jdk-21.0.13.0.2+1" } diff --git a/pkgs/development/compilers/openjdk/25/patches/fix-java-home-jdk25.patch b/pkgs/development/compilers/openjdk/25/patches/fix-java-home.patch similarity index 100% rename from pkgs/development/compilers/openjdk/25/patches/fix-java-home-jdk25.patch rename to pkgs/development/compilers/openjdk/25/patches/fix-java-home.patch diff --git a/pkgs/development/compilers/openjdk/25/patches/read-truststore-from-env-jdk25.patch b/pkgs/development/compilers/openjdk/25/patches/read-truststore-from-env.patch similarity index 100% rename from pkgs/development/compilers/openjdk/25/patches/read-truststore-from-env-jdk25.patch rename to pkgs/development/compilers/openjdk/25/patches/read-truststore-from-env.patch diff --git a/pkgs/development/compilers/openjdk/8/patches/currency-date-range-jdk8.patch b/pkgs/development/compilers/openjdk/8/patches/currency-date-range.patch similarity index 100% rename from pkgs/development/compilers/openjdk/8/patches/currency-date-range-jdk8.patch rename to pkgs/development/compilers/openjdk/8/patches/currency-date-range.patch diff --git a/pkgs/development/compilers/openjdk/8/patches/fix-java-home-jdk8.patch b/pkgs/development/compilers/openjdk/8/patches/fix-java-home.patch similarity index 100% rename from pkgs/development/compilers/openjdk/8/patches/fix-java-home-jdk8.patch rename to pkgs/development/compilers/openjdk/8/patches/fix-java-home.patch diff --git a/pkgs/development/compilers/openjdk/8/patches/fix-library-path-jdk8.patch b/pkgs/development/compilers/openjdk/8/patches/fix-library-path.patch similarity index 100% rename from pkgs/development/compilers/openjdk/8/patches/fix-library-path-jdk8.patch rename to pkgs/development/compilers/openjdk/8/patches/fix-library-path.patch diff --git a/pkgs/development/compilers/openjdk/8/patches/read-truststore-from-env-jdk8.patch b/pkgs/development/compilers/openjdk/8/patches/read-truststore-from-env.patch similarity index 100% rename from pkgs/development/compilers/openjdk/8/patches/read-truststore-from-env-jdk8.patch rename to pkgs/development/compilers/openjdk/8/patches/read-truststore-from-env.patch diff --git a/pkgs/development/compilers/openjdk/generic.nix b/pkgs/development/compilers/openjdk/generic.nix index fc7978e79e00..1ebf38cbb893 100644 --- a/pkgs/development/compilers/openjdk/generic.nix +++ b/pkgs/development/compilers/openjdk/generic.nix @@ -54,37 +54,20 @@ # TODO(@sternenseemann): gtk3 fails to evaluate in pkgsCross.ghcjs.buildPackages # which should be fixable, this is a no-rebuild workaround for GHC. headless ? lib.versionAtLeast featureVersion "21" && stdenv.targetPlatform.isGhcjs, + javaPackages, enableJavaFX ? false, - openjfx17, - openjfx21, - openjfx25, openjfx_jdk ? - { - "17" = openjfx17; - "21" = openjfx21; - "25" = openjfx25; - } - .${featureVersion} or (throw "JavaFX is not supported on OpenJDK ${featureVersion}"), + javaPackages."openjfx${featureVersion}" + or (throw "JavaFX is not supported on OpenJDK ${featureVersion}"), enableGtk ? true, gtk3, glib, - temurin-bin-8, - temurin-bin-11, - temurin-bin-17, - temurin-bin-21, - temurin-bin-25, jdk-bootstrap ? - { - "8" = temurin-bin-8.__spliced.buildBuild or temurin-bin-8; - "11" = temurin-bin-11.__spliced.buildBuild or temurin-bin-11; - "17" = temurin-bin-17.__spliced.buildBuild or temurin-bin-17; - "21" = temurin-bin-21.__spliced.buildBuild or temurin-bin-21; - "25" = temurin-bin-25.__spliced.buildBuild or temurin-bin-25; - } - .${featureVersion}, + javaPackages.compiler.temurin-bin."jdk-${featureVersion}".__spliced.buildBuild + or javaPackages.compiler.temurin-bin."jdk-${featureVersion}", }: assert lib.assertMsg (enableGtk -> lib.versionAtLeast featureVersion "11") @@ -97,11 +80,58 @@ let featureVersionPrefix = tagPrefix + featureVersion; }; - atLeast11 = lib.versionAtLeast featureVersion "11"; - atLeast17 = lib.versionAtLeast featureVersion "17"; - atLeast21 = lib.versionAtLeast featureVersion "21"; - atLeast23 = lib.versionAtLeast featureVersion "23"; - atLeast25 = lib.versionAtLeast featureVersion "25"; + # Version comparison functions since we check for versions so often + atLeast = lib.versionAtLeast featureVersion; + is = major: featureVersion == major; + # If a JDK version is between two versions, i.e `between "8" "11"` to match versions between 8 and 11. + # Note this is inclusive at low end and exclusive at top end, so 8 would match the above example, but 11 will not. + between = old: new: (atLeast old) && (lib.versionOlder featureVersion new); + + atLeast11 = atLeast "11"; + atLeast17 = atLeast "17"; + atLeast21 = atLeast "21"; + atLeast23 = atLeast "23"; + atLeast25 = atLeast "25"; + + allPatches = import ./patches.nix { inherit fetchurl fetchpatch; }; + + # Checks if a single patch object is applicable to the featureVersion being called. + isPatchApplicable = + patch: + let + a = patch.atLeast or "0"; + # If this doesn't exist, return a number we assume JDK featureVersions will never reach + b = patch.before or "9999"; + in + if patch ? only then (is patch.only) else (between a b); + + # Filters all patches in a patchset(list of patch attrs) to find ones applicable to this version + findApplicable = + name: patchSet: + let + # Returns a single patch matching this predicate + patch = builtins.filter isPatchApplicable patchSet; + in + # If no patches, return an empty list. + # If there is a patch, construct it from the path and patch name, or function if available. + if patch == [ ] then + [ ] + else + let + # We only expect a single patch. + # Warn if there's more than one patch, as we only expect one from every patchset. + p = lib.warnIf (builtins.length patch > 1) "multiple applicable versions of patch '${name}'" ( + builtins.head patch + ); + in + [ + (p.func or /${p.path}/patches/${name}) + ]; + + # `patches` builder + # Does not encode any logic for `headless` or `enableGtk` so any patches relying on that + # should concat to this list below instead + patchesForVersion = lib.concatAttrValues (builtins.mapAttrs findApplicable allPatches); tagPrefix = if atLeast11 then "jdk-" else "jdk"; version = lib.removePrefix "refs/tags/${tagPrefix}" source.src.rev; @@ -145,98 +175,13 @@ stdenv.mkDerivation (finalAttrs: { inherit (source) src; - patches = [ - ( - if atLeast25 then - ./25/patches/fix-java-home-jdk25.patch - else if atLeast21 then - ./21/patches/fix-java-home-jdk21.patch - else if atLeast11 then - ./11/patches/fix-java-home-jdk10.patch - else - ./8/patches/fix-java-home-jdk8.patch - ) - ( - if atLeast25 then - ./25/patches/read-truststore-from-env-jdk25.patch - else if atLeast11 then - ./11/patches/read-truststore-from-env-jdk10.patch - else - ./8/patches/read-truststore-from-env-jdk8.patch - ) - ] - ++ lib.optionals (!atLeast23) [ - ( - if atLeast11 then - ./11/patches/currency-date-range-jdk10.patch - else - ./8/patches/currency-date-range-jdk8.patch - ) - ] - ++ lib.optionals atLeast11 [ - ( - if atLeast17 then - ./17/patches/increase-javadoc-heap-jdk13.patch - else - ./11/patches/increase-javadoc-heap.patch - ) - ] - ++ lib.optionals atLeast17 [ - ( - if atLeast21 then - ./21/patches/ignore-LegalNoticeFilePlugin-jdk18.patch - else - ./17/patches/ignore-LegalNoticeFilePlugin-jdk17.patch - ) - ] - ++ lib.optionals (!atLeast21) [ - ( - if atLeast17 then - ./17/patches/fix-library-path-jdk17.patch - else if atLeast11 then - ./11/patches/fix-library-path-jdk11.patch - else - ./8/patches/fix-library-path-jdk8.patch - ) - ] - ++ lib.optionals (atLeast17 && !atLeast23) [ - # -Wformat etc. are stricter in newer gccs, per - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 - # so grab the work-around from - # https://src.fedoraproject.org/rpms/java-openjdk/pull-request/24 - (fetchurl { - url = "https://src.fedoraproject.org/rpms/java-openjdk/raw/06c001c7d87f2e9fe4fedeef2d993bcd5d7afa2a/f/rh1673833-remove_removal_of_wformat_during_test_compilation.patch"; - sha256 = "082lmc30x64x583vqq00c8y0wqih3y4r0mp1c4bqq36l22qv6b6r"; - }) - ] - ++ lib.optionals (featureVersion == "17") [ - # Patch borrowed from Alpine to fix build errors with musl libc and recent gcc. - # This is applied anywhere to prevent patchrot. - (fetchurl { - url = "https://git.alpinelinux.org/aports/plain/community/openjdk17/FixNullPtrCast.patch?id=41e78a067953e0b13d062d632bae6c4f8028d91c"; - sha256 = "sha256-LzmSew51+DyqqGyyMw2fbXeBluCiCYsS1nCjt9hX6zo="; - }) - ] - ++ lib.optionals (atLeast11 && !atLeast25) [ - # Fix build for gnumake-4.4.1: - # https://github.com/openjdk/jdk/pull/12992 - (fetchpatch { - name = "gnumake-4.4.1"; - url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch"; - hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg="; - }) - ] - ++ lib.optionals atLeast25 [ - ./25/patches/make-4.4.1.patch - ] - ++ lib.optionals (!headless && enableGtk) [ - ( - if atLeast17 then ./17/patches/swing-use-gtk-jdk13.patch else ./11/patches/swing-use-gtk-jdk10.patch - ) - ] - ++ lib.optionals (featureVersion == "11") [ - ./11/patches/fix-oopdesc-ptr-alignment-ub.patch - ]; + patches = + patchesForVersion + ++ lib.optionals (!headless && enableGtk) [ + ( + if atLeast17 then ./17/patches/swing-use-gtk-jdk13.patch else ./11/patches/swing-use-gtk-jdk10.patch + ) + ]; strictDeps = true; @@ -290,7 +235,7 @@ stdenv.mkDerivation (finalAttrs: { libxrandr fontconfig ] - ++ lib.optionals (atLeast11 && !atLeast21) [ + ++ lib.optionals (between "11" "21") [ harfbuzz ] ++ lib.optionals atLeast11 [ @@ -355,7 +300,7 @@ stdenv.mkDerivation (finalAttrs: { "--with-milestone=fcs" ] ) - ++ lib.optionals (!atLeast21 && atLeast11) [ + ++ lib.optionals (between "11" "21") [ "--with-freetype=system" "--with-harfbuzz=system" ] @@ -364,7 +309,7 @@ stdenv.mkDerivation (finalAttrs: { "--with-libpng=system" "--with-lcms=system" ] - ++ lib.optionals (featureVersion == "11") [ + ++ lib.optionals (is "11") [ "--disable-warnings-as-errors" ] # OpenJDK 11 cannot be built by recent versions of Clang, as far as I can tell (see @@ -379,9 +324,7 @@ stdenv.mkDerivation (finalAttrs: { # This probably shouldn’t apply to OpenJDK 21; see # b7e68243306833845cbf92e2ea1e0cf782481a51 which removed it for # versions 15 through 20. - ++ lib.optional ( - (featureVersion == "11" || featureVersion == "21") && stdenv.hostPlatform.isx86_64 - ) "--with-jvm-features=zgc" + ++ lib.optional ((is "11" || is "21") && stdenv.hostPlatform.isx86_64) "--with-jvm-features=zgc" ++ lib.optional headless (if atLeast11 then "--enable-headless-only" else "--disable-headful") ++ lib.optional (!headless && enableJavaFX) "--with-import-modules=${openjfx_jdk}"; @@ -424,7 +367,7 @@ stdenv.mkDerivation (finalAttrs: { # `cc1plus: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]` # when building jtreg [ "-Wformat" ] - ++ lib.optionals (stdenv.cc.isGNU && featureVersion == "11") [ + ++ lib.optionals (stdenv.cc.isGNU && is "11") [ # Fix build with gcc15 "-std=gnu17" ] @@ -449,7 +392,7 @@ stdenv.mkDerivation (finalAttrs: { "-Wno-error=int-conversion" "-Wno-error=incompatible-pointer-types" ] - ++ lib.optionals (stdenv.cc.isGNU && featureVersion == "8") [ + ++ lib.optionals (stdenv.cc.isGNU && is "8") [ # Fix build with gcc15 "-std=gnu17" ] diff --git a/pkgs/development/compilers/openjdk/patches.nix b/pkgs/development/compilers/openjdk/patches.nix new file mode 100644 index 000000000000..6356c4b80b9f --- /dev/null +++ b/pkgs/development/compilers/openjdk/patches.nix @@ -0,0 +1,141 @@ +{ fetchurl, fetchpatch }: +# JDK Patchsets +# Each attrset is the name of a patch, with a list of patch attrs +# Any version that does not match a patchset constraint will not have a patch applied. +# Each patch attr has the following values: +# # EITHER: +# # path: The path to the directory where the patch is found +# # func: A fetchpatch call to fetch the patch. Available so not everything has to be vendored. +# # AND +# # EITHER: +# # `only`: Specifies this patch only applies to that major version +# # OR(must have one or both) +# # `atLeast`: The patch is only applied to this version and higher(INCLUSIVE, so "8" includes 8) +# # `before`: The patch applies to versions before this number(EXCLUSIVE, so "8" is versions before 8) +{ + "fix-java-home.patch" = [ + { + atLeast = "25"; + path = ./25; + } + { + atLeast = "21"; + before = "25"; + path = ./21; + } + { + atLeast = "11"; + before = "21"; + path = ./11; + } + { + atLeast = "8"; + before = "11"; + path = ./8; + } + ]; + "read-truststore-from-env.patch" = [ + { + atLeast = "25"; + path = ./25; + } + { + atLeast = "11"; + before = "25"; + path = ./11; + } + { + before = "11"; + path = ./8; + } + ]; + "currency-date-range.patch" = [ + { + atLeast = "11"; + before = "23"; + path = ./11; + } + { + before = "11"; + path = ./8; + } + ]; + "increase-javadoc-heap.patch" = [ + { + atLeast = "17"; + path = ./17; + } + { + atLeast = "11"; + before = "17"; + path = ./11; + } + ]; + "ignore-LegalNoticeFilePlugin.patch" = [ + { + atLeast = "21"; + path = ./21; + } + { + atLeast = "17"; + before = "21"; + path = ./17; + } + ]; + "fix-library-path.patch" = [ + { + atLeast = "17"; + before = "21"; + path = ./17; + } + { + atLeast = "11"; + before = "17"; + path = ./11; + } + { + before = "11"; + path = ./8; + } + ]; + "wformat-fix.patch" = [ + { + atLeast = "17"; + before = "22"; + func = fetchurl { + url = "https://src.fedoraproject.org/rpms/java-openjdk/raw/06c001c7d87f2e9fe4fedeef2d993bcd5d7afa2a/f/rh1673833-remove_removal_of_wformat_during_test_compilation.patch"; + sha256 = "082lmc30x64x583vqq00c8y0wqih3y4r0mp1c4bqq36l22qv6b6r"; + }; + } + ]; + "fix-nullptr-cast.patch" = [ + { + only = "17"; + func = fetchurl { + url = "https://git.alpinelinux.org/aports/plain/community/openjdk17/FixNullPtrCast.patch?id=41e78a067953e0b13d062d632bae6c4f8028d91c"; + sha256 = "sha256-LzmSew51+DyqqGyyMw2fbXeBluCiCYsS1nCjt9hX6zo="; + }; + } + ]; + "make-4.4.1.patch" = [ + { + atLeast = "25"; + path = ./25; + } + { + atLeast = "11"; + before = "25"; + func = fetchpatch { + name = "gnumake-4.4.1"; + url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch"; + hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg="; + }; + } + ]; + "fix-oopdesc-ptr-alignment-ub.patch" = [ + { + only = "11"; + path = ./11; + } + ]; +} diff --git a/pkgs/development/compilers/reason/rtop.nix b/pkgs/development/compilers/reason/rtop.nix index de47bcdad854..12eea945b05c 100644 --- a/pkgs/development/compilers/reason/rtop.nix +++ b/pkgs/development/compilers/reason/rtop.nix @@ -8,6 +8,11 @@ buildDunePackage { pname = "rtop"; + + # The toplevel loads the rtop library at runtime, + # so the library can't be split into a separate "dev" output. + outputs = [ "out" ]; + inherit (reason) version src; nativeBuildInputs = [ diff --git a/pkgs/development/compilers/rust/1_99.nix b/pkgs/development/compilers/rust/1_99.nix index 0e05d4a92f52..96c649e83907 100644 --- a/pkgs/development/compilers/rust/1_99.nix +++ b/pkgs/development/compilers/rust/1_99.nix @@ -25,7 +25,7 @@ pkgsTargetTarget, makeRustPlatform, wrapRustcWith, - llvmPackages, + llvmPackages_23, llvm, cargo-auditable, wrapCCWith, @@ -35,7 +35,7 @@ let llvmSharedFor = pkgSet: - pkgSet.llvmPackages.libllvm.override ( + pkgSet.llvmPackages_23.libllvm.override ( { enableSharedLibraries = true; } @@ -43,21 +43,22 @@ let # Force LLVM to compile using clang + LLVM libs when targeting pkgsLLVM stdenv = pkgSet.stdenv.override { allowedRequisites = null; - cc = pkgSet.pkgsBuildHost.llvmPackages.clangUseLLVM; + cc = pkgSet.pkgsBuildHost.llvmPackages_23.clangUseLLVM; }; } ); in import ./default.nix { - rustcVersion = "1.99.0"; - rustcSha256 = "sha256-IDXkB3uDSkL/iv0H8neuPwY0AJi4ax0oQ6ojS0z8rmc="; + rustcVersion = "1.99.1"; + rustcSha256 = "sha256-21a7xk20kc7aa3iigRptEhxjkziQb9lE9yAonL0CJFw="; llvmSharedForBuild = llvmSharedFor pkgsBuildBuild; llvmSharedForHost = llvmSharedFor pkgsBuildHost; llvmSharedForTarget = llvmSharedFor pkgsBuildTarget; + llvmPackages = llvmPackages_23; - inherit llvmPackages cargo-auditable; + inherit cargo-auditable; # For use at runtime llvmShared = llvmSharedFor pkgsHostTarget; @@ -65,27 +66,27 @@ import ./default.nix # Note: the version MUST be the same version that we are building. Upstream # ensures that each released compiler can compile itself: # https://github.com/NixOS/nixpkgs/pull/351028#issuecomment-2438244363 - bootstrapVersion = "1.99.0"; + bootstrapVersion = "1.99.1"; # fetch hashes by running `print-hashes.sh ${bootstrapVersion}` bootstrapHashes = { - i686-unknown-linux-gnu = "1ce31e45476c18aa3a00d7e349c61e10b1e061ab8f6e42d2eb5b5bbbee17af3d"; - x86_64-unknown-linux-gnu = "de0581ca9d732295a6474cfbd02461db27d69acd5050a8206523a8d6fa1599db"; - x86_64-unknown-linux-musl = "c812c6f52447721fe64cf0feb516769cf758475548a0da25c5b76b65613050a9"; - arm-unknown-linux-gnueabihf = "e686d5e3fd27e86297fde7bc2cf48510a6982a446eb9fee40c736d0c37a4bc94"; - armv7-unknown-linux-gnueabihf = "c3a3c5177971d6818c478b8414c8e942e08c3af6dc0cf607d71d1b613f6aa168"; - aarch64-unknown-linux-gnu = "42214e693ec00733e2a591e67c13af98faf02a82934108a9f37afd247b376dd0"; - aarch64-unknown-linux-musl = "2d979ae621949ef802f357369f888f17c97fd3731a8dc4dc13f713e9d3a6784f"; - x86_64-apple-darwin = "596756101bf43cd335fb247f5cc9ede0c157245523baff25a66694682495cfcb"; - aarch64-apple-darwin = "f35e7c5b2cf63e67c075d323e4d6b87501219311f09744ab24caecb761c96643"; - powerpc64-unknown-linux-gnu = "1c4c53148cd5e78b6a63b869b6b45c104bbba80ae2c165df4dd38549db31ce3d"; - powerpc64le-unknown-linux-gnu = "2db292783506bf29b465fd73f7e4c09445d533ef2a6897c5407463f39048e22e"; - powerpc64le-unknown-linux-musl = "06d2e3bc39cb85b4a1da877e8377d87fb5768fec8180c2cd9bd53b36d1102c5b"; - riscv64gc-unknown-linux-gnu = "c6d21031de5f65d1486ace8f2ab16d8a6962f0a3b58a057d288a0252adbbb2e7"; - s390x-unknown-linux-gnu = "3d576e0ddb69b341593ae0f371e63233b427729fefeb380e9adb46762b23f1f2"; - loongarch64-unknown-linux-gnu = "26969dd72bf9eb4b277d18c7afb3d2ea89ae6b6d4e32796770127d3328e864b6"; - loongarch64-unknown-linux-musl = "6630489e02cfef1f7d8b31d9572a181e0f40a97e6817d851668032507ad5aa4c"; - x86_64-unknown-freebsd = "9a14b060a681932e30c1453c30fe4f95e6170011425d660b97c739521a9f2cb9"; + i686-unknown-linux-gnu = "4ec7d2dece30bbf56c2423c24b87c50dd556fd08e3c803c6c300bcb3343bc42c"; + x86_64-unknown-linux-gnu = "aded4e6c1d580415e7b594a3080d8e23e9cbe06f159f97e300aa6875211f71bf"; + x86_64-unknown-linux-musl = "553f0b4f8789da1552514e99a23d5733e2afb62059c56b8965c8e4b03e6f70a3"; + arm-unknown-linux-gnueabihf = "3ae3d8424847bfa7376b83a576f223e55028cb16f9c8e8b3e20b00450b5c6f9e"; + armv7-unknown-linux-gnueabihf = "60e6c555137de78d29ddfc1cc8a879f418da462ab28ce97701b93a581b1a5ab0"; + aarch64-unknown-linux-gnu = "703b190f0d723ae68985797f3bb5f62f01b1723f138464c6f30f32b766eb0abf"; + aarch64-unknown-linux-musl = "83dc2ff5a720b3d7665dde0524b9d8d5cabb893b8c52ca3485d28702741ec384"; + x86_64-apple-darwin = "ca9900354aeaa5d31c47ce8e07ac90e9fb7377b39ca10e3981a85d6008679522"; + aarch64-apple-darwin = "b73b6a78c4e7171a8fe1b4bee5342273605c5c9a9a4997554c15bb3ce2753b6a"; + powerpc64-unknown-linux-gnu = "3b37ee1866ff6657139d77c0046c2071299e698487da29ab11ded59989b81c67"; + powerpc64le-unknown-linux-gnu = "efed6b2c054100a8fe3d333e4f09941fb2d72daf2d4d6a73baa11be9e355f032"; + powerpc64le-unknown-linux-musl = "3ff2a27b4b7ee1ae0e75450f4e446cd4b27685b2e229a82bee633f3df28dd41c"; + riscv64gc-unknown-linux-gnu = "b66f5a0ce75cab10fa38b6f1ec989d0b2f4310da5efd24f3dd2573e6fae2dfd3"; + s390x-unknown-linux-gnu = "6998cd09229d60468ee2002d3c3bb0db4084e1a6582ef551b3322b520bc3127d"; + loongarch64-unknown-linux-gnu = "cb387b33f097fe9e2c64dd1d3a18200dc36910124eb2aa121b8e406344fb972d"; + loongarch64-unknown-linux-musl = "72ff7e74b93cb78ecb4109dbded6cc50d1a22d8a2c89d6b7ca74e33878b2a5f9"; + x86_64-unknown-freebsd = "ae86ea93813f33003fc329b404bcd9343502621a7a6a0a6f758bfcd16a1f5d87"; }; selectRustPackage = pkgs: pkgs.rust_1_99; @@ -93,7 +94,7 @@ import ./default.nix ( removeAttrs args [ - "llvmPackages" + "llvmPackages_23" "llvm" "wrapCCWith" "overrideCC" diff --git a/pkgs/development/compilers/rust/cargo.nix b/pkgs/development/compilers/rust/cargo.nix index 64aa7d9cffd2..5155e41c4578 100644 --- a/pkgs/development/compilers/rust/cargo.nix +++ b/pkgs/development/compilers/rust/cargo.nix @@ -10,6 +10,8 @@ openssl, cmake, zlib, + libgit2, + sqlite, installShellFiles, makeWrapper, rustPlatform, @@ -54,6 +56,8 @@ rustPlatform.buildRustPackage.override python3 openssl zlib + libgit2 + sqlite ]; env = { diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index a2cfbe1b4a9f..9bfca82c9eee 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -268,10 +268,6 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals stdenv.targetPlatform.rust.isNoStdTarget [ "--disable-docs" ] - ++ optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # https://github.com/rust-lang/rust/issues/92173 - "--set=rust.jemalloc" - ] ++ optionals (useLLVM && !stdenv.targetPlatform.isFreeBSD) [ # https://github.com/NixOS/nixpkgs/issues/311930 "--llvm-libunwind=${if withBundledLLVM then "in-tree" else "system"}" @@ -355,11 +351,6 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace compiler/rustc_codegen_ssa/src/back/link.rs \ --replace-fail "/usr/bin/strip" "${lib.getExe' llvmShared "llvm-strip"}" '' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - # See https://github.com/jemalloc/jemalloc/issues/1997 - # Using a value of 48 should work on both emulated and native x86_64-darwin. - export JEMALLOC_SYS_WITH_LG_VADDR=48 - '' + lib.optionalString (!(finalAttrs.src.passthru.isReleaseTarball or false)) '' mkdir .cargo cat > .cargo/config.toml <<\EOF diff --git a/pkgs/development/compilers/rust/rustfmt.nix b/pkgs/development/compilers/rust/rustfmt.nix index 20707b693088..3fcac4ce2c08 100644 --- a/pkgs/development/compilers/rust/rustfmt.nix +++ b/pkgs/development/compilers/rust/rustfmt.nix @@ -12,6 +12,8 @@ rustPlatform.buildRustPackage { pname = "rustfmt" + lib.optionalString asNightly "-nightly"; inherit (rustc) version src; + __structuredAttrs = true; + # the rust source tarball already has all the dependencies vendored, no need to fetch them again cargoVendorDir = "vendor"; buildAndTestSubdir = "src/tools/rustfmt"; diff --git a/pkgs/development/compilers/sbcl/default.nix b/pkgs/development/compilers/sbcl/default.nix index 6bb6cb08ce1b..b38d56a691dd 100644 --- a/pkgs/development/compilers/sbcl/default.nix +++ b/pkgs/development/compilers/sbcl/default.nix @@ -30,8 +30,8 @@ let "2.4.6".sha256 = "sha256-pImQeELa4JoXJtYphb96VmcKrqLz7KH7cCO8pnw/MJE="; # By unofficial and very loose convention we keep the latest version of # SBCL, and the previous one in case someone quickly needs to roll back. - "2.6.7".sha256 = "sha256-Hr3DXJ3I4nG4zRrESWXgC/JV+cAiFlD8t38Ps0wtOt4="; "2.6.8".sha256 = "sha256-rVEm39+6XbJ+53vMJYkwIP5SLQt2U9RbTEeVrePdwj0="; + "2.6.9".sha256 = "sha256-xv0dc1Vw60/zTK+WCZiMp37QvRK1XQmk/tB1vokNpRM="; }; # Collection of pre-built SBCL binaries for platforms that need them for # bootstrapping. Ideally these are to be avoided. If ECL (or any other @@ -256,11 +256,6 @@ stdenv.mkDerivation (finalAttrs: { # Fails to find `O_LARGEFILE` otherwise. env.NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; - # Set minimum macOS version to 10.12 for x86_64-darwin to support clock_gettime() - env.SBCL_MACOSX_VERSION_MIN = lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 - ) "10.12"; - buildPhase = '' runHook preBuild @@ -271,11 +266,7 @@ stdenv.mkDerivation (finalAttrs: { runHook postBuild ''; - # Tests on ofBorg’s x86_64-darwin platforms are so unstable that a random one - # will fail every other run. There’s a deeper problem here; we might as well - # disable them entirely so at least the other platforms get to benefit from - # testing. - doCheck = stdenv.hostPlatform.system != "x86_64-darwin"; + doCheck = true; # From the INSTALL docs checkPhase = '' @@ -322,8 +313,6 @@ stdenv.mkDerivation (finalAttrs: { }; meta = { - # Broken since 2025-09-05 https://hydra.nixos.org/job/nixpkgs/staging-next/sbcl.x86_64-darwin - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; description = "Common Lisp compiler"; homepage = "https://sbcl.org"; license = lib.licenses.publicDomain; # and FreeBSD diff --git a/pkgs/development/compilers/swift/by-name/fe/fetchSwiftPMDeps/package.nix b/pkgs/development/compilers/swift/by-name/fe/fetchSwiftPMDeps/package.nix index 3a6301fa0203..80f05b6f7951 100644 --- a/pkgs/development/compilers/swift/by-name/fe/fetchSwiftPMDeps/package.nix +++ b/pkgs/development/compilers/swift/by-name/fe/fetchSwiftPMDeps/package.nix @@ -84,10 +84,10 @@ runCommand "${name}-vendor" "basedOn": { "basedOn": null, "packageRef": { - "identity": .identity, + "identity": .location | sub("\\.git$"; "") | split("/")[-1], "kind": .kind, "location": .location, - "name": .location | sub("\\.git$"; "") | split("/")[-1] + "name": .identity }, "state": { "checkoutState": .state, @@ -96,10 +96,10 @@ runCommand "${name}-vendor" "subpath": .location | sub("\\.git$"; "") | split("/")[-1] }, "packageRef": { - "identity": .identity, + "identity": .location | sub("\\.git$"; "") | split("/")[-1], "kind": .kind, "location": .location, - "name": .location | sub("\\.git$"; "") | split("/")[-1] + "name": .identity }, "state": { "name": "edited", diff --git a/pkgs/development/compilers/swift/by-name/in/indexstore-db/files/IndexStoreDBConfig.cmake b/pkgs/development/compilers/swift/by-name/in/indexstore-db/files/IndexStoreDBConfig.cmake new file mode 100644 index 000000000000..c755f6384fb5 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/in/indexstore-db/files/IndexStoreDBConfig.cmake @@ -0,0 +1,7 @@ +if (NOT TARGET IndexStoreDB) + add_library(IndexStoreDB @buildType@ IMPORTED) + set_target_properties(IndexStoreDB PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}IndexStoreDB${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/in/indexstore-db/package.nix b/pkgs/development/compilers/swift/by-name/in/indexstore-db/package.nix new file mode 100644 index 000000000000..528a9fc43a45 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/in/indexstore-db/package.nix @@ -0,0 +1,101 @@ +{ + lib, + cmake, + fetchFromGitHub, + fixUnhelpfulCmakeRpathsHook, + ninja, + stdenv, + swift, + swift-collections, + swift-corelibs-foundation, + swift-corelibs-libdispatch, + swift-foundation, + swift-foundation-icu, + swift-lmdb, + swift_sources, + swift_release, +}: + +let + swiftPlatform = stdenv.hostPlatform.swift.platform; + + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; +in + +stdenv.mkDerivation (finalAttrs: { + pname = "indexstore-db"; + version = swift_release; + + outputs = [ + "out" + "dev" + ]; + + src = fetchFromGitHub { + owner = "swiftlang"; + repo = "indexstore-db"; + tag = "swift-${finalAttrs.version}-RELEASE"; + inherit (swift_sources.indexstore-db) hash; + }; + + patches = [ ./patches/0001-gnu-install-dirs.patch ]; + + strictDeps = true; + + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) ]; + + preConfigure = '' + appendToVar cmakeFlags -DCMAKE_Swift_COMPILER_TARGET=${stdenv.hostPlatform.swift.triple} + appendToVar cmakeFlags -DCMAKE_Swift_FLAGS=-module-cache-path\ "$NIX_BUILD_TOP/module-cache" + ''; + + nativeBuildInputs = [ + cmake + ninja + swift' + fixUnhelpfulCmakeRpathsHook + ]; + + buildInputs = [ + swift-collections + swift-lmdb + ] + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + swift-corelibs-foundation + swift-corelibs-libdispatch + swift-foundation + ]; + + postInstall = + lib.optionalString stdenv.hostPlatform.isDarwin '' + mv "$out/lib/swift/darwin" "$out/lib/swift/${swiftPlatform}" + '' + + '' + moveToOutput lib/swift/${swiftPlatform} "$dev" + + # Install CMake config file for the IndexStoreDB library. + mkdir -p "''${!outputDev}/lib/cmake/IndexStoreDB" + substitute ${./files/IndexStoreDBConfig.cmake} "''${!outputDev}/lib/cmake/IndexStoreDB/IndexStoreDBConfig.cmake" \ + --replace-fail '@buildType@' ${if stdenv.hostPlatform.isStatic then "STATIC" else "SHARED"} \ + --replace-fail '@dev@' "''${!outputDev}" \ + --replace-fail '@lib@' "''${!outputLib}" \ + --replace-fail '@swiftPlatform@' ${swiftPlatform} + '' + + lib.optionalString stdenv.hostPlatform.isElf '' + patchelf "''${!outputLib}/lib/libIndexStoreDB.so" \ + --add-rpath ${lib.escapeShellArg (lib.makeLibraryPath [ swift-lmdb ])} + ''; + + __structuredAttrs = true; + + meta = { + homepage = "https://github.com/swiftlang/indexstore-db"; + description = "Index database library used by SourceKit-LSP"; + platforms = lib.platforms.darwin ++ lib.platforms.linux; + license = lib.licenses.asl20; + teams = [ lib.teams.swift ]; + }; +}) diff --git a/pkgs/development/compilers/swift/by-name/in/indexstore-db/patches/0001-gnu-install-dirs.patch b/pkgs/development/compilers/swift/by-name/in/indexstore-db/patches/0001-gnu-install-dirs.patch new file mode 100644 index 000000000000..1ab9898f458c --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/in/indexstore-db/patches/0001-gnu-install-dirs.patch @@ -0,0 +1,28 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Fri, 9 Oct 2026 14:37:23 -0400 +Subject: [PATCH] gnu-install-dirs + +--- + Sources/IndexStoreDB/CMakeLists.txt | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Sources/IndexStoreDB/CMakeLists.txt b/Sources/IndexStoreDB/CMakeLists.txt +index cdc008c..86e65a8 100644 +--- a/Sources/IndexStoreDB/CMakeLists.txt ++++ b/Sources/IndexStoreDB/CMakeLists.txt +@@ -25,8 +25,8 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin) + endif() + + install(TARGETS IndexStoreDB +- ARCHIVE DESTINATION lib/swift$<$>:_static>/$ +- LIBRARY DESTINATION lib/swift$<$>:_static>/$ +- RUNTIME DESTINATION bin) ++ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" ++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ++ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") + install_swiftmodule(IndexStoreDB) + set_property(GLOBAL APPEND PROPERTY IndexStoreDB_EXPORTS IndexStoreDB) +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/package.nix b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/package.nix index 261169c3086f..9e7f80e4b4c2 100644 --- a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/package.nix +++ b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/package.nix @@ -29,7 +29,17 @@ let # The patch needs slightly tweaked to apply to Swift’s LLDB fork. "lldb/backport-ParseTrieEntries-fixes.patch" = [ { path = ./patches; } ]; # Update backport of the Darwin triple changes for macOS 27. - "llvm/backport-darwin-triple-parsing.patch" = [ { path = ./patches; } ]; + "llvm/backport-darwin-triple-parsing.patch" = [ + { + before = "21"; + path = ./patches/19; + } + # This is an empty patch because Swift’s LLVM 21 fork already has this change. + { + after = "21"; + path = ./patches/21; + } + ]; # Backport support for arm64e.x1, the new cpu subtype for A20 and M6 "llvm/backport-minimal-arm64e_x1-support.patch" = [ { @@ -52,11 +62,13 @@ let llvmPackages = llvmPackages_19; patchOverrides = basePatchOverrides; }; - "6.3.3" = { + "6.4.0" = { swiftLlvmVersion = "21.0.0"; # From https://github.com/swiftlang/swift/blob/swift-$swiftVersion-RELEASE/utils/build_swift/build_swift/defaults.py#L51 llvmVersion = "21.1.6"; # From https://github.com/swiftlang/llvm-project/blob/swift-$swiftVersion-RELEASE/cmake/Modules/LLVMVersion.cmake llvmPackages = llvmPackages_21; patchOverrides = basePatchOverrides // { + # This is an empty patch because Swift’s LLVM fork already has this change. + "llvm/get-rid-of-incorrect-std-template-specializations.patch" = [ { path = ./patches/21; } ]; # Swift’s LLVM fork needs to use `sys::path::make_absolute` instead of `sys::fs::make_absolute`. "llvm/gnu-install-dirs.patch" = [ { path = ./patches/21; } ]; # This is an empty patch because Swift’s LLVM fork already has this change. @@ -143,6 +155,16 @@ let } ); + lld = prev.lld.overrideAttrs (old: { + patches = + (old.patches or [ ]) + # Don’t apply the patch to upstream LLVM. It doesn’t apply. + ++ lib.optionals (old.version != lib.getVersion llvmPackages.lld) [ + # This was disabled for apparently political reasons. LLD works fine on Darwin. + ./patches/lld/0001-Revert-lld-Disable-ability-to-link-Mach-O-for-Darwin.patch + ]; + }); + lldb = let python3-with-distutils = python3.withPackages (pkgs: [ pkgs.distutils ]); @@ -153,9 +175,9 @@ let # consists of only one path (and is not a list). It needs to point to the stdlib. ./patches/lldb/0001-Set-stdlib-path-on-Linux.patch # Otherwise, linking `lldb-server` fails with a missing symbol error on Linux. - ./patches/${lib.versions.major final.release_version}/lldb/0002-Link-lldb-server-to-swiftCore.patch + ./patches/lldb/0002-Link-lldb-server-to-swiftCore.patch # Don’t resolve the liblldb symlink to help it find the Swift toolchain that it’s linked into. - ./patches/${lib.versions.major final.release_version}/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch + ./patches/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch # Darwin needs to find the path to LLDB via the main executable because dyld always resolves symlinks # when loading dylibs from disk. ./patches/lldb/0004-Use-the-LLDB-executable-path-to-find-the-stdlib.patch diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/lldb/0002-Link-lldb-server-to-swiftCore.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/lldb/0002-Link-lldb-server-to-swiftCore.patch deleted file mode 100644 index a058fb4b327e..000000000000 --- a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/lldb/0002-Link-lldb-server-to-swiftCore.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Wed, 22 Jul 2026 21:02:05 -0400 -Subject: [PATCH 2/4] Link lldb-server to swiftCore - -Fixes a missing symbol error when linking lldb-server on Linux: - - ld.bfd: /lib/libswiftASTGen.a(LexicalLookup.swift.o): undefined reference to symbol '$ss10SetAlgebraP9formUnionyyxnFTq' - ld.bfd: /lib/libswiftCore.so: error adding symbols: DSO missing from command line ---- - tools/lldb-server/CMakeLists.txt | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tools/lldb-server/CMakeLists.txt b/tools/lldb-server/CMakeLists.txt -index 4ac3fddf2b53..6c2603626e44 100644 ---- a/tools/lldb-server/CMakeLists.txt -+++ b/tools/lldb-server/CMakeLists.txt -@@ -55,6 +55,7 @@ add_lldb_tool(lldb-server - lldbPluginInstructionMIPS64 - lldbPluginInstructionRISCV - ${LLDB_SYSTEM_LIBS} -+ swiftCore - - LINK_COMPONENTS - Option --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch deleted file mode 100644 index 2bd1bb7172af..000000000000 --- a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch +++ /dev/null @@ -1,92 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Wed, 5 Aug 2026 07:36:33 -0400 -Subject: [PATCH 3/4] =?UTF-8?q?Don=E2=80=99t=20follow=20symlinks=20when=20?= - =?UTF-8?q?finding=20liblldb?= -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Various dependencies are symlinked together into the Swift toolchain in -Nixpkgs. If LLDB resolves the location of liblldb, it will always find -it in the LLDB derivation’s output, which prevents finding the Swift -toolchain when running the Swift REPL. ---- - include/lldb/Host/Host.h | 2 +- - source/Host/common/Host.cpp | 6 ++++-- - source/Host/common/HostInfoBase.cpp | 6 +++++- - source/Host/windows/Host.cpp | 2 +- - 4 files changed, 11 insertions(+), 5 deletions(-) - -diff --git a/include/lldb/Host/Host.h b/include/lldb/Host/Host.h -index 23d5383163ff..4a17900be75d 100644 ---- a/include/lldb/Host/Host.h -+++ b/include/lldb/Host/Host.h -@@ -120,7 +120,7 @@ public: - /// \b A file spec with the module that contains \a host_addr, - /// which may be invalid if \a host_addr doesn't fall into - /// any valid module address range. -- static FileSpec GetModuleFileSpecForHostAddress(const void *host_addr); -+ static FileSpec GetModuleFileSpecForHostAddress(const void *host_addr, bool resolvePath = true); - - /// If you have an executable that is in a bundle and want to get back to - /// the bundle directory from the path itself, this function will change a -diff --git a/source/Host/common/Host.cpp b/source/Host/common/Host.cpp -index 04380c6255f1..2510f2d7b54e 100644 ---- a/source/Host/common/Host.cpp -+++ b/source/Host/common/Host.cpp -@@ -344,14 +344,16 @@ bool Host::ResolveExecutableInBundle(FileSpec &file) { return false; } - - #ifndef _WIN32 - --FileSpec Host::GetModuleFileSpecForHostAddress(const void *host_addr) { -+FileSpec Host::GetModuleFileSpecForHostAddress(const void *host_addr, bool resolvePath) { - FileSpec module_filespec; - #if !defined(__ANDROID__) - Dl_info info; - if (::dladdr(host_addr, &info)) { - if (info.dli_fname) { - module_filespec.SetFile(info.dli_fname, FileSpec::Style::native); -- FileSystem::Instance().Resolve(module_filespec); -+ if (resolvePath) { -+ FileSystem::Instance().Resolve(module_filespec); -+ } - } - } - #endif -diff --git a/source/Host/common/HostInfoBase.cpp b/source/Host/common/HostInfoBase.cpp -index 5c44c2f38b28..cb10bded1470 100644 ---- a/source/Host/common/HostInfoBase.cpp -+++ b/source/Host/common/HostInfoBase.cpp -@@ -249,10 +249,14 @@ bool HostInfoBase::ComputeSharedLibraryDirectory(FileSpec &file_spec) { - // On other posix systems, we will get .../lib(64|32)?/liblldb.so. - - FileSpec lldb_file_spec(Host::GetModuleFileSpecForHostAddress( -- reinterpret_cast(HostInfoBase::ComputeSharedLibraryDirectory))); -+ reinterpret_cast(HostInfoBase::ComputeSharedLibraryDirectory), /* resolvePath */ false)); - -+// If g_shlib_dir_helper is set on Linux, it will resolve the symlink, which we don’t want. -+// Getting the shared library where it is saves ~280 MiB of toolchain closure size. -+#ifdef _WIN32 - if (g_shlib_dir_helper) - g_shlib_dir_helper(lldb_file_spec); -+#endif - - // Remove the filename so that this FileSpec only represents the directory. - file_spec.SetDirectory(lldb_file_spec.GetDirectory()); -diff --git a/source/Host/windows/Host.cpp b/source/Host/windows/Host.cpp -index e8973a3fb937..5955cf742059 100644 ---- a/source/Host/windows/Host.cpp -+++ b/source/Host/windows/Host.cpp -@@ -113,7 +113,7 @@ void Host::Kill(lldb::pid_t pid, int signo) { - - const char *Host::GetSignalAsCString(int signo) { return NULL; } - --FileSpec Host::GetModuleFileSpecForHostAddress(const void *host_addr) { -+FileSpec Host::GetModuleFileSpecForHostAddress(const void *host_addr, bool resolvePath) { - FileSpec module_filespec; - - HMODULE hmodule = NULL; --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/llvm/backport-darwin-triple-parsing.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/llvm/backport-darwin-triple-parsing.patch similarity index 100% rename from pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/llvm/backport-darwin-triple-parsing.patch rename to pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/19/llvm/backport-darwin-triple-parsing.patch diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/lldb/0004-Use-the-LLDB-executable-path-to-find-the-stdlib.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/lldb/0004-Use-the-LLDB-executable-path-to-find-the-stdlib.patch deleted file mode 100644 index c80b9baf31f7..000000000000 --- a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/lldb/0004-Use-the-LLDB-executable-path-to-find-the-stdlib.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sat, 5 Sep 2026 08:24:48 -0400 -Subject: [PATCH 4/5] Use the LLDB executable path to find the stdlib - -dyld always resolves symlinks when loading an image, which prevents -`GetModuleFileSpecForHostAddress` from returning the unresolved path to -`liblldb.dylib`. We could break the symlink by copying the dylib, but -that would make the closure much larger. Fortunately, we can use the -path of the LLDB executable, which will need to be copied into the -toolchain anyway for other reasons. ---- - source/Host/macosx/objcxx/HostInfoMacOSXSwift.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/source/Host/macosx/objcxx/HostInfoMacOSXSwift.cpp b/source/Host/macosx/objcxx/HostInfoMacOSXSwift.cpp -index 243ca53aa080..080bc9c49d7a 100644 ---- a/source/Host/macosx/objcxx/HostInfoMacOSXSwift.cpp -+++ b/source/Host/macosx/objcxx/HostInfoMacOSXSwift.cpp -@@ -79,8 +79,8 @@ FileSpec HostInfoMacOSX::GetSwiftResourceDir() { - static std::once_flag g_once_flag; - static FileSpec g_swift_resource_dir; - std::call_once(g_once_flag, []() { -- FileSpec lldb_file_spec = HostInfo::GetShlibDir(); -- ComputeSwiftResourceDirectory(lldb_file_spec, g_swift_resource_dir, true); -+ auto exe_path = HostInfoMacOSX::GetProgramFileSpec().CopyByRemovingLastPathComponent(); -+ ComputeSwiftResourceDirectory(exe_path, g_swift_resource_dir, true); - Log *log = GetLog(LLDBLog::Host); - LLDB_LOG(log, "swift dir -> '{0}'", g_swift_resource_dir); - }); --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/llvm/backport-darwin-triple-parsing.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/llvm/backport-darwin-triple-parsing.patch new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/llvm/get-rid-of-incorrect-std-template-specializations.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/llvm/get-rid-of-incorrect-std-template-specializations.patch new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/lld/0001-Revert-lld-Disable-ability-to-link-Mach-O-for-Darwin.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/lld/0001-Revert-lld-Disable-ability-to-link-Mach-O-for-Darwin.patch new file mode 100644 index 000000000000..bda71d44ea10 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/lld/0001-Revert-lld-Disable-ability-to-link-Mach-O-for-Darwin.patch @@ -0,0 +1,30 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Thu, 8 Oct 2026 06:59:52 -0400 +Subject: [PATCH] Revert "[lld] Disable ability to link Mach-O for Darwin + platforms (but not non-Darwin firmware) in Swift LLVM fork" + +This reverts commit 79631f818de615b6ea6655f2f6ccf592fef8cf1b. +--- + MachO/InputFiles.cpp | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/MachO/InputFiles.cpp b/MachO/InputFiles.cpp +index 4e61064afeef..3b3023a94166 100644 +--- a/MachO/InputFiles.cpp ++++ b/MachO/InputFiles.cpp +@@ -155,11 +155,6 @@ static bool checkCompatibility(const InputFile *input) { + if (platformInfos.empty()) + return true; + +- // Swift LLVM fork downstream change start +- error("This version of lld does not support linking for platform " + getPlatformName(platformInfos.front().target.Platform)); +- return false; +- // Swift LLVM fork downstream change end +- + auto it = find_if(platformInfos, [&](const PlatformInfo &info) { + return removeSimulator(info.target.Platform) == + removeSimulator(config->platform()); +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/lldb/0002-Link-lldb-server-to-swiftCore.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/lldb/0002-Link-lldb-server-to-swiftCore.patch similarity index 100% rename from pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/lldb/0002-Link-lldb-server-to-swiftCore.patch rename to pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/lldb/0002-Link-lldb-server-to-swiftCore.patch diff --git a/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch b/pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch similarity index 100% rename from pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/21/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch rename to pkgs/development/compilers/swift/by-name/ll/llvmPackages/patches/lldb/0003-Don-t-follow-symlinks-when-finding-liblldb.patch diff --git a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/Package.resolved b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/Package.resolved deleted file mode 100644 index bb5e1a2fa584..000000000000 --- a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/Package.resolved +++ /dev/null @@ -1,204 +0,0 @@ -{ - "originHash" : "b58ae896243a3a46da20f874853ae8db67bfc6fbd93d54c9607f4ffa3ff1d020", - "pins" : [ - { - "identity" : "indexstore-db", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/indexstore-db.git", - "state" : { - "branch" : "release/6.3", - "revision" : "003ac41513ba291f10ff1a0147ae68588914668d" - } - }, - { - "identity" : "swift-argument-parser", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-argument-parser.git", - "state" : { - "revision" : "6a52f3251125d74daf04fcbd5e6f08a75d074382", - "version" : "1.8.2" - } - }, - { - "identity" : "swift-asn1", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-asn1.git", - "state" : { - "revision" : "3b6410f7dee09eb33cdd26260c5fd47fda19b0e2", - "version" : "1.7.3" - } - }, - { - "identity" : "swift-atomics", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-atomics.git", - "state" : { - "revision" : "0442cb5a3f98ab802acb777929fdb446bda11a34", - "version" : "1.3.1" - } - }, - { - "identity" : "swift-certificates", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-certificates.git", - "state" : { - "branch" : "1.10.1", - "revision" : "386001a92200c70fd06217b3ccad58d7226edb84" - } - }, - { - "identity" : "swift-cmark", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-cmark.git", - "state" : { - "branch" : "gfm", - "revision" : "0c8947bbd58c491c54aae114aca40621cddc8357" - } - }, - { - "identity" : "swift-collections", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-collections.git", - "state" : { - "branch" : "1.1.6", - "revision" : "c11818f3cae0780656baa430b49e7f163f08dffd" - } - }, - { - "identity" : "swift-crypto", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-crypto.git", - "state" : { - "branch" : "3.12.5", - "revision" : "d79c573e1b400d670ed12c0cb29d33f2c0f5ab70" - } - }, - { - "identity" : "swift-docc", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-docc.git", - "state" : { - "branch" : "release/6.3", - "revision" : "4c926bd9bd9038212a63f85978dab7825accb16d" - } - }, - { - "identity" : "swift-docc-symbolkit", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-docc-symbolkit.git", - "state" : { - "branch" : "release/6.3", - "revision" : "89e737aca30bd42a9f7e114e609884267ea6aabe" - } - }, - { - "identity" : "swift-driver", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-driver.git", - "state" : { - "branch" : "release/6.3", - "revision" : "7d6b844f0c2497a997770a11536598b187066be9" - } - }, - { - "identity" : "swift-format", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-format.git", - "state" : { - "branch" : "release/6.3", - "revision" : "2e80d506509d17bec8d459752a57bb05039e100d" - } - }, - { - "identity" : "swift-llbuild", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-llbuild.git", - "state" : { - "branch" : "release/6.3", - "revision" : "e38525ae3519021f014ad91e7bf86e7ae86044f5" - } - }, - { - "identity" : "swift-lmdb", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-lmdb.git", - "state" : { - "branch" : "release/6.3", - "revision" : "1ad9a2d80b6fcde498c2242f509bd1be7d667ff8" - } - }, - { - "identity" : "swift-markdown", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-markdown.git", - "state" : { - "branch" : "release/6.3", - "revision" : "de3e245b6044386b623ecce11d1ccb5fe766e3db" - } - }, - { - "identity" : "swift-nio", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-nio.git", - "state" : { - "revision" : "21de5f08c1a166a6dd293d0e587ad977bf8dac5d", - "version" : "2.103.0" - } - }, - { - "identity" : "swift-package-manager", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-package-manager.git", - "state" : { - "branch" : "release/6.3", - "revision" : "f096e728bff0aa5449b0fcf7ab4619472d968e1c" - } - }, - { - "identity" : "swift-syntax", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-syntax.git", - "state" : { - "branch" : "release/6.3", - "revision" : "79e4b74a295b6eb74a8b585e3a39d29e70c1dbd1" - } - }, - { - "identity" : "swift-system", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-system.git", - "state" : { - "branch" : "1.5.0", - "revision" : "61e4ca4b81b9e09e2ec863b00c340eb13497dac6" - } - }, - { - "identity" : "swift-toolchain-sqlite", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-toolchain-sqlite.git", - "state" : { - "branch" : "1.0.7", - "revision" : "b45b80b943e88db3cb8ddea798fa3fa9912375ff" - } - }, - { - "identity" : "swift-tools-protocols", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-tools-protocols.git", - "state" : { - "revision" : "f86b413a803761408e5e718912c46d75a340801b", - "version" : "0.0.9" - } - }, - { - "identity" : "swift-tools-support-core", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-tools-support-core.git", - "state" : { - "branch" : "release/6.3", - "revision" : "44be92e627f754f593ca99f1b0c982e389e9bb20" - } - } - ], - "version" : 3 -} diff --git a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/package.nix b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/package.nix index 3ceac0465b0a..ddbb430cab82 100644 --- a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/package.nix +++ b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/package.nix @@ -1,20 +1,59 @@ { lib, + cmake, fetchFromGitHub, - fetchSwiftPMDeps, - llvmPackages, - ncurses, - pkg-config, - replaceVars, - sqlite, + indexstore-db, + ninja, stdenv, swift, + swift-argument-parser, + swift-asn1, + swift-collections, + swift-corelibs-foundation, swift-corelibs-libdispatch, + swift-crypto, + swift-foundation, + swift-foundation-icu, + swift-llbuild, + swift-lmdb, + swift-syntax, + swift-tools-protocols, + swift-tools-support-core, swiftpm, + versionCheckHook, swift_release, swift_sources, }: +let + rpaths = [ + indexstore-db + swift-argument-parser + swift-asn1 + swift-collections + swift-crypto + swift-llbuild + swift-lmdb + swift-syntax-no-toolchain + swift-tools-protocols + swift-tools-support-core + swiftpm + ] + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + swift-corelibs-foundation + swift-corelibs-libdispatch + swift-foundation + swift-foundation-icu + ]; + + swift-syntax-no-toolchain = swift-syntax.override { useToolchainLibraries = false; }; + + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; +in + stdenv.mkDerivation (finalAttrs: { pname = "sourcekit-lsp"; version = swift_release; @@ -30,59 +69,77 @@ stdenv.mkDerivation (finalAttrs: { # We can’t use the XCTest framework on Darwin and have to use swift-corelibs-xctest. Patch the `PerfTestCase` # base class to build with it on Darwin. ./patches/0001-Fix-for-using-swift-corelibs-xctest-on-Darwin.patch - # SourceKit-LSP tries to load IndexStore from the toolchain, but we want to load it from the store directly instead. - (replaceVars ./patches/0002-Load-IndexStore-from-the-store.patch { - libclang = lib.getLib llvmPackages.libclang; - }) + # A couple of required libraries are missing from the `CMakeLists.txt` files. + ./patches/0002-add-missing-libraries.patch ]; - # The SwiftPM patches can’t be included in the swiftpmDeps FOD because they reference store paths. - swiftpmPatches = swiftpm.patches; + postPatch = + # Make the build complain loudly when a dependency is not available. + '' + substituteInPlace CMakeLists.txt \ + --replace-fail QUIET REQUIRED - postPatch = '' - packagesPath=$(readlink -f Packages) - - rm Packages - cp -r "$packagesPath" Packages - chmod -R u+w Packages/swift-package-manager - - for p in "''${swiftpmPatches[@]}"; do - # Don’t apply the backdeploy patch because it creates a link to the Swift toolchain, - # which bloats up the SourceKit-LSP closure quite significantly. - if ! [[ $p =~ fix-backdeploy-rpath\.patch ]]; then - echo "applying patch $p" - patch -d Packages/swift-package-manager -p1 < "$p" - fi - done - ''; - - swiftpmDeps = fetchSwiftPMDeps { - inherit (finalAttrs) pname version src; - inherit (swift_sources.sourcekit-lsp.swiftpmDeps) hash; - - # Upstream doesn’t provide `Package.resolved`. - postPatch = '' - ln -s ${./Package.resolved} Package.resolved + # Except for dispatch and Foundation, which are part of the SDK on Darwin. + substituteInPlace CMakeLists.txt \ + --replace-fail 'dispatch REQUIRED' 'dispatch QUIET' \ + --replace-fail 'Foundation REQUIRED' 'Foundation QUIET' ''; - }; strictDeps = true; + preConfigure = '' + appendToVar cmakeFlags -DCMAKE_Swift_COMPILER_TARGET=${stdenv.hostPlatform.swift.triple} + appendToVar cmakeFlags -DCMAKE_Swift_FLAGS=-module-cache-path\ "$NIX_BUILD_TOP/module-cache" + ''; + nativeBuildInputs = [ - pkg-config - swift - swiftpm + cmake + ninja + swift' ]; buildInputs = [ - ncurses - sqlite + indexstore-db + swift-argument-parser + swift-asn1 + swift-collections + swift-crypto + swift-llbuild + swift-lmdb + swift-syntax-no-toolchain + swift-tools-protocols + swift-tools-support-core + swiftpm ] - ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ swift-corelibs-libdispatch ]; + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + swift-corelibs-foundation + swift-corelibs-libdispatch + swift-foundation + swift-foundation-icu + ]; # Tests crash with `*** bit out of range 0 - FD_SETSIZE on fd_set ***: terminated` doCheck = false; # !stdenv.hostPlatform.isDarwin; + postInstall = + # Add missing rpaths. + lib.optionalString stdenv.hostPlatform.isElf '' + for output in "''${outputs[@]}"; do + while IFS= read -d "" f; do + if isELF "$f"; then + patchelf --add-rpath ${lib.escapeShellArg (lib.makeLibraryPath rpaths)} "$f" + fi + done < <(find "$output" -type f -print0) + done + ''; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + versionCheckProgramArg = "--help"; + preVersionCheck = "version='OVERVIEW: Language Server Protocol implementation'"; + + doInstallCheck = true; + __structuredAttrs = true; meta = { diff --git a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0001-Fix-for-using-swift-corelibs-xctest-on-Darwin.patch b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0001-Fix-for-using-swift-corelibs-xctest-on-Darwin.patch index c137baa63833..4b06a82e1634 100644 --- a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0001-Fix-for-using-swift-corelibs-xctest-on-Darwin.patch +++ b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0001-Fix-for-using-swift-corelibs-xctest-on-Darwin.patch @@ -10,10 +10,10 @@ logic as other platforms to define the base class for performance tests. 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SKTestSupport/PerfTestCase.swift b/Sources/SKTestSupport/PerfTestCase.swift -index ba716c49..5b5cfccc 100644 +index ad08c346..256dea1b 100644 --- a/Sources/SKTestSupport/PerfTestCase.swift +++ b/Sources/SKTestSupport/PerfTestCase.swift -@@ -23,7 +23,7 @@ open class PerfTestCase: XCTestCase { +@@ -23,7 +23,7 @@ open class PerfTestCase: SourceKitLSPTestCase { #if !ENABLE_PERF_TESTS diff --git a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0002-Load-IndexStore-from-the-store.patch b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0002-Load-IndexStore-from-the-store.patch deleted file mode 100644 index 6db9a823c638..000000000000 --- a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0002-Load-IndexStore-from-the-store.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sat, 11 Jul 2026 16:07:13 -0400 -Subject: [PATCH 2/2] Load IndexStore from the store - ---- - Sources/ToolchainRegistry/Toolchain.swift | 7 ++----- - Tests/ToolchainRegistryTests/ToolchainRegistryTests.swift | 7 +------ - 2 files changed, 3 insertions(+), 11 deletions(-) - -diff --git a/Sources/ToolchainRegistry/Toolchain.swift b/Sources/ToolchainRegistry/Toolchain.swift -index f726ebfe..a3a6fb44 100644 ---- a/Sources/ToolchainRegistry/Toolchain.swift -+++ b/Sources/ToolchainRegistry/Toolchain.swift -@@ -395,11 +395,8 @@ public final class Toolchain: Sendable { - foundAny = true - } - -- #if os(Windows) -- let libIndexStorePath = binPath.appending(component: "libIndexStore\(dylibExtension)") -- #else -- let libIndexStorePath = libPath.appending(component: "libIndexStore\(dylibExtension)") -- #endif -+ let libIndexStorePath = URL(filePath: "@libclang@").appending(components: "lib", "libIndexStore\(dylibExtension)") -+ - if FileManager.default.isFile(at: libIndexStorePath) { - libIndexStore = libIndexStorePath - foundAny = true -diff --git a/Tests/ToolchainRegistryTests/ToolchainRegistryTests.swift b/Tests/ToolchainRegistryTests/ToolchainRegistryTests.swift -index 25e07743..b240b53a 100644 ---- a/Tests/ToolchainRegistryTests/ToolchainRegistryTests.swift -+++ b/Tests/ToolchainRegistryTests/ToolchainRegistryTests.swift -@@ -747,11 +747,6 @@ private func makeToolchain( - #endif - } - if libIndexStore { -- #if os(Windows) -- // Windows has a prefix of `lib` on this particular library ... -- try Data().write(to: binPath.appending(component: "libIndexStore\(dylibSuffix)")) -- #else -- try Data().write(to: libPath.appending(component: "libIndexStore\(dylibSuffix)")) -- #endif -+ try Data().write(to: URL(filePath: "@libclang@").appending(components: "lib", "libIndexStore\(dylibSuffix)")) - } - } --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0002-add-missing-libraries.patch b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0002-add-missing-libraries.patch new file mode 100644 index 000000000000..7271b3817118 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/so/sourcekit-lsp/patches/0002-add-missing-libraries.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Fri, 9 Oct 2026 16:15:54 -0400 +Subject: [PATCH 2/2] add-missing-libraries + +--- + Sources/BuildServerIntegration/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Sources/BuildServerIntegration/CMakeLists.txt b/Sources/BuildServerIntegration/CMakeLists.txt +index b3ab347d..4cac13f1 100644 +--- a/Sources/BuildServerIntegration/CMakeLists.txt ++++ b/Sources/BuildServerIntegration/CMakeLists.txt +@@ -29,6 +29,10 @@ target_link_libraries(BuildServerIntegration PUBLIC + SwiftToolsProtocols::LanguageServerProtocol + SwiftToolsProtocols::LanguageServerProtocolTransport + SwiftToolsProtocols::SKLogging ++ SwiftCollections::DequeModule ++ SwiftCollections::OrderedCollections ++ llbuild ++ llbuildSwift + SKOptions + LanguageServerProtocolExtensions + SourceKitD +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/st/stdlib/package.nix b/pkgs/development/compilers/swift/by-name/st/stdlib/package.nix index e25b0241e6c7..e510eb16bc04 100644 --- a/pkgs/development/compilers/swift/by-name/st/stdlib/package.nix +++ b/pkgs/development/compilers/swift/by-name/st/stdlib/package.nix @@ -1,5 +1,6 @@ { lib, + createToolchainStubsHook, llvmPackages, llvmPackages_upstream, stdenv, @@ -11,6 +12,11 @@ let swiftPlatform = stdenv.hostPlatform.swift.platform; libraryExtension = stdenv.hostPlatform.extensions.library; + enableLTO = + # Swift 6.2 is used as a bootstrap compiler. Disable LTO for its stdlib to improve build time. + lib.versions.majorMinor swift_release != "6.2" + # Enabling LTO in the stdlib causes `swiftc` to crash in the `MandatoryAllocBoxToStack` pass on aarch64-linux + && !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); toolLTO = lib.cmakeFeature "SWIFT_TOOLS_ENABLE_LTO" "thin"; in (swiftc.override { @@ -32,11 +38,13 @@ in "dev" ]; + nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ createToolchainStubsHook ]; + cmakeFlags = # Only enable LTO for the stdlib. Remove it if it’s enabled for the tools. (lib.filter (flag: flag != toolLTO) (old.cmakeFlags or [ ])) # LTO is slow (and pointless due to using system libraries) on Darwin, so only enable it for other platforms. - ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + ++ lib.optionals (enableLTO && !stdenv.hostPlatform.isDarwin) [ (lib.cmakeFeature "SWIFT_STDLIB_ENABLE_LTO" "thin") ]; @@ -55,7 +63,7 @@ in mv -v "''${!outputLib}/lib/swift/${swiftPlatform}"/*${libraryExtension} "''${!outputLib}/lib" # Install C++ interop libraries and headers - cp -v lib/swift/${swiftPlatform}/libswiftCxx*${stdenv.hostPlatform.extensions.staticLibrary} "''${!outputDev}/lib" + cp -v lib/swift/${swiftPlatform}/libswiftCxx*${stdenv.hostPlatform.extensions.staticLibrary} "''${!outputDev}/lib/swift/${swiftPlatform}" cp -rv lib/swift/${swiftPlatform}/Cxx*.swiftmodule "''${!outputDev}/lib/swift/${swiftPlatform}" mkdir -p "''${!outputDev}/include/swiftToCxx" @@ -73,49 +81,59 @@ in '' # Convert LLVM bitcode files into native code to avoid requiring LTO for C++ interop. # Note: This could be done with llc, but it crashes when converting object files from the Swift 6.3.3 stdlib. - + lib.optionalString stdenv.hostPlatform.isElf '' + + lib.optionalString (enableLTO && stdenv.hostPlatform.isElf) '' LLVM_DIS=${lib.escapeShellArg (lib.getExe' llvmPackages.llvm "llvm-dis")} CLANG=${lib.escapeShellArg (lib.getExe' llvmPackages.clang.cc "clang")} "$LLVM_DIS" stdlib/public/Cxx/${lib.toUpper stdenv.hostPlatform.swift.platform}/${stdenv.hostPlatform.swift.arch}/Cxx.o -o Cxx.ll "$CLANG" -c Cxx.ll -o Cxx.o - "$AR" Drs "''${!outputDev}/lib/libswiftCxx.a" Cxx.o + "$AR" Drs "''${!outputDev}/lib/swift/${swiftPlatform}/libswiftCxx.a" Cxx.o "$LLVM_DIS" stdlib/public/Cxx/std/${lib.toUpper stdenv.hostPlatform.swift.platform}/${stdenv.hostPlatform.swift.arch}/CxxStdlib.o -o CxxStdlib.ll "$CLANG" -c CxxStdlib.ll -o CxxStdlib.o - "$AR" Drs "''${!outputDev}/lib/libswiftCxxStdlib.a" CxxStdlib.o + "$AR" Drs "''${!outputDev}/lib/swift/${swiftPlatform}/libswiftCxxStdlib.a" CxxStdlib.o '' + lib.optionalString stdenv.hostPlatform.isDarwin '' # Back-deployment libraries are installed as part of the compiler component, so install them manually. - cp -rv lib/swift/macosx/libswiftCompatibility*.a "''${!outputDev}/lib" + cp -rv lib/swift/${swiftPlatform}/libswiftCompatibility*.a "''${!outputDev}/lib/swift/${swiftPlatform}" # Install `Span`-compatibility back-deployment library. - mkdir -p "''${!outputLib}/lib/swift-6.2/macosx" - cp -v lib/swift-6.2/macosx/libswiftCompatibilitySpan.dylib "''${!outputLib}/lib/swift-6.2/macosx/libswiftCompatibilitySpan.dylib" + mkdir -p "''${!outputLib}/lib/swift-6.2/${swiftPlatform}" + cp -v lib/swift-6.2/${swiftPlatform}/libswiftCompatibilitySpan.dylib "''${!outputLib}/lib/swift-6.2/${swiftPlatform}/libswiftCompatibilitySpan.dylib" # macOS 26.4 dropped the Swift Differentiation dylibs. Use the one in the store instead of `/usr/lib/swift`. install_name_tool "''${!outputLib}/lib/libswift_Differentiation.dylib" -id "''${!outputLib}/lib/libswift_Differentiation.dylib" - - # Generate text-based stubs for the stdlib. Darwin links against the system library, so they aren’t necessary. - for dylib in "''${!outputLib}/lib/"*.dylib; do - dylibName=$(basename "$dylib" .dylib) - if [ "$dylibName" = "libswiftCompatibilitySpan" ]; then - # Follow the SDK, which symlinks `libswiftCompatibilitySpan.tbd` to `libswiftCore.tbd`. - ln -s libswiftCore.tbd "''${!outputDev}/lib/$dylibName.tbd" - else - ${lib.escapeShellArg (lib.getExe' llvmPackages_upstream.llvm "llvm-readtapi")} --filetype=tbd-v4 \ - "$dylib" -o "''${!outputDev}/lib/$dylibName.tbd" - fi - if [ "$dylibName" != "libswift_Differentiation" ]; then - rm "$dylib" - fi - done - - # The linker should be using the stubs in $dev, which will reference the dylibs in $lib. - # There’s no need to propagate it on Darwin. - rm -rf "''${!outputDev}/nix-support" - - # Clean up empty folders. - rmdir "''${!outputLib}/lib/swift/${swiftPlatform}" "''${!outputLib}/lib/swift" ''; - postFixup = null; + postFixup = + # Remove the dylibs from the stdlib. Darwin links against the system library, so they aren’t necessary. + # The exception is `libswift_Differentiation.dylib`, which macOS no longer ships in the dyld cache. + lib.optionalString stdenv.hostPlatform.isDarwin '' + for dylib in "''${!outputLib}/lib/"*.dylib; do + dylibName=$(basename "$dylib" .dylib) + case "$dylibName" in + libswift_Differentiation) + # Swift Differentiation needs to symlink the dylib to ensure that it can be imported in Swift scripts. + rm "''${!outputDev}/lib/swift/${swiftPlatform}/$dylibName.tbd" + ln -s "''${!outputLib}/lib/$dylibName.dylib" "''${!outputDev}/lib/swift/${swiftPlatform}/$dylibName.dylib" + ;; + libswiftCompatibilitySpan) + # Follow the SDK, which symlinks `libswiftCompatibilitySpan.tbd` to `libswiftCore.tbd`. + rm "''${!outputDev}/lib/swift/${swiftPlatform}/$dylibName.tbd" + ln -s libswiftCore.tbd "''${!outputDev}/lib/swift/${swiftPlatform}/$dylibName.tbd" + ;& # Fall through to remove the dylib. + *) + rm "$dylib" + # Copy the stubs back to $lib. This is needed for compatibility with packages that link Swift libraries + # directly without going through `swiftc` (mostly the source-based .NET builds). + cp "''${!outputDev}/lib/swift/${swiftPlatform}/$dylibName.tbd" "''${!outputLib}/lib/$dylibName.tbd" + ;; + esac + done + + # The linker should be using the stubs in $dev, which will reference the dylibs in $lib. + # There’s no need to propagate it on Darwin. + rm -rf "''${!outputDev}/nix-support" + + # Clean up empty folders. + rmdir "''${!outputLib}/lib/swift/${swiftPlatform}" "''${!outputLib}/lib/swift" + ''; }) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-argument-parser/files/ArgumentParserConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-argument-parser/files/ArgumentParserConfig.cmake index d2fa30ba8493..5caf9b2bc86b 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-argument-parser/files/ArgumentParserConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-argument-parser/files/ArgumentParserConfig.cmake @@ -1,5 +1,7 @@ -add_library(ArgumentParser @buildType@ IMPORTED) -set_target_properties(ArgumentParser PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}ArgumentParser${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@;@include@/lib/swift_static/@swiftPlatform@" -) +if (NOT TARGET ArgumentParser) + add_library(ArgumentParser @buildType@ IMPORTED) + set_target_properties(ArgumentParser PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}ArgumentParser${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@;@include@/lib/swift_static/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-asn1/files/SwiftASN1Config.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-asn1/files/SwiftASN1Config.cmake index ddcb6b154d6d..20452a9fde2e 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-asn1/files/SwiftASN1Config.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-asn1/files/SwiftASN1Config.cmake @@ -1,5 +1,7 @@ -add_library(SwiftASN1 @buildType@ IMPORTED) -set_target_properties(SwiftASN1 PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftASN1${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@" -) +if (NOT TARGET SwiftASN1) + add_library(SwiftASN1 @buildType@ IMPORTED) + set_target_properties(SwiftASN1 PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftASN1${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-asn1/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-asn1/package.nix index a19fa43d0781..39b4d5aa5d0f 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-asn1/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-asn1/package.nix @@ -8,6 +8,13 @@ swift, }: +let + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; +in + # Swift-ASN1 is a dependency of SwiftPM. It must be built with CMake to avoid dependency cycles. stdenv.mkDerivation (finalAttrs: { pname = "swift-asn1"; @@ -42,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - swift + swift' ]; postInstall = '' diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/0001-Add-cstdint-header-for-GCC-16.patch b/pkgs/development/compilers/swift/by-name/sw/swift-build/0001-Add-cstdint-header-for-GCC-16.patch new file mode 100644 index 000000000000..277641e098da --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/0001-Add-cstdint-header-for-GCC-16.patch @@ -0,0 +1,38 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Wed, 14 Oct 2026 11:03:47 -0400 +Subject: [PATCH] Add header for GCC 16 + +--- + bundle.cpp | 2 ++ + commands.h | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/bundle.cpp b/bundle.cpp +index 788b569..a800e60 100644 +--- a/bundle.cpp ++++ b/bundle.cpp +@@ -3,6 +3,8 @@ + #include + #include + #include ++#include ++ + #include + #include + +diff --git a/commands.h b/commands.h +index eac90ae..089d298 100644 +--- a/commands.h ++++ b/commands.h +@@ -1,6 +1,7 @@ + #ifndef SIGTOOL_COMMANDS_H + #define SIGTOOL_COMMANDS_H + ++#include + #include + + namespace SigTool { +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/files/SwiftBuildConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-build/files/SwiftBuildConfig.cmake index e3eccaa4f08b..373807f9ddb3 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-build/files/SwiftBuildConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/files/SwiftBuildConfig.cmake @@ -1,11 +1,14 @@ -add_library(SwiftBuild::SwiftBuild @buildType@ IMPORTED) -set_target_properties(SwiftBuild::SwiftBuild PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftBuild${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@include@/include;@include@/lib/swift/@swiftPlatform@" +set(SwiftBuildModules + SwiftBuild + SWBBuildService ) -add_library(SwiftBuild::SWBBuildService @buildType@ IMPORTED) -set_target_properties(SwiftBuild::SWBBuildService PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SWBBuildService${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@include@/include;@include@/lib/swift/@swiftPlatform@" -) +foreach (SwiftBuildModule ${SwiftBuildModules}) + if (NOT TARGET SwiftBuild::${SwiftBuildModule}) + add_library(SwiftBuild::${SwiftBuildModule} @buildType@ IMPORTED) + set_target_properties(SwiftBuild::${SwiftBuildModule} PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}${SwiftBuildModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@include@/include;@include@/lib/swift/@swiftPlatform@" + ) + endif () +endforeach () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-build/package.nix index fc8f658dbf12..710f9e2fcab4 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-build/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/package.nix @@ -3,19 +3,23 @@ bashNonInteractive, cmake, coreutils, + cctools, darwin, diffutils, fetchFromGitHub, gnumake, gnused, iconv, + libtapi, llvmPackages, ninja, + re-derq, replaceVars, sqlite, stdenv, swift, swift-argument-parser, + swift-corelibs-xctest, swift-driver, swift-llbuild, swift-system, @@ -29,6 +33,30 @@ let swiftPlatform = stdenv.hostPlatform.swift.platform; + + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; + + # FIXME: Drop once `darwin.sigtool` has a new release. + sigtool = darwin.sigtool.overrideAttrs (old: { + version = "0.2.2-unstable-2026-10-14"; + src = fetchFromGitHub { + owner = "nix-community"; + repo = "sigtool"; + rev = "de5de43c5f8bd97bce4de4a8cfc1b3708074a2b2"; + hash = "sha256-VWe+SPQqDPtrAIZf1k6w5Eg4+ofAxlhr/qYCDxvpfOA="; + }; + patches = [ ./0001-Add-cstdint-header-for-GCC-16.patch ]; + # FIXME: `codesign_allocate` should probably be split into its own package for portability purposes. + postPatch = + (old.postPatch or "") + + lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace commands.cpp \ + --replace-fail 'codesign_allocate = "codesign_allocate";' 'codesign_allocate = "${cctools}/bin/codesign_allocate";' + ''; + }); in # Swift Build is a dependency of SwiftPM. It must be built with CMake to avoid dependency cycles. @@ -52,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: { patches = [ # Remove as many impure paths as possible. (replaceVars ./patches/0001-replace-impure-paths.patch { - inherit (darwin) graphics_cmds sigtool; + inherit (darwin) graphics_cmds; inherit (llvmPackages) llvm; inherit (xcbuild) xcrun; inherit bashNonInteractive; @@ -61,7 +89,10 @@ stdenv.mkDerivation (finalAttrs: { inherit gnumake; inherit gnused; inherit iconv; + inherit re-derq; + inherit sigtool; inherit what; + tapi = lib.getBin libtapi; }) # Swift Build checks whether the SDK is Xcode by looking at the `DEVELOPER_DIR` path for Xcode. # Have it treat store paths as being Xcode SDKs so that the nixpkgs SDK is treated as a Darwin platform. @@ -70,6 +101,18 @@ stdenv.mkDerivation (finalAttrs: { }) # Don’t look in the build directory for bundles. Look only in the store. ./patches/0003-find-bundles-in-store.patch + # Swift Build makes assumptions about the layout of the toolchain (e.g., that paths begin with `usr`) that + # are not true for the toolchain Nixpkgs. + (replaceVars ./patches/0004-Help-Swift-Build-find-things-in-the-store.patch { + store-dir = builtins.storeDir; + }) + # Swift Build expects to find the testing macros in the toolchain path starting at `usr/lib/swift/host/testing`, + # but the Nixpkgs toolchain installs them to `lib/swift/host/testing`. + ./patches/0005-Locate-Swift-Testing-macros-in-the-Nixpkgs-toolchain.patch + # We don’t have the XCTest frameworks from Xcode on Darwin, so link against what we do have. + (replaceVars ./patches/0006-Link-against-XCTest-from-swift-corelibs-xctest-even-.patch { + inherit swift-corelibs-xctest; + }) ]; # FIXME: Make this a patch @@ -100,7 +143,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - swift + swift' ]; buildInputs = [ diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0001-replace-impure-paths.patch b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0001-replace-impure-paths.patch index 731638480524..bc7beeeae248 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0001-replace-impure-paths.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0001-replace-impure-paths.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 9 Dec 2025 20:57:45 -0500 -Subject: [PATCH 1/3] replace-impure-paths +Subject: [PATCH 1/6] replace-impure-paths --- Plugins/run-xcodebuild/run-xcodebuild.swift | 2 +- @@ -11,17 +11,20 @@ Subject: [PATCH 1/3] replace-impure-paths .../SpecImplementations/CommandLineToolSpec.swift | 2 +- .../SWBCore/SpecImplementations/Tools/CodeSign.swift | 2 +- .../SpecImplementations/Tools/MkdirTool.swift | 2 +- + .../SpecImplementations/Tools/SwiftStdLibTool.swift | 2 +- .../SpecImplementations/Tools/SymlinkTool.swift | 2 +- + .../SpecImplementations/Tools/TAPITools.swift | 2 +- .../SpecImplementations/Tools/TouchTool.swift | 2 +- Sources/SWBCore/Specs/CoreBuildSystem.xcspec | 2 +- Sources/SWBCore/Specs/NativeBuildSystem.xcspec | 12 ++++++------ Sources/SWBGenericUnixPlatform/Plugin.swift | 2 +- Sources/SWBProjectModel/PIFGenerationModel.swift | 4 ++-- .../ShellScriptTaskProducer.swift | 2 +- + .../GeneratedFilesTaskProducer.swift | 2 +- Sources/SWBTaskExecution/BuildDescription.swift | 4 ++-- .../TaskActions/CopyTiffTaskAction.swift | 2 +- .../TaskActions/EmbedSwiftStdLibTaskAction.swift | 2 +- - Sources/SWBTestSupport/CoreBasedTests.swift | 6 +++--- + Sources/SWBTestSupport/CoreBasedTests.swift | 10 ++++++---- Sources/SWBTestSupport/FSUtilities.swift | 4 ++-- Sources/SWBTestSupport/LibraryGeneration.swift | 8 ++++---- Sources/SWBTestSupport/TestWorkspaces.swift | 4 ++-- @@ -29,8 +32,8 @@ Subject: [PATCH 1/3] replace-impure-paths Sources/SWBUniversalPlatform/Specs/CodeSign.xcspec | 2 +- Sources/SWBUtil/PbxCp.swift | 12 ++++++------ Sources/SWBUtil/Signatures.swift | 2 +- - .../CoreQualificationTester.swift | 2 +- - 26 files changed, 45 insertions(+), 45 deletions(-) + .../CoreQualificationTester.swift | 4 ++-- + 29 files changed, 52 insertions(+), 50 deletions(-) diff --git a/Plugins/run-xcodebuild/run-xcodebuild.swift b/Plugins/run-xcodebuild/run-xcodebuild.swift index 710a84a2..c83982de 100644 @@ -46,10 +49,10 @@ index 710a84a2..c83982de 100644 process.environment = ProcessInfo.processInfo.environment.merging(["XCBBUILDSERVICE_PATH": buildServiceURL.path()]) { _, new in new } try await process.run() diff --git a/Sources/SWBBuildService/Messages.swift b/Sources/SWBBuildService/Messages.swift -index 4f2e6ad2..4861cd88 100644 +index 95e12252..2dc30804 100644 --- a/Sources/SWBBuildService/Messages.swift +++ b/Sources/SWBBuildService/Messages.swift -@@ -190,7 +190,7 @@ extension SetSessionWorkspaceContainerPathRequest: PIFProvidingRequest { +@@ -209,7 +209,7 @@ extension SetSessionWorkspaceContainerPathRequest: PIFProvidingRequest { try fs.createDirectory(dir, recursive: true) let pifPath = dir.join(Foundation.UUID().description + ".json") let argument = isProject ? "-project" : "-workspace" @@ -59,7 +62,7 @@ index 4f2e6ad2..4861cd88 100644 throw StubError.error("Could not dump PIF for '\(path.str)': \(String(decoding: result.stderr, as: UTF8.self))") } diff --git a/Sources/SWBCore/BuildRuleSet.swift b/Sources/SWBCore/BuildRuleSet.swift -index a9aef7c2..329f5c5f 100644 +index a9aef7c2..aaccb69f 100644 --- a/Sources/SWBCore/BuildRuleSet.swift +++ b/Sources/SWBCore/BuildRuleSet.swift @@ -160,7 +160,7 @@ extension Core { @@ -72,23 +75,23 @@ index a9aef7c2..329f5c5f 100644 let condition: any BuildRuleCondition switch inputSpecifier { diff --git a/Sources/SWBCore/SDKRegistry.swift b/Sources/SWBCore/SDKRegistry.swift -index 5fb5a318..2abebfbe 100644 +index 8cdff643..b4c7688a 100644 --- a/Sources/SWBCore/SDKRegistry.swift +++ b/Sources/SWBCore/SDKRegistry.swift -@@ -1099,7 +1099,7 @@ public final class SDKRegistry: SDKRegistryLookup, CustomStringConvertible, Send - "GENERATE_TEXT_BASED_STUBS": "NO", - "GENERATE_INTERMEDIATE_TEXT_BASED_STUBS": "NO", +@@ -1108,7 +1108,7 @@ public final class SDKRegistry: SDKRegistryLookup, CustomStringConvertible, Send + "GENERATE_TEXT_BASED_STUBS": "NO", + "GENERATE_INTERMEDIATE_TEXT_BASED_STUBS": "NO", -- "CHOWN": "/usr/bin/chown", -+ "CHOWN": "@coreutils@/bin/chown", +- "CHOWN": "/usr/bin/chown", ++ "CHOWN": "@coreutils@/bin/chown", - // TODO are these going to be appropriate for all kinds of SDK's? - // SwiftSDK _could_ have tool entries for these, so use them if they are available + // TODO are these going to be appropriate for all kinds of SDK's? + // SwiftSDK _could_ have tool entries for these, so use them if they are available diff --git a/Sources/SWBCore/SpecImplementations/CommandLineToolSpec.swift b/Sources/SWBCore/SpecImplementations/CommandLineToolSpec.swift -index cee454e4..23050d4e 100644 +index e0a588af..21c35be7 100644 --- a/Sources/SWBCore/SpecImplementations/CommandLineToolSpec.swift +++ b/Sources/SWBCore/SpecImplementations/CommandLineToolSpec.swift -@@ -246,7 +246,7 @@ extension DiscoveredCommandLineToolSpecInfo { +@@ -253,7 +253,7 @@ extension DiscoveredCommandLineToolSpecInfo { if !toolPath.isAbsolute { throw StubError.error("\(toolPath.str) is not absolute") } @@ -96,7 +99,7 @@ index cee454e4..23050d4e 100644 + return try await producer.discoveredCommandLineToolSpecInfo(delegate, toolPath.basename, ["@what@/bin/what", "-q", toolPath.str]) { executionResult in let outputString = String(decoding: executionResult.stdout, as: UTF8.self).trimmingCharacters(in: .whitespacesAndNewlines) let lines = Set(outputString.split(separator: "\n").map(String.init)) // version info is printed once per architecture slice, but we never expect them to differ - return try construct(AppleGenericVersionInfo(string: lines.only ?? outputString)) + let versionInfo: AppleGenericVersionInfo diff --git a/Sources/SWBCore/SpecImplementations/Tools/CodeSign.swift b/Sources/SWBCore/SpecImplementations/Tools/CodeSign.swift index 8f0dd409..c80d1899 100644 --- a/Sources/SWBCore/SpecImplementations/Tools/CodeSign.swift @@ -123,6 +126,19 @@ index 78feb6d3..8f4a1914 100644 environment: EnvironmentBindings(), workingDirectory: cbc.producer.defaultWorkingDirectory, inputs: [], outputs: outputs, action: nil, +diff --git a/Sources/SWBCore/SpecImplementations/Tools/SwiftStdLibTool.swift b/Sources/SWBCore/SpecImplementations/Tools/SwiftStdLibTool.swift +index 985a6988..f6e674a8 100644 +--- a/Sources/SWBCore/SpecImplementations/Tools/SwiftStdLibTool.swift ++++ b/Sources/SWBCore/SpecImplementations/Tools/SwiftStdLibTool.swift +@@ -54,7 +54,7 @@ public final class SwiftStdLibToolSpec : GenericCommandLineToolSpec, SpecIdentif + + // Bitcode is no longer supported, but some old libraries may contain bitcode, so we continue to strip it when directed. + if commandLine.contains("--strip-bitcode") { +- if let bitcodeStripToolPath = cbc.producer.toolchains.lazy.compactMap({ $0.executableSearchPaths.lookup(Path("bitcode_strip")) }).first { ++ if let bitcodeStripToolPath = cbc.producer.toolchains.lazy.compactMap({ $0.executableSearchPaths.lookup(Path("@llvm@/bin/llvm-bitcode-strip")) }).first { + commandLine.append(contentsOf: ["--strip-bitcode-tool", bitcodeStripToolPath.str]) + } + } diff --git a/Sources/SWBCore/SpecImplementations/Tools/SymlinkTool.swift b/Sources/SWBCore/SpecImplementations/Tools/SymlinkTool.swift index 0d889a54..47c0e4cb 100644 --- a/Sources/SWBCore/SpecImplementations/Tools/SymlinkTool.swift @@ -136,6 +152,18 @@ index 0d889a54..47c0e4cb 100644 delegate.createTask( type: self, ruleInfo: ["SymLink", outputPath.str, toPath], commandLine: commandLine, environment: environmentFromSpec(cbc, delegate), +diff --git a/Sources/SWBCore/SpecImplementations/Tools/TAPITools.swift b/Sources/SWBCore/SpecImplementations/Tools/TAPITools.swift +index 2dfab03f..cbf1635d 100644 +--- a/Sources/SWBCore/SpecImplementations/Tools/TAPITools.swift ++++ b/Sources/SWBCore/SpecImplementations/Tools/TAPITools.swift +@@ -214,6 +214,6 @@ public func discoveredTAPIToolInfo(_ producer: any CommandProducer, _ delegate: + + extension MacroEvaluationScope { + func tapiExecutablePath(lookup: ((MacroDeclaration) -> MacroExpression?)? = nil) -> String { +- return evaluate(BuiltinMacros.TAPI_EXEC, lookup: lookup, default: "tapi").str ++ return evaluate(BuiltinMacros.TAPI_EXEC, lookup: lookup, default: "@tapi@/bin/tapi").str + } + } diff --git a/Sources/SWBCore/SpecImplementations/Tools/TouchTool.swift b/Sources/SWBCore/SpecImplementations/Tools/TouchTool.swift index 57ab5f1a..892cb46c 100644 --- a/Sources/SWBCore/SpecImplementations/Tools/TouchTool.swift @@ -150,10 +178,10 @@ index 57ab5f1a..892cb46c 100644 delegate.createTask(type: self, ruleInfo: ["Touch", input.absolutePath.str], commandLine: commandLine, environment: EnvironmentBindings(), workingDirectory: cbc.producer.defaultWorkingDirectory, inputs: [delegate.createNode(input.absolutePath)], outputs: outputs, mustPrecede: [], action: delegate.taskActionCreationDelegate.createDeferredExecutionTaskActionIfRequested(userPreferences: cbc.producer.userPreferences), execDescription: resolveExecutionDescription(cbc, delegate, lookup: outputFileOverride), enableSandboxing: enableSandboxing) diff --git a/Sources/SWBCore/Specs/CoreBuildSystem.xcspec b/Sources/SWBCore/Specs/CoreBuildSystem.xcspec -index 7593180b..4fe24daf 100644 +index 0c7824b4..4871f2f7 100644 --- a/Sources/SWBCore/Specs/CoreBuildSystem.xcspec +++ b/Sources/SWBCore/Specs/CoreBuildSystem.xcspec -@@ -3215,7 +3215,7 @@ For more information on mergeable libraries, see [Configuring your project to us +@@ -3234,7 +3234,7 @@ For more information on mergeable libraries, see [Configuring your project to us { Name = "JAVA_COMPILER"; Type = Path; @@ -163,7 +191,7 @@ index 7593180b..4fe24daf 100644 { Name = "JAVA_ARCHIVE_CLASSES"; diff --git a/Sources/SWBCore/Specs/NativeBuildSystem.xcspec b/Sources/SWBCore/Specs/NativeBuildSystem.xcspec -index 65e3918c..e0bda4ba 100644 +index ad364b06..dab88e2d 100644 --- a/Sources/SWBCore/Specs/NativeBuildSystem.xcspec +++ b/Sources/SWBCore/Specs/NativeBuildSystem.xcspec @@ -819,27 +819,27 @@ When `GENERATE_INFOPLIST_FILE` is enabled, sets the value of the [CFBundleExecut @@ -201,20 +229,20 @@ index 65e3918c..e0bda4ba 100644 // Utility settings diff --git a/Sources/SWBGenericUnixPlatform/Plugin.swift b/Sources/SWBGenericUnixPlatform/Plugin.swift -index 971b24d1..9c3b1a4d 100644 +index 2658c810..48ebd3db 100644 --- a/Sources/SWBGenericUnixPlatform/Plugin.swift +++ b/Sources/SWBGenericUnixPlatform/Plugin.swift -@@ -130,7 +130,7 @@ struct GenericUnixSDKRegistryExtension: SDKRegistryExtension { +@@ -193,7 +193,7 @@ struct GenericUnixSDKRegistryExtension: SDKRegistryExtension { "GENERATE_TEXT_BASED_STUBS": "NO", "GENERATE_INTERMEDIATE_TEXT_BASED_STUBS": "NO", - "AR": "llvm-ar", + "AR": "@llvm@/bin/llvm-ar", ] - default: - defaultProperties = [:] + case .openbsd: + defaultProperties = [ diff --git a/Sources/SWBProjectModel/PIFGenerationModel.swift b/Sources/SWBProjectModel/PIFGenerationModel.swift -index 00e96dc0..426cc089 100644 +index d278669c..440e31f7 100644 --- a/Sources/SWBProjectModel/PIFGenerationModel.swift +++ b/Sources/SWBProjectModel/PIFGenerationModel.swift @@ -356,7 +356,7 @@ public enum PIF { @@ -236,7 +264,7 @@ index 00e96dc0..426cc089 100644 inputPaths: [String], outputPaths: [String], diff --git a/Sources/SWBTaskConstruction/TaskProducers/BuildPhaseTaskProducers/ShellScriptTaskProducer.swift b/Sources/SWBTaskConstruction/TaskProducers/BuildPhaseTaskProducers/ShellScriptTaskProducer.swift -index fedc42f6..df7a9f72 100644 +index fedc42f6..81bb8734 100644 --- a/Sources/SWBTaskConstruction/TaskProducers/BuildPhaseTaskProducers/ShellScriptTaskProducer.swift +++ b/Sources/SWBTaskConstruction/TaskProducers/BuildPhaseTaskProducers/ShellScriptTaskProducer.swift @@ -201,7 +201,7 @@ final class ShellScriptTaskProducer: PhasedTaskProducer, TaskProducer, ShellBase @@ -248,11 +276,24 @@ index fedc42f6..df7a9f72 100644 let isSandboxingEnabled: Bool +diff --git a/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/GeneratedFilesTaskProducer.swift b/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/GeneratedFilesTaskProducer.swift +index 17f0d1e0..93e3b1d4 100644 +--- a/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/GeneratedFilesTaskProducer.swift ++++ b/Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/GeneratedFilesTaskProducer.swift +@@ -62,7 +62,7 @@ final class GeneratedFilesTaskProducer: PhasedTaskProducer, TaskProducer { + await appendGeneratedTasks(&tasks) { delegate in + await context.productPackagingSpec.constructProductEntitlementsTasks(CommandBuildContext(producer: context, scope: scope, inputs: [FileToBuild(context: context, absolutePath: input)], output: entitlements.output), delegate, entitlementsVariant, fs: context.workspaceContext.fs) + +- delegate.createTask(type: context.productPackagingSpec, ruleInfo: ["ProcessProductPackagingDER", entitlements.output.str, entitlements.outputDer.str], commandLine: ["/usr/bin/derq", "query", "-f", "xml", "-i", entitlements.output.str, "-o", entitlements.outputDer.str, "--raw"], environment: EnvironmentBindings([:]), workingDirectory: context.defaultWorkingDirectory, inputs: [delegate.createNode(entitlements.output)], outputs: [delegate.createNode(entitlements.outputDer)], action: delegate.taskActionCreationDelegate.createDeferredExecutionTaskActionIfRequested(userPreferences: context.userPreferences), execDescription: "Generate DER entitlements", enableSandboxing: context.productPackagingSpec.enableSandboxing) ++ delegate.createTask(type: context.productPackagingSpec, ruleInfo: ["ProcessProductPackagingDER", entitlements.output.str, entitlements.outputDer.str], commandLine: ["@re-derq@/bin/derq", "query", "-f", "xml", "-i", entitlements.output.str, "-o", entitlements.outputDer.str, "--raw"], environment: EnvironmentBindings([:]), workingDirectory: context.defaultWorkingDirectory, inputs: [delegate.createNode(entitlements.output)], outputs: [delegate.createNode(entitlements.outputDer)], action: delegate.taskActionCreationDelegate.createDeferredExecutionTaskActionIfRequested(userPreferences: context.userPreferences), execDescription: "Generate DER entitlements", enableSandboxing: context.productPackagingSpec.enableSandboxing) + } + } + diff --git a/Sources/SWBTaskExecution/BuildDescription.swift b/Sources/SWBTaskExecution/BuildDescription.swift -index f2279da3..ed26f903 100644 +index 081a0acd..55ccc539 100644 --- a/Sources/SWBTaskExecution/BuildDescription.swift +++ b/Sources/SWBTaskExecution/BuildDescription.swift -@@ -893,7 +893,7 @@ package final class BuildDescriptionBuilder { +@@ -910,7 +910,7 @@ package final class BuildDescriptionBuilder { var commandLine = commandLine if bypassActualTasks { @@ -261,7 +302,7 @@ index f2279da3..ed26f903 100644 } // Add the command definition. -@@ -973,7 +973,7 @@ package final class BuildDescriptionBuilder { +@@ -990,7 +990,7 @@ package final class BuildDescriptionBuilder { func addCustomCommand(_ task: any PlannedTask, tool: String, inputs: [any PlannedNode], outputs: [any PlannedNode], deps: DependencyDataStyle? = nil, allowMissingInputs: Bool, alwaysOutOfDate: Bool, description: [String]) throws { // Honor `bypassActualTasks`. if bypassActualTasks { @@ -284,10 +325,10 @@ index df1675af..9e4b37c2 100644 let processDelegate = TaskProcessDelegate(outputDelegate: outputDelegate) do { diff --git a/Sources/SWBTaskExecution/TaskActions/EmbedSwiftStdLibTaskAction.swift b/Sources/SWBTaskExecution/TaskActions/EmbedSwiftStdLibTaskAction.swift -index 38501d22..01b80870 100644 +index d73c8d8e..65bcf1af 100644 --- a/Sources/SWBTaskExecution/TaskActions/EmbedSwiftStdLibTaskAction.swift +++ b/Sources/SWBTaskExecution/TaskActions/EmbedSwiftStdLibTaskAction.swift -@@ -839,7 +839,7 @@ public final class EmbedSwiftStdLibTaskAction: TaskAction { +@@ -873,7 +873,7 @@ public final class EmbedSwiftStdLibTaskAction: TaskAction { // Codesign the Swift libraries in $build_dir/$frameworks // but not the libraries in $build_dir/$unsigned_frameworks. if codeSignIdentity != nil && !swiftLibs.isEmpty { @@ -297,10 +338,21 @@ index 38501d22..01b80870 100644 // Swift libraries that are up-to-date get codesigned anyway // (in case options changed or a previous build was incomplete). diff --git a/Sources/SWBTestSupport/CoreBasedTests.swift b/Sources/SWBTestSupport/CoreBasedTests.swift -index 6beda66f..58a3ec8e 100644 +index 635394d2..2dc96959 100644 --- a/Sources/SWBTestSupport/CoreBasedTests.swift +++ b/Sources/SWBTestSupport/CoreBasedTests.swift -@@ -241,8 +241,8 @@ extension CoreBasedTests { +@@ -190,7 +190,9 @@ extension CoreBasedTests { + package var tapiToolPath: Path { + get async throws { + let (core, defaultToolchain) = try await coreAndToolchain() +- return try #require(defaultToolchain.executableSearchPaths.findExecutable(operatingSystem: core.hostOperatingSystem, basename: "tapi"), "couldn't find tapi in default toolchain") ++ let fallbacktapi = Path("@tapi@/bin/tapi") ++ return try #require(defaultToolchain.executableSearchPaths.findExecutable(operatingSystem: core.hostOperatingSystem, basename: "tapi") ++ ?? (localFS.exists(fallbacktapi) ? fallbacktapi : nil), "couldn't find tapi in default toolchain") + } + } + +@@ -246,8 +248,8 @@ extension CoreBasedTests { package var libtoolPath: Path { get async throws { let (core, defaultToolchain) = try await coreAndToolchain() @@ -311,7 +363,7 @@ index 6beda66f..58a3ec8e 100644 ?? defaultToolchain.executableSearchPaths.findExecutable(operatingSystem: core.hostOperatingSystem, basename: "llvm-ar") ?? (localFS.exists(fallbacklibtool) ? fallbacklibtool : nil), "couldn't find libtool in default toolchain") } -@@ -252,7 +252,7 @@ extension CoreBasedTests { +@@ -257,7 +259,7 @@ extension CoreBasedTests { package var llvmlibPath: Path { get async throws { let (core, defaultToolchain) = try await coreAndToolchain() @@ -337,7 +389,7 @@ index 75c193c9..b1a3dc42 100644 try await writeFileContents(contents.join("_CodeSignature/CodeSignature")) { $0 <<< "signature" } } diff --git a/Sources/SWBTestSupport/LibraryGeneration.swift b/Sources/SWBTestSupport/LibraryGeneration.swift -index 1a238077..13bf27ad 100644 +index df048a63..673ec1d9 100644 --- a/Sources/SWBTestSupport/LibraryGeneration.swift +++ b/Sources/SWBTestSupport/LibraryGeneration.swift @@ -87,7 +87,7 @@ extension InstalledXcode { @@ -376,10 +428,10 @@ index 1a238077..13bf27ad 100644 } diff --git a/Sources/SWBTestSupport/TestWorkspaces.swift b/Sources/SWBTestSupport/TestWorkspaces.swift -index 9d550ea4..1ecc026e 100644 +index dded7e58..78a2d6df 100644 --- a/Sources/SWBTestSupport/TestWorkspaces.swift +++ b/Sources/SWBTestSupport/TestWorkspaces.swift -@@ -690,7 +690,7 @@ package final class TestShellScriptBuildPhase: TestInternalBuildPhase { +@@ -691,7 +691,7 @@ package final class TestShellScriptBuildPhase: TestInternalBuildPhase { return overriddenGuid ?? "\(Self.guidCode)\(guidIdentifier)" } @@ -388,7 +440,7 @@ index 9d550ea4..1ecc026e 100644 self.name = name self.overriddenGuid = guid self.shellPath = shellPath -@@ -1194,7 +1194,7 @@ package final class TestExternalTarget: TestInternalTarget { +@@ -1203,7 +1203,7 @@ package final class TestExternalTarget: TestInternalTarget { private let dependencies: [String] private let passBuildSettingsInEnvironment: Bool? @@ -424,7 +476,7 @@ index 02ec3dd5..51629c96 100644 IsUnsafeToInterrupt = YES; CommandOutputParser = ( diff --git a/Sources/SWBUtil/PbxCp.swift b/Sources/SWBUtil/PbxCp.swift -index 2d3bedd0..4d37790a 100644 +index 5b083519..8774b88d 100644 --- a/Sources/SWBUtil/PbxCp.swift +++ b/Sources/SWBUtil/PbxCp.swift @@ -106,12 +106,12 @@ fileprivate func stripFile(_ srcPath: Path, _ dstPath: Path, _ strip_tool_path: @@ -442,7 +494,7 @@ index 2d3bedd0..4d37790a 100644 // Note that srcPath and dstPath could be the same, in which case the file gets stripped in-place. let args = [srcPath.str, bitcode_strip_flag, "-o", dstPath.str] try await spawnTaskAndWait(toolPath, args, nil, nil, dryRun, stream) -@@ -511,11 +511,11 @@ struct CopyOptions: AsyncParsableCommand { +@@ -522,11 +522,11 @@ struct CopyOptions: AsyncParsableCommand { @Flag(name: .customLong("strip-unsigned-binaries", withSingleDash: true), help: "strips debug symbols from any executables") var stripUnsignedBinaries: Bool = false @@ -472,10 +524,10 @@ index eb3c1e27..180dcc62 100644 let stderrContent = String(data: executionResult.stderr, encoding: .utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) ?? "" diff --git a/Sources/SwiftBuildTestSupport/CoreQualificationTester.swift b/Sources/SwiftBuildTestSupport/CoreQualificationTester.swift -index 8495d9ff..1e4dd60e 100644 +index e6166507..8597e5aa 100644 --- a/Sources/SwiftBuildTestSupport/CoreQualificationTester.swift +++ b/Sources/SwiftBuildTestSupport/CoreQualificationTester.swift -@@ -326,7 +326,7 @@ extension FileContentsCheckingResult { +@@ -324,7 +324,7 @@ extension FileContentsCheckingResult { let plist: PropertyListItem? switch destination { case .signed: @@ -484,6 +536,15 @@ index 8495d9ff..1e4dd60e 100644 plist = try !bytes.isEmpty ? PropertyList.fromBytes(bytes) : nil case .simulated: // xcrun otool-classic [-arch arch] -X -s __TEXT __entitlements +@@ -350,7 +350,7 @@ extension FileContentsCheckingResult { + + let derPlist: PropertyListItem = try await withTemporaryDirectory { path in + try localFS.write(path.join("in.der"), contents: ByteString(bytes)) +- try await runProcess(["/usr/bin/derq", "query", "-i", path.join("in.der").str, "-o", path.join("out.xml").str, "--xml"]) ++ try await runProcess(["@re-derq@/bin/derq", "query", "-i", path.join("in.der").str, "-o", path.join("out.xml").str, "--xml"]) + return try PropertyList.fromPath(path.join("out.xml"), fs: localFS) + } + #expect(plist == derPlist, "Expected both DER and plist entitlements to be equivalent") -- 2.54.0 diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0002-treat-nixpkgs-sdk-as-xcode.patch b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0002-treat-nixpkgs-sdk-as-xcode.patch index 631152211ef0..df25eaeeb6e7 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0002-treat-nixpkgs-sdk-as-xcode.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0002-treat-nixpkgs-sdk-as-xcode.patch @@ -1,47 +1,46 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 9 Dec 2025 21:03:16 -0500 -Subject: [PATCH 2/3] treat-nixpkgs-sdk-as-xcode +Subject: [PATCH 2/6] treat-nixpkgs-sdk-as-xcode --- Sources/SWBCore/Core.swift | 4 ++-- - Sources/SWBTestSupport/SkippedTestSupport.swift | 3 ++- - 2 files changed, 4 insertions(+), 3 deletions(-) + Sources/SWBTestSupport/SkippedTestSupport.swift | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/SWBCore/Core.swift b/Sources/SWBCore/Core.swift -index 830d921d..e03f4b07 100644 +index 7186b5a2..792fbe3f 100644 --- a/Sources/SWBCore/Core.swift +++ b/Sources/SWBCore/Core.swift -@@ -276,7 +276,7 @@ public final class Core: Sendable { +@@ -278,7 +278,7 @@ public final class Core: Sendable { switch developerPath { case .xcode(let path): -- toolchainPaths.append(.init(path: path.join("Toolchains"), strict: path.str.hasSuffix(".app/Contents/Developer"))) -+ toolchainPaths.append(.init(path: path.join("Toolchains"), strict: path.str.hasSuffix(".app/Contents/Developer") || path.str.hasPrefix("@store-dir@"))) +- toolchainPaths.append(.init(path: path.join("Toolchains"), strict: path.str.hasSuffix(".app/Contents/Developer"), type: .toolchainsDirectoryPath)) ++ toolchainPaths.append(.init(path: path.join("Toolchains"), strict: path.str.hasSuffix(".app/Contents/Developer") || path.str.hasPrefix("@store-dir@"), type: .toolchainsDirectoryPath)) case .swiftToolchain(let path, xcodeDeveloperPath: let xcodeDeveloperPath): if hostOperatingSystem == .windows { - toolchainPaths.append(.init(path: path.join("Toolchains"), strict: true, aliases: ["default"])) -@@ -284,7 +284,7 @@ public final class Core: Sendable { - toolchainPaths.append(.init(path: path, strict: true)) + toolchainPaths.append(.init(path: path.join("Toolchains"), strict: true, type: .toolchainsDirectoryPath, aliases: ["default"])) +@@ -286,7 +286,7 @@ public final class Core: Sendable { + toolchainPaths.append(.init(path: path, strict: false, type: .toolchainPath, aliases: ["default"])) } if let xcodeDeveloperPath { -- toolchainPaths.append(.init(path: xcodeDeveloperPath.join("Toolchains"), strict: xcodeDeveloperPath.str.hasSuffix(".app/Contents/Developer"))) -+ toolchainPaths.append(.init(path: xcodeDeveloperPath.join("Toolchains"), strict: xcodeDeveloperPath.str.hasSuffix(".app/Contents/Developer") || path.str.hasPrefix("@store-dir@"))) +- toolchainPaths.append(.init(path: xcodeDeveloperPath.join("Toolchains"), strict: xcodeDeveloperPath.str.hasSuffix(".app/Contents/Developer"), type: .toolchainsDirectoryPath)) ++ toolchainPaths.append(.init(path: xcodeDeveloperPath.join("Toolchains"), strict: xcodeDeveloperPath.str.hasSuffix(".app/Contents/Developer") || path.str.hasPrefix("@store-dir@"), type: .toolchainsDirectoryPath)) } } diff --git a/Sources/SWBTestSupport/SkippedTestSupport.swift b/Sources/SWBTestSupport/SkippedTestSupport.swift -index f1662a83..49aa98e9 100644 +index 5984e25b..d992314f 100644 --- a/Sources/SWBTestSupport/SkippedTestSupport.swift +++ b/Sources/SWBTestSupport/SkippedTestSupport.swift -@@ -148,7 +148,8 @@ extension Trait where Self == Testing.ConditionTrait { +@@ -169,7 +169,7 @@ extension Trait where Self == Testing.ConditionTrait { /// Constructs a condition trait that causes a test to be disabled if the developer directory is pointing at an Xcode developer directory. package static var skipXcodeToolchain: Self { - disabled("This test is incompatible with Xcode toolchains.", { -- try await ConditionTraitContext.shared.getCore().developerPath.path.str.contains(".app/Contents/Developer") -+ let core = try await ConditionTraitContext.shared.getCore() -+ return core.developerPath.path.str.contains(".app/Contents/Developer") || core.developerPath.path.str.hasPrefix("@store-dir@") - }) + disabled("This test is incompatible with Xcode toolchains.") { core in +- core.developerPath.path.str.contains(".app/Contents/Developer") ++ core.developerPath.path.str.contains(".app/Contents/Developer") || core.developerPath.path.str.hasPrefix("@store-dir@") + } } -- diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0003-find-bundles-in-store.patch b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0003-find-bundles-in-store.patch index 07682f45cb37..f674b82335bd 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0003-find-bundles-in-store.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0003-find-bundles-in-store.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 13 Dec 2025 09:40:18 -0500 -Subject: [PATCH 3/3] find-bundles-in-store +Subject: [PATCH 3/6] find-bundles-in-store --- Sources/CMakeLists.txt | 11 +++++------ diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0004-Help-Swift-Build-find-things-in-the-store.patch b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0004-Help-Swift-Build-find-things-in-the-store.patch new file mode 100644 index 000000000000..b4649ad3dedb --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0004-Help-Swift-Build-find-things-in-the-store.patch @@ -0,0 +1,57 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Fri, 25 Sep 2026 09:17:33 -0400 +Subject: [PATCH 4/6] Help Swift Build find things in the store + +--- + Sources/SWBCore/Settings/Settings.swift | 5 ++++- + Sources/SWBCore/ToolchainRegistry.swift | 17 +++++++++++++---- + 2 files changed, 17 insertions(+), 5 deletions(-) + +diff --git a/Sources/SWBCore/Settings/Settings.swift b/Sources/SWBCore/Settings/Settings.swift +index 5c531d00..d1deb913 100644 +--- a/Sources/SWBCore/Settings/Settings.swift ++++ b/Sources/SWBCore/Settings/Settings.swift +@@ -1001,7 +1001,10 @@ extension Core { + paths.append(path.join("usr").join("bin")) + paths.append(path.join("usr").join("local").join("bin")) + case .swiftToolchain(let path, let xcodeDeveloperPath): +- if hostOperatingSystem != .windows { ++ if Path("@store-dir@").isAncestor(of: path) { ++ // In Nixpkgs, only the “bin” folder will be present. ++ paths.append(path.join("bin")) ++ } else if hostOperatingSystem != .windows { + // On Windows the Swift toolchain's "developer dir" is mapped to %APPDATA%\Local\Programs\Swift, which doesn't have these directories + paths.append(path.join("usr").join("bin")) + paths.append(path.join("usr").join("local").join("bin")) +diff --git a/Sources/SWBCore/ToolchainRegistry.swift b/Sources/SWBCore/ToolchainRegistry.swift +index 24212280..27b6f5c2 100644 +--- a/Sources/SWBCore/ToolchainRegistry.swift ++++ b/Sources/SWBCore/ToolchainRegistry.swift +@@ -89,10 +89,19 @@ public final class Toolchain: Hashable, Sendable { + self.overrideSettings = overrideSettings + self.defaultSettingsWhenPrimary = defaultSettingsWhenPrimary + self.executableSearchPaths = StackedSearchPath(paths: executableSearchPaths, fs: fs) +- self.librarySearchPaths = StackedSearchPath( +- paths: [path.join("usr/lib"), path.join("usr/local/lib")], +- fs: fs +- ) ++ self.librarySearchPaths = ++ if Path("@store-dir@").isAncestor(of: path) && path.fileExtension != "xctoolchain" { ++ // Special case the toolchain in Nixpkgs, which will only have “lib”. ++ StackedSearchPath( ++ paths: [path.join("lib")], ++ fs: fs ++ ) ++ } else { ++ StackedSearchPath( ++ paths: [path.join("usr/lib"), path.join("usr/local/lib")], ++ fs: fs ++ ) ++ } + let frameworkSearchPaths = frameworkPaths.map { path.join($0) } + self.fallbackFrameworkSearchPaths = StackedSearchPath( + paths: frameworkSearchPaths, +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0005-Locate-Swift-Testing-macros-in-the-Nixpkgs-toolchain.patch b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0005-Locate-Swift-Testing-macros-in-the-Nixpkgs-toolchain.patch new file mode 100644 index 000000000000..0b3d25c2aeb4 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0005-Locate-Swift-Testing-macros-in-the-Nixpkgs-toolchain.patch @@ -0,0 +1,39 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Mon, 12 Oct 2026 14:57:41 -0400 +Subject: [PATCH 5/6] Locate Swift Testing macros in the Nixpkgs toolchain + +--- + Sources/SWBCore/Settings/Settings.swift | 2 +- + Sources/SWBCore/ToolchainRegistry.swift | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Sources/SWBCore/Settings/Settings.swift b/Sources/SWBCore/Settings/Settings.swift +index d1deb913..18e4525a 100644 +--- a/Sources/SWBCore/Settings/Settings.swift ++++ b/Sources/SWBCore/Settings/Settings.swift +@@ -4742,7 +4742,7 @@ private class SettingsBuilder: ProjectMatchLookup { + } + } + +- let testingPluginsPath = "/usr/lib/swift/host/plugins/testing" ++ let testingPluginsPath = "/lib/swift/host/plugins/testing" + switch (ToolchainStyle(toolchain)) { + case let .xcode(isDefault): + // This target is using a built-in Xcode toolchain, and that should +diff --git a/Sources/SWBCore/ToolchainRegistry.swift b/Sources/SWBCore/ToolchainRegistry.swift +index 27b6f5c2..866d1f72 100644 +--- a/Sources/SWBCore/ToolchainRegistry.swift ++++ b/Sources/SWBCore/ToolchainRegistry.swift +@@ -403,7 +403,7 @@ public final class Toolchain: Hashable, Sendable { + + func testingLibrarySearchPath(forPlatformNamed platformName: String) -> Path? { + if testingLibraryPlatformNames.contains(platformName) { +- path.join("usr").join("lib").join("swift").join(platformName).join("testing") ++ path.join("lib").join("swift").join(platformName).join("testing") + } else { + nil + } +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0006-Link-against-XCTest-from-swift-corelibs-xctest-even-.patch b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0006-Link-against-XCTest-from-swift-corelibs-xctest-even-.patch new file mode 100644 index 000000000000..9cddb6ff69e7 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-build/patches/0006-Link-against-XCTest-from-swift-corelibs-xctest-even-.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Mon, 12 Oct 2026 15:41:55 -0400 +Subject: [PATCH 6/6] Link against XCTest from swift-corelibs-xctest even on + Darwin +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We don’t have access to the XCTest frameworks to Xcode. The best we can +do is link against XCTest for compatibility and then not use it. +--- + Sources/SWBUniversalPlatform/Specs/ProductTypes.xcspec | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Sources/SWBUniversalPlatform/Specs/ProductTypes.xcspec b/Sources/SWBUniversalPlatform/Specs/ProductTypes.xcspec +index 329a91f2..4ce66db4 100644 +--- a/Sources/SWBUniversalPlatform/Specs/ProductTypes.xcspec ++++ b/Sources/SWBUniversalPlatform/Specs/ProductTypes.xcspec +@@ -351,10 +351,10 @@ + DefaultBuildProperties = { + WRAPPER_EXTENSION = "xctest"; + ENABLE_TESTING_SEARCH_PATHS = YES; +- PRODUCT_SPECIFIC_LDFLAGS = "$(PRODUCT_SPECIFIC_LDFLAGS_NO_XCTEST_$(NO_XCTEST:default=NO))"; +- PRODUCT_SPECIFIC_LDFLAGS_NO_XCTEST_NO = (-Xlinker, -needed_framework, -Xlinker, XCTest, -framework, XCTest, -Xlinker, -needed-lXCTestSwiftSupport, -lXCTestSwiftSupport); +- PRODUCT_TYPE_SWIFT_STDLIB_TOOL_FLAGS = "$(PRODUCT_TYPE_SWIFT_STDLIB_TOOL_FLAGS_NO_XCTEST_$(NO_XCTEST:default=NO))"; +- PRODUCT_TYPE_SWIFT_STDLIB_TOOL_FLAGS_NO_XCTEST_NO = ("--scan-executable", "$(PLATFORM_DIR)/Developer/usr/lib/libXCTestSwiftSupport.dylib"); ++ PRODUCT_SPECIFIC_LDFLAGS = "$(PRODUCT_SPECIFIC_LDFLAGS_NO_XCTEST_$(NO_XCTEST:default=YES))"; ++ PRODUCT_SPECIFIC_LDFLAGS_NO_XCTEST_NO = (-Xlinker, -lXCTest); ++ PRODUCT_TYPE_SWIFT_STDLIB_TOOL_FLAGS = "$(PRODUCT_TYPE_SWIFT_STDLIB_TOOL_FLAGS_NO_XCTEST_$(NO_XCTEST:default=YES))"; ++ PRODUCT_TYPE_SWIFT_STDLIB_TOOL_FLAGS_NO_XCTEST_NO = ("--scan-executable", "@swift-corelibs-xctest@/lib/libXCTest.dylib"); + XCTRUNNER_PATH = "$(XCTRUNNER_PATH$(TEST_BUILD_STYLE))"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(LD_RUNPATH_SEARCH_PATHS_SHALLOW_BUNDLE_$(SHALLOW_BUNDLE))"; + LD_RUNPATH_SEARCH_PATHS_SHALLOW_BUNDLE_YES = "@loader_path/Frameworks"; +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-certificates/files/SwiftCertificatesConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-certificates/files/SwiftCertificatesConfig.cmake index 702338ff038b..b507732e0973 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-certificates/files/SwiftCertificatesConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-certificates/files/SwiftCertificatesConfig.cmake @@ -1,5 +1,7 @@ -add_library(X509 @buildType@ IMPORTED) -set_target_properties(X509 PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}X509${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@" -) +if (NOT TARGET X509) + add_library(X509 @buildType@ IMPORTED) + set_target_properties(X509 PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}X509${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-certificates/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-certificates/package.nix index ca92ecfa32a2..e3ff48bb7c67 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-certificates/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-certificates/package.nix @@ -10,6 +10,13 @@ swift-crypto, }: +let + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; +in + stdenv.mkDerivation (finalAttrs: { pname = "swift-certificates"; version = "1.21.1"; @@ -44,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - swift + swift' ]; buildInputs = [ diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-collections/files/SwiftCollectionsConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-collections/files/SwiftCollectionsConfig.cmake index 6847ed976e5c..31bb4118181b 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-collections/files/SwiftCollectionsConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-collections/files/SwiftCollectionsConfig.cmake @@ -1,21 +1,23 @@ set(CollectionModules - _RopeModule - BasicContainers - BitCollections - Collections - ContainersPreview - DequeModule - HashTreeCollections - HeapModule - InternalCollectionsUtilities - OrderedCollections - TrailingElementsModule + _RopeModule + BasicContainers + BitCollections + Collections + ContainersPreview + DequeModule + HashTreeCollections + HeapModule + InternalCollectionsUtilities + OrderedCollections + TrailingElementsModule ) -foreach(CollectionModule ${CollectionModules}) - add_library(SwiftCollections::${CollectionModule} @buildType@ IMPORTED) - set_target_properties(SwiftCollections::${CollectionModule} PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}${CollectionModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@" - ) -endforeach() +foreach (CollectionModule ${CollectionModules}) + if (NOT TARGET SwiftCollections::${CollectionModule}) + add_library(SwiftCollections::${CollectionModule} @buildType@ IMPORTED) + set_target_properties(SwiftCollections::${CollectionModule} PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}${CollectionModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@" + ) + endif () +endforeach () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/files/FoundationConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/files/FoundationConfig.cmake index 159354b71c3e..f96c1153e4a1 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/files/FoundationConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/files/FoundationConfig.cmake @@ -1,25 +1,19 @@ -if (NOT TARGET _FoundationICU) - find_package(_FoundationICU) -endif () +find_package(_FoundationICU) +find_package(SwiftCollections) +find_package(SwiftFoundation) -if (NOT TARGET SwiftCollections::_RopeModule) - find_package(SwiftCollections) +if (NOT TARGET Foundation) + add_library(Foundation @buildType@ IMPORTED) + set_target_properties(Foundation PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}Foundation${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift;@dev@/lib/swift/@swiftPlatform@" + ) + target_link_libraries(FoundationEssentials INTERFACE + _FoundationICU + FoundationEssentials + FoundationInternationalization + SwiftCollections::_RopeModule + SwiftCollections::InternalCollectionsUtilities + SwiftCollections::OrderedCollections + ) endif () - -if (NOT TARGET FoundationEssentials) - find_package(SwiftFoundation) -endif () - -add_library(Foundation @buildType@ IMPORTED) -set_target_properties(Foundation PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}Foundation${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift;@dev@/lib/swift/@swiftPlatform@" -) -target_link_libraries(FoundationEssentials INTERFACE - _FoundationICU - FoundationEssentials - FoundationInternationalization - SwiftCollections::_RopeModule - SwiftCollections::InternalCollectionsUtilities - SwiftCollections::OrderedCollections -) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/package.nix index 3e544bb2cbcd..62d189031707 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-foundation/package.nix @@ -1,8 +1,11 @@ { lib, cmake, + createToolchainStubsHook, curl, + darwin, fetchFromGitHub, + fixUnhelpfulCmakeRpathsHook, libxml2, ninja, stdenv, @@ -43,6 +46,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + createToolchainStubsHook + fixUnhelpfulCmakeRpathsHook ninja swift-minimal ]; @@ -66,10 +71,10 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail '@lib@' "''${!outputLib}" \ --replace-fail '@swiftPlatform@' ${stdenv.hostPlatform.swift.platform} '' + # Make sure swift-corelibs-foundation has an rpath pointing at the stdlib (since it is installed outside of it) + # as well as to Dispatch and Swift Foundation. Also do the same for `plutil`. + lib.optionalString (stdenv.hostPlatform.isElf && !stdenv.hostPlatform.isStatic) '' - # Make sure swift-corelibs-foundation has an rpath pointing at the stdlib (since it is installed outside of it) - # as well as to Dispatch and Swift Foundation. Also do the same for `plutil`. - for f in "$out/bin/plutil" "$out/lib/libFoundation${stdenv.hostPlatform.extensions.sharedLibrary}"; do + for f in "$out/bin/plutil" "$out/lib"/*${stdenv.hostPlatform.extensions.sharedLibrary}; do patchelf --add-rpath ${ lib.escapeShellArg ( lib.makeSearchPathOutput "out" "lib/swift/${stdenv.hostPlatform.swift.platform}" [ swift-minimal ] @@ -78,6 +83,9 @@ stdenv.mkDerivation (finalAttrs: { patchelf --add-rpath ${ lib.escapeShellArg ( lib.makeLibraryPath [ + curl + darwin.ICU + libxml2 # Need both for the Swift and non-Swift shared libraries swift-corelibs-libdispatch (swift-corelibs-libdispatch.override { useSwift = false; }) @@ -86,12 +94,6 @@ stdenv.mkDerivation (finalAttrs: { ) } "$f" done - patchelf --add-rpath ${ - lib.escapeShellArg (lib.makeLibraryPath [ curl ]) - } "$out/lib/libFoundationNetworking${stdenv.hostPlatform.extensions.sharedLibrary}" - patchelf --add-rpath ${ - lib.escapeShellArg (lib.makeLibraryPath [ libxml2 ]) - } "$out/lib/libFoundationXML${stdenv.hostPlatform.extensions.sharedLibrary}" ''; inherit doInstallCheck; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/files/dispatchConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/files/dispatchConfig.cmake index 514017631268..972ee66dcb1b 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/files/dispatchConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/files/dispatchConfig.cmake @@ -1,20 +1,25 @@ -add_library(BlocksRuntime @buildType@ IMPORTED) -set_target_properties(BlocksRuntime PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}BlocksRuntime${CMAKE_@buildType@_LIBRARY_SUFFIX}" -) +if (NOT TARGET BlocksRuntime) + add_library(BlocksRuntime @buildType@ IMPORTED) + set_target_properties(BlocksRuntime PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}BlocksRuntime${CMAKE_@buildType@_LIBRARY_SUFFIX}" + ) +endif () -add_library(dispatch @buildType@ IMPORTED) -set_target_properties(dispatch PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}dispatch${CMAKE_@buildType@_LIBRARY_SUFFIX}" -) +if (NOT TARGET dispatch) + add_library(dispatch @buildType@ IMPORTED) + set_target_properties(dispatch PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}dispatch${CMAKE_@buildType@_LIBRARY_SUFFIX}" + ) + set_target_properties(dispatch PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include" + INTERFACE_LINK_LIBRARIES "BlocksRuntime" + ) +endif () -set_target_properties(dispatch PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES "@dev@/include" - INTERFACE_LINK_LIBRARIES "BlocksRuntime" -) - -add_library(swiftDispatch @buildType@ IMPORTED) -set_target_properties(swiftDispatch PROPERTIES - IMPORTED_LOCATION "@out-swift@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}swiftDispatch${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev-swift@/lib/swift;@dev-swift@/lib/swift/@swiftPlatform@" -) +if (NOT TARGET swiftDispatch) + add_library(swiftDispatch @buildType@ IMPORTED) + set_target_properties(swiftDispatch PROPERTIES + IMPORTED_LOCATION "@out-swift@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}swiftDispatch${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev-swift@/lib/swift;@dev-swift@/lib/swift/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/package.nix index 997f1ca98120..e98c8ffb4f7f 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/package.nix @@ -1,7 +1,9 @@ { lib, cmake, + createToolchainStubsHook, fetchFromGitHub, + fixUnhelpfulCmakeRpathsHook, lld, ninja, patchesForVersion, @@ -27,6 +29,8 @@ let lib.escapeShellArg (lib.getDev swift-corelibs-libdispatch-no-overlay) else placeholder "dev"; + + swiftPlatform = stdenv.hostPlatform.swift.platform; in stdenv.mkDerivation (finalAttrs: { @@ -68,9 +72,13 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + fixUnhelpfulCmakeRpathsHook ninja ] - ++ lib.optionals useSwift [ swift-minimal ] + ++ lib.optionals useSwift [ + createToolchainStubsHook + swift-minimal + ] ++ lib.optionals stdenv.hostPlatform.isWindows [ lld ]; postInstall = '' @@ -82,7 +90,7 @@ stdenv.mkDerivation (finalAttrs: { mkdir -p "''${!outputDev}/lib/cmake/dispatch" substitute ${./files/dispatchConfig.cmake} "''${!outputDev}/lib/cmake/dispatch/dispatchConfig.cmake" \ --replace-fail '@buildType@' ${if stdenv.hostPlatform.isStatic then "STATIC" else "SHARED"} \ - --replace-fail '@swiftPlatform@' ${stdenv.hostPlatform.swift.platform} \ + --replace-fail '@swiftPlatform@' ${swiftPlatform} \ --replace-fail '@lib@' ${swift-corelibs-libdispatch-no-overlay-lib} \ --replace-fail '@dev@' ${swift-corelibs-libdispatch-no-overlay-dev} \ --replace-fail '@out-swift@' "$out" \ @@ -106,6 +114,9 @@ stdenv.mkDerivation (finalAttrs: { + lib.optionalString stdenv.hostPlatform.isElf '' dylib="''${!outputLib}/lib/libswiftDispatch${stdenv.hostPlatform.extensions.sharedLibrary}" patchelf --add-rpath ${swift-corelibs-libdispatch-no-overlay-lib}/lib "$dylib" + + # Link libdispatch and libBlocksRuntime into the toolchain because it’s expected to be there. + ln -s ${swift-corelibs-libdispatch-no-overlay-lib}/lib/* "''${!outputDev}/lib/swift/${swiftPlatform}" '' ); diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.3/0001-gnu-install-dirs.patch b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.4/0001-gnu-install-dirs.patch similarity index 100% rename from pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.3/0001-gnu-install-dirs.patch rename to pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.4/0001-gnu-install-dirs.patch diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.3/default.nix b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.4/default.nix similarity index 100% rename from pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.3/default.nix rename to pkgs/development/compilers/swift/by-name/sw/swift-corelibs-libdispatch/patches/6.4/default.nix diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-xctest/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-xctest/package.nix index 7c5310b501cd..46052b9c4015 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-xctest/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-corelibs-xctest/package.nix @@ -1,7 +1,9 @@ { lib, cmake, + createToolchainStubsHook, fetchFromGitHub, + fixUnhelpfulCmakeRpathsHook, ninja, stdenv, swift-corelibs-foundation, @@ -51,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + createToolchainStubsHook + fixUnhelpfulCmakeRpathsHook ninja swift ]; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-crypto/files/SwiftCryptoConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-crypto/files/SwiftCryptoConfig.cmake index b7a7b36566f7..b365e4b3feaf 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-crypto/files/SwiftCryptoConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-crypto/files/SwiftCryptoConfig.cmake @@ -1,5 +1,7 @@ -add_library(Crypto @buildType@ IMPORTED) -set_target_properties(Crypto PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}Crypto${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@;@include@/lib/swift_static/@swiftPlatform@" -) +if (NOT TARGET Crypto) + add_library(Crypto @buildType@ IMPORTED) + set_target_properties(Crypto PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}Crypto${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@include@/lib/swift/@swiftPlatform@;@include@/lib/swift_static/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-crypto/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-crypto/package.nix index 24d87ecbb4ee..54cd51175a68 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-crypto/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-crypto/package.nix @@ -11,6 +11,11 @@ let swiftPlatform = stdenv.hostPlatform.swift.platform; + + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; in stdenv.mkDerivation (finalAttrs: { @@ -55,7 +60,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - swift + swift' ]; buildInputs = [ (lib.getInclude swift-asn1) ]; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-docc/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-docc/package.nix index fa534b173d07..31d5c63e28ad 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-docc/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-docc/package.nix @@ -53,7 +53,7 @@ stdenv.mkDerivation (finalAttrs: { swiftpm ]; - doCheck = !stdenv.hostPlatform.isDarwin; + doCheck = true; postInstall = '' mkdir -p "$out/share/docc" diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-docc/patches/disable-DocCHTMLTests.patch b/pkgs/development/compilers/swift/by-name/sw/swift-docc/patches/disable-DocCHTMLTests.patch index da4168512ea1..ccda5278e785 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-docc/patches/disable-DocCHTMLTests.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swift-docc/patches/disable-DocCHTMLTests.patch @@ -1,10 +1,10 @@ diff --git a/Package.swift b/Package.swift -index 52dbba0e47..e3a1fe9c2c 100644 +index 310ead4c32..6fca3ae3de 100644 --- a/Package.swift +++ b/Package.swift -@@ -146,16 +146,16 @@ +@@ -161,16 +161,16 @@ exclude: ["CMakeLists.txt"], - swiftSettings: [.swiftLanguageMode(.v6)] + swiftSettings: swiftSettings(.v6) ), - .testTarget( - name: "DocCHTMLTests", @@ -14,7 +14,7 @@ index 52dbba0e47..e3a1fe9c2c 100644 - .product(name: "Markdown", package: "swift-markdown"), - .target(name: "DocCTestUtilities"), - ], -- swiftSettings: [.swiftLanguageMode(.v6)] +- swiftSettings: swiftSettings(.v6) - ), + // .testTarget( + // name: "DocCHTMLTests", @@ -24,7 +24,7 @@ index 52dbba0e47..e3a1fe9c2c 100644 + // .product(name: "Markdown", package: "swift-markdown"), + // .target(name: "DocCTestUtilities"), + // ], -+ // swiftSettings: [.swiftLanguageMode(.v6)] ++ // swiftSettings: swiftSettings(.v6) + // ), // Test app for DocCCommandLine diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-driver/files/SwiftDriverConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-driver/files/SwiftDriverConfig.cmake index 02cc584e3d9e..58185dedb1fb 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-driver/files/SwiftDriverConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-driver/files/SwiftDriverConfig.cmake @@ -1,5 +1,7 @@ -add_library(SwiftDriver @buildType@ IMPORTED) -set_target_properties(SwiftDriver PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftDriver${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/@swiftPlatform@" -) +if (NOT TARGET SwiftDriver) + add_library(SwiftDriver @buildType@ IMPORTED) + set_target_properties(SwiftDriver PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftDriver${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-driver/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-driver/package.nix index 683e923f374d..8dcaa8c0d8da 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-driver/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-driver/package.nix @@ -46,8 +46,6 @@ stdenv.mkDerivation (finalAttrs: { # Align Swift Driver’s subcommand lookup behavior with the legacy/C++ frontend. Nixpkgs needs this because it # builds and installs SwiftPM separately from the rest of the Swift toolchain. Otherwise, `swift build` will fail. ./patches/0003-Search-PATH-for-subcommands.patch - # The stdlib is located at the top-level `lib` folder in the toolchain in Nixpkgs. Help `swift repl` find it there. - ./patches/0004-Help-the-repl-find-the-stdlib-in-Nixpkgs.patch ]; strictDeps = true; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-driver/patches/0004-Help-the-repl-find-the-stdlib-in-Nixpkgs.patch b/pkgs/development/compilers/swift/by-name/sw/swift-driver/patches/0004-Help-the-repl-find-the-stdlib-in-Nixpkgs.patch deleted file mode 100644 index eab86d85e61d..000000000000 --- a/pkgs/development/compilers/swift/by-name/sw/swift-driver/patches/0004-Help-the-repl-find-the-stdlib-in-Nixpkgs.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Mon, 7 Sep 2026 19:24:08 -0400 -Subject: [PATCH 4/4] Help the repl find the stdlib in Nixpkgs - -The stdlib is located at `lib` instead of `lib/swift/`, but -`swift repl` only searches the latter for it. ---- - Sources/SwiftDriver/Jobs/ReplJob.swift | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/Sources/SwiftDriver/Jobs/ReplJob.swift b/Sources/SwiftDriver/Jobs/ReplJob.swift -index e7ff7999..d3f75ff2 100644 ---- a/Sources/SwiftDriver/Jobs/ReplJob.swift -+++ b/Sources/SwiftDriver/Jobs/ReplJob.swift -@@ -25,6 +25,11 @@ extension Driver { - ) - try commandLine.appendAll(.framework, .L, from: &parsedOptions) - -+ // Nixpkgs puts Swift libraries in `lib` instead of `lib/swift/`. Help `swift repl` find the stdlib there. -+ let toolchainPath = try toolchain.resolvedTool(.swiftCompiler).path.parentDirectory.parentDirectory -+ let libPath = toolchainPath.appending(component: "lib") -+ commandLine.append(contentsOf: [.flag("-L"), .path(.absolute(libPath))]) -+ - // Squash important frontend options into a single argument for LLDB. - let lldbCommandLine: [Job.ArgTemplate] = [.squashedArgumentList(option: "--repl=", args: commandLine)] - return Job( --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-format/Package.resolved b/pkgs/development/compilers/swift/by-name/sw/swift-format/Package.resolved index 80fc79383ec6..ac0b34d38d64 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-format/Package.resolved +++ b/pkgs/development/compilers/swift/by-name/sw/swift-format/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "0032058e1c61491711ce1d02ca9eb2dc4024ddc7c38bd1cb137eeed2b981fba5", + "originHash" : "c2e834ae20ceba284da4e391f9068096d56fc249f9c01a79efb12ee8b77327ee", "pins" : [ { "identity" : "swift-argument-parser", @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swiftlang/swift-cmark.git", "state" : { - "revision" : "924936d0427cb25a61169739a7660230bffa6ea6", - "version" : "0.8.0" + "revision" : "08ddb528923cc1a6527e02b7a1aee9e516ca749a", + "version" : "0.9.0" } }, { @@ -24,8 +24,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swiftlang/swift-markdown.git", "state" : { - "revision" : "3c6f9523da3a1ec2fd829673e472d95b8097a3b8", - "version" : "0.8.0" + "revision" : "25cb61d3482054b09ae76ca4f281b1bfe7fe5a43", + "version" : "0.9.0" } }, { @@ -33,8 +33,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swiftlang/swift-syntax.git", "state" : { - "branch" : "release/6.3", - "revision" : "79e4b74a295b6eb74a8b585e3a39d29e70c1dbd1" + "branch" : "release/6.4.x", + "revision" : "050f1a346fbbac0ca2cfb15a95274f7bd1cf0ccf" } } ], diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-format/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-format/package.nix index 09d6b8c80e97..355cbf5073d7 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-format/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-format/package.nix @@ -37,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: { swiftpm ]; - doCheck = !stdenv.hostPlatform.isDarwin; + doCheck = true; __structuredAttrs = true; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/files/SwiftFoundationICUConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/files/SwiftFoundationICUConfig.cmake deleted file mode 100644 index 83eef9ba0337..000000000000 --- a/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/files/SwiftFoundationICUConfig.cmake +++ /dev/null @@ -1,5 +0,0 @@ -add_library(_FoundationICU @buildType@ IMPORTED) -set_target_properties(_FoundationICU PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}icucore${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift" -) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/files/_FoundationICUConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/files/_FoundationICUConfig.cmake new file mode 100644 index 000000000000..4164071ed36c --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/files/_FoundationICUConfig.cmake @@ -0,0 +1,7 @@ +if (NOT TARGET _FoundationICU) + add_library(_FoundationICU @buildType@ IMPORTED) + set_target_properties(_FoundationICU PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}icucore${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/package.nix index 5296a0e473f9..0133468b7bf7 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation-icu/package.nix @@ -25,10 +25,10 @@ stdenvNoCC.mkDerivation { # Provide a CMake module. This is primarily used to glue together parts of the Swift toolchain. # Upstream provides a build that does this for us, but we want to reuse our existing ICU build. - mkdir -p "''${!outputDev}/lib/cmake/SwiftFoundationICU" + mkdir -p "''${!outputDev}/lib/cmake/_FoundationICU" export dylibExt="${stdenvNoCC.hostPlatform.extensions.sharedLibrary}" - substitute ${./files/SwiftFoundationICUConfig.cmake} "''${!outputDev}/lib/cmake/SwiftFoundationICU/SwiftFoundationICUConfig.cmake" \ + substitute ${./files/_FoundationICUConfig.cmake} "''${!outputDev}/lib/cmake/_FoundationICU/_FoundationICUConfig.cmake" \ --replace-fail '@buildType@' ${if stdenvNoCC.hostPlatform.isStatic then "STATIC" else "SHARED"} \ --replace-fail '@lib@' ${lib.escapeShellArg (lib.getLib darwin.ICU)} \ --replace-fail '@dev@' "''${!outputDev}" diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/files/SwiftFoundationConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/files/SwiftFoundationConfig.cmake index e7c671a2c516..b3170dbb6d2f 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/files/SwiftFoundationConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/files/SwiftFoundationConfig.cmake @@ -1,23 +1,22 @@ -if (NOT TARGET SwiftCollections::_RopeModule) - find_package(SwiftCollections) +find_package(SwiftCollections) + +if(NOT TARGET FoundationEssentials) + add_library(FoundationEssentials @buildType@ IMPORTED) + set_target_properties(FoundationEssentials PROPERTIES + IMPORTED_LOCATION "@dev@/lib/swift/@swiftPlatform@/${CMAKE_@buildType@_LIBRARY_PREFIX}FoundationEssentials${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift;@dev@/lib/swift/@swiftPlatform@" + ) endif() -add_library(FoundationEssentials @buildType@ IMPORTED) -set_target_properties(FoundationEssentials PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}FoundationEssentials${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift;@dev@/lib/swift/@swiftPlatform@" -) +find_package(_FoundationICU) -if (NOT TARGET _FoundationICU) - find_package(_FoundationICU) +if(NOT TARGET FoundationInternationalization) + add_library(FoundationInternationalization @buildType@ IMPORTED) + set_target_properties(FoundationInternationalization PROPERTIES + IMPORTED_LOCATION "@dev@/lib/swift/@swiftPlatform@/${CMAKE_@buildType@_LIBRARY_PREFIX}FoundationInternationalization${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/@swiftPlatform@" + ) + target_link_libraries(FoundationEssentials INTERFACE + _FoundationICU + ) endif() - -add_library(FoundationInternationalization @buildType@ IMPORTED) -set_target_properties(FoundationInternationalization PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}FoundationInternationalization${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/@swiftPlatform@" -) - -target_link_libraries(FoundationEssentials INTERFACE - _FoundationICU -) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/package.nix index a4ae45aaf401..11b0257ecaad 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/package.nix @@ -1,7 +1,10 @@ { lib, cmake, + createToolchainStubsHook, + darwin, fetchFromGitHub, + fixUnhelpfulCmakeRpathsHook, ninja, patchesForVersion, stdenv, @@ -13,6 +16,10 @@ swift_sources, }: +let + swiftPlatform = stdenv.hostPlatform.swift.platform; +in + stdenv.mkDerivation (finalAttrs: { pname = "swift-foundation"; version = swift_release; @@ -52,8 +59,12 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + fixUnhelpfulCmakeRpathsHook ninja swift-minimal + ] + ++ lib.optionals stdenv.hostPlatform.isElf [ + createToolchainStubsHook # Darwin only builds FoundationMacros, so it doesn’t need stubs. ]; buildInputs = [ @@ -81,7 +92,7 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; - postInstall = ( + postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' moveToOutput lib/swift/host "''${!outputDev}" moveToOutput lib/swift/_FoundationCShims "''${!outputDev}" @@ -93,25 +104,15 @@ stdenv.mkDerivation (finalAttrs: { substitute ${./files/SwiftFoundationConfig.cmake} "''${!outputDev}/lib/cmake/SwiftFoundation/SwiftFoundationConfig.cmake" \ --replace-fail '@buildType@' ${if stdenv.hostPlatform.isStatic then "STATIC" else "SHARED"} \ --replace-fail '@dev@' "''${!outputDev}" \ - --replace-fail '@lib@' "''${!outputLib}" \ - --replace-fail '@swiftPlatform@' ${stdenv.hostPlatform.swift.platform} + --replace-fail '@swiftPlatform@' ${swiftPlatform} - # Copy the _FoundationCollections module. It’s not installed by default. - moduleDir=''${!outputDev}/lib/swift/${stdenv.hostPlatform.swift.platform}/_FoundationCollections.swiftmodule - mkdir -p "$moduleDir" - cp swift/_FoundationCollections.swiftmodule "$moduleDir/${stdenv.hostPlatform.swift.triple}.swiftmodule" + moveToOutput lib/swift/${swiftPlatform} "''${!outputDev}" '' + lib.optionalString (stdenv.hostPlatform.isElf && !stdenv.hostPlatform.isStatic) '' - # Make sure Swift Foundation has an rpath pointing at the stdlib (since it is installed outside of it). - for so in FoundationEssentials FoundationInternationalization; do - patchelf --add-rpath ${ - lib.escapeShellArg ( - lib.makeSearchPathOutput "out" "lib/swift/${stdenv.hostPlatform.swift.platform}" [ swift-minimal ] - ) - } "$out/lib/lib$so${stdenv.hostPlatform.extensions.sharedLibrary}" - done - '' - ); + # In spite of fixUnhelpfulCmakeRpathsHook, CMake still strips the ICU rpath. + patchelf "$out/lib/libFoundationInternationalization.so" \ + --add-rpath ${lib.escapeShellArg (lib.getLib darwin.ICU)}/lib + ''; __structuredAttrs = true; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.2/0002-Devendor-SwiftFoundationICU.patch b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.2/0002-Devendor-SwiftFoundationICU.patch index 07bbb665bc3d..d4e8435bb590 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.2/0002-Devendor-SwiftFoundationICU.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.2/0002-Devendor-SwiftFoundationICU.patch @@ -30,7 +30,7 @@ index 8b4f45e..f71be26 100644 - GIT_REPOSITORY https://github.com/apple/swift-foundation-icu.git - GIT_TAG release/6.2) -endif() -+find_package(SwiftFoundationICU) ++find_package(_FoundationICU) if (_SwiftCollections_SourceDIR) message(STATUS "_SwiftCollections_SourceDIR provided, using swift-foundation-icu checkout at ${_SwiftCollections_SourceDIR}") diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.3/0002-Devendor-SwiftFoundationICU.patch b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/0002-Devendor-SwiftFoundationICU.patch similarity index 92% rename from pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.3/0002-Devendor-SwiftFoundationICU.patch rename to pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/0002-Devendor-SwiftFoundationICU.patch index 333e335e23d4..09c0acab102b 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.3/0002-Devendor-SwiftFoundationICU.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/0002-Devendor-SwiftFoundationICU.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 27 Jun 2026 20:50:03 -0400 -Subject: [PATCH 2/2] Devendor SwiftFoundationICU +Subject: [PATCH 2/3] Devendor SwiftFoundationICU MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -13,7 +13,7 @@ the toolchain, and we don’t want to leak Swift Collections into it. 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index 31638c28..17fddb08 100644 +index 367ab356..b144ec4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,16 +67,7 @@ set(SwiftFoundation_MACRO "" CACHE STRING "Path to Foundation macro plugin") @@ -28,9 +28,9 @@ index 31638c28..17fddb08 100644 - message(STATUS "_SwiftFoundationICU_SourceDIR not provided, checking out local copy of swift-foundation-icu") - FetchContent_Declare(SwiftFoundationICU - GIT_REPOSITORY https://github.com/apple/swift-foundation-icu.git -- GIT_TAG main) +- GIT_TAG release/6.4.x) -endif() -+find_package(SwiftFoundationICU) ++find_package(_FoundationICU) if (_SwiftCollections_SourceDIR) message(STATUS "_SwiftCollections_SourceDIR provided, using swift-collections checkout at ${_SwiftCollections_SourceDIR}") diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/0003-Add-missing-imports.patch b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/0003-Add-missing-imports.patch new file mode 100644 index 000000000000..68327c61e4a2 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/0003-Add-missing-imports.patch @@ -0,0 +1,82 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Thu, 24 Sep 2026 15:51:35 -0400 +Subject: [PATCH 3/3] Add missing imports + +This is apparently needed after updating to Glibc 2.44. +--- + Sources/FoundationEssentials/Date.swift | 2 ++ + .../FoundationEssentials/FileManager/FileManager+Basics.swift | 2 ++ + Sources/FoundationEssentials/URL/URL.swift | 2 ++ + Sources/FoundationEssentials/URL/URL_Impl.swift | 2 ++ + Sources/FoundationEssentials/URL/URL_Swift.swift | 2 ++ + 5 files changed, 10 insertions(+) + +diff --git a/Sources/FoundationEssentials/Date.swift b/Sources/FoundationEssentials/Date.swift +index 45b48443..82b8711e 100644 +--- a/Sources/FoundationEssentials/Date.swift ++++ b/Sources/FoundationEssentials/Date.swift +@@ -24,6 +24,8 @@ import WinSDK + @preconcurrency import WASILibc + #endif + ++internal import _FoundationCShims ++ + #if !FOUNDATION_FRAMEWORK + /// A number of seconds. + @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *) +diff --git a/Sources/FoundationEssentials/FileManager/FileManager+Basics.swift b/Sources/FoundationEssentials/FileManager/FileManager+Basics.swift +index 96ea0d23..c66f9393 100644 +--- a/Sources/FoundationEssentials/FileManager/FileManager+Basics.swift ++++ b/Sources/FoundationEssentials/FileManager/FileManager+Basics.swift +@@ -25,6 +25,8 @@ import WinSDK + @preconcurrency import WASILibc + #endif + ++internal import _FoundationCShims ++ + #if FOUNDATION_FRAMEWORK + internal import Foundation_Private + #endif +diff --git a/Sources/FoundationEssentials/URL/URL.swift b/Sources/FoundationEssentials/URL/URL.swift +index cfc53527..de00dab5 100644 +--- a/Sources/FoundationEssentials/URL/URL.swift ++++ b/Sources/FoundationEssentials/URL/URL.swift +@@ -13,6 +13,8 @@ + public struct URLResourceKey {} + #endif + ++internal import _FoundationCShims ++ + #if FOUNDATION_FRAMEWORK + internal import _ForSwiftFoundation + internal import CoreFoundation_Private.CFURL +diff --git a/Sources/FoundationEssentials/URL/URL_Impl.swift b/Sources/FoundationEssentials/URL/URL_Impl.swift +index 91ed72cd..6e5321bd 100644 +--- a/Sources/FoundationEssentials/URL/URL_Impl.swift ++++ b/Sources/FoundationEssentials/URL/URL_Impl.swift +@@ -24,6 +24,8 @@ import WinSDK + @preconcurrency import WASILibc + #endif + ++internal import _FoundationCShims ++ + #if FOUNDATION_FRAMEWORK + internal import _ForSwiftFoundation + internal import Synchronization +diff --git a/Sources/FoundationEssentials/URL/URL_Swift.swift b/Sources/FoundationEssentials/URL/URL_Swift.swift +index 6ab8fd5c..27e1a3d5 100644 +--- a/Sources/FoundationEssentials/URL/URL_Swift.swift ++++ b/Sources/FoundationEssentials/URL/URL_Swift.swift +@@ -12,6 +12,8 @@ + + #if FOUNDATION_FRAMEWORK + ++internal import _FoundationCShims ++ + #if canImport(os) + internal import os + #endif +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.3/default.nix b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/default.nix similarity index 77% rename from pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.3/default.nix rename to pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/default.nix index 0906afb23227..3bd3dc806575 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.3/default.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-foundation/patches/6.4/default.nix @@ -4,5 +4,5 @@ ../6.2/0001-gnu-install-dirs.patch ./0002-Devendor-SwiftFoundationICU.patch # This is needed after the Glibc 2.44 upgrade. - ../6.2/0003-Add-missing-imports.patch + ./0003-Add-missing-imports.patch ] diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/files/LLBuildConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/files/LLBuildConfig.cmake index 5b32819de214..4f0c04e7fc7d 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/files/LLBuildConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/files/LLBuildConfig.cmake @@ -1,11 +1,15 @@ -add_library(llbuild STATIC IMPORTED) -set_target_properties(llbuild PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_STATIC_LIBRARY_PREFIX}llbuild${CMAKE_STATIC_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/include" -) +if (NOT TARGET llbuild) + add_library(llbuild STATIC IMPORTED) + set_target_properties(llbuild PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_STATIC_LIBRARY_PREFIX}llbuild${CMAKE_STATIC_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include" + ) +endif () -add_library(llbuildSwift @buildType@ IMPORTED) -set_target_properties(llbuildSwift PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}llbuildSwift${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" -) +if (NOT TARGET llbuildSwift) + add_library(llbuildSwift @buildType@ IMPORTED) + set_target_properties(llbuildSwift PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}llbuildSwift${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.3/0001-gnu-install-dirs.patch b/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.4/0001-gnu-install-dirs.patch similarity index 100% rename from pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.3/0001-gnu-install-dirs.patch rename to pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.4/0001-gnu-install-dirs.patch diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.3/default.nix b/pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.4/default.nix similarity index 100% rename from pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.3/default.nix rename to pkgs/development/compilers/swift/by-name/sw/swift-llbuild/patches/6.4/default.nix diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-lmdb/files/LMDBConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-lmdb/files/LMDBConfig.cmake new file mode 100644 index 000000000000..4c149a0c6de8 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-lmdb/files/LMDBConfig.cmake @@ -0,0 +1,7 @@ +if (NOT TARGET LMDB::CLMDB) + add_library(LMDB::CLMDB @buildType@ IMPORTED) + set_target_properties(LMDB::CLMDB PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}CLMDB${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-lmdb/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-lmdb/package.nix new file mode 100644 index 000000000000..2063f5525e87 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift-lmdb/package.nix @@ -0,0 +1,70 @@ +{ + lib, + cmake, + fetchFromGitHub, + fixDarwinDylibNames, + ninja, + stdenv, + swift_sources, + swift_release, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "swift-lmdb"; + version = swift_release; + + outputs = [ + "out" + "dev" + ]; + + src = fetchFromGitHub { + owner = "swiftlang"; + repo = "swift-lmdb"; + tag = "swift-${finalAttrs.version}-RELEASE"; + inherit (swift_sources.swift-lmdb) hash; + }; + + strictDeps = true; + + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) ]; + + nativeBuildInputs = [ + cmake + ninja + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ]; + + installPhase = + # swift-lmdb does not provide an install target, so do it manually. + '' + runHook preInstall + + # Install the dylib + install -m755 -D -t "''${!outputLib}/lib" \ + lib/libCLMDB${stdenv.hostPlatform.extensions.library} + + # Install the headers. + install -m644 -D -t "''${!outputDev}/include" \ + ../Sources/CLMDB/include/* + + # Install CMake config file for the Swift-LMDB library. + mkdir -p "''${!outputDev}/lib/cmake/LMDB" + substitute ${./files/LMDBConfig.cmake} "''${!outputDev}/lib/cmake/LMDB/LMDBConfig.cmake" \ + --replace-fail '@buildType@' ${if stdenv.hostPlatform.isStatic then "STATIC" else "SHARED"} \ + --replace-fail '@dev@' "''${!outputDev}" \ + --replace-fail '@lib@' "''${!outputLib}" + + runHook postInstall + ''; + + __structuredAttrs = true; + + meta = { + homepage = "https://github.com/swiftlang/swift-lmdb"; + description = "SwiftPM wrapper around LMDB"; + platforms = lib.platforms.darwin ++ lib.platforms.linux; + license = lib.licenses.openldap; + teams = [ lib.teams.swift ]; + }; +}) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-syntax/files/SwiftSyntaxConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-syntax/files/SwiftSyntaxConfig.cmake index a4f5c843f0fd..63f90c88fcbd 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-syntax/files/SwiftSyntaxConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-syntax/files/SwiftSyntaxConfig.cmake @@ -1,11 +1,13 @@ set(SyntaxModules - @syntaxModules@ + @syntaxModules@ ) -foreach(SyntaxModule ${SyntaxModules}) - add_library(SwiftSyntax::${SyntaxModule} @buildType@ IMPORTED) - set_target_properties(SwiftSyntax::${SyntaxModule} PROPERTIES - IMPORTED_LOCATION "@lib@/lib/swift/host/${CMAKE_@buildType@_LIBRARY_PREFIX}${SyntaxModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/host" - ) -endforeach() +foreach (SyntaxModule ${SyntaxModules}) + if (NOT TARGET SwiftSyntax::${SyntaxModule}) + add_library(SwiftSyntax::${SyntaxModule} @buildType@ IMPORTED) + set_target_properties(SwiftSyntax::${SyntaxModule} PROPERTIES + IMPORTED_LOCATION "@lib@/lib/swift/host/${CMAKE_@buildType@_LIBRARY_PREFIX}${SyntaxModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/host" + ) + endif () +endforeach () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-syntax/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-syntax/package.nix index 46bb7cbd06eb..395af877bb9c 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-syntax/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-syntax/package.nix @@ -30,6 +30,11 @@ let "SwiftSyntaxMacros" ] ++ lib.optionals (lib.versionAtLeast swift_release "6.3") [ "SwiftRefactor" ]; + + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; in stdenv.mkDerivation (finalAttrs: { @@ -59,7 +64,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = lib.optionals (!useToolchainLibraries) [ cmake ninja - swift + swift' ]; dontConfigure = useToolchainLibraries; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-system/files/SwiftSystemConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-system/files/SwiftSystemConfig.cmake index cbf2d99fe6f2..6535fb748fba 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-system/files/SwiftSystemConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-system/files/SwiftSystemConfig.cmake @@ -1,11 +1,15 @@ -add_library(CSystem STATIC IMPORTED) -set_target_properties(CSystem PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_STATIC_LIBRARY_PREFIX}CSystem${CMAKE_STATIC_LIBRARY_SUFFIX}" -) +if (NOT TARGET CSystem) + add_library(CSystem STATIC IMPORTED) + set_target_properties(CSystem PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_STATIC_LIBRARY_PREFIX}CSystem${CMAKE_STATIC_LIBRARY_SUFFIX}" + ) +endif () -add_library(SwiftSystem::SystemPackage STATIC IMPORTED) -set_target_properties(SwiftSystem::SystemPackage PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_STATIC_LIBRARY_PREFIX}SystemPackage${CMAKE_STATIC_LIBRARY_SUFFIX}" - INTERFACE_LINK_LIBRARIES CSystem - INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift_static/@swiftPlatform@" -) +if (NOT TARGET SwiftSystem::SystemPackage) + add_library(SwiftSystem::SystemPackage STATIC IMPORTED) + set_target_properties(SwiftSystem::SystemPackage PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_STATIC_LIBRARY_PREFIX}SystemPackage${CMAKE_STATIC_LIBRARY_SUFFIX}" + INTERFACE_LINK_LIBRARIES CSystem + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift_static/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-system/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-system/package.nix index 86b008c41746..5241fcfddf70 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-system/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-system/package.nix @@ -2,12 +2,20 @@ lib, cmake, fetchFromGitHub, + fixUnhelpfulCmakeRpathsHook, gitUpdater, ninja, stdenv, swift, }: +let + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; +in + stdenv.mkDerivation (finalAttrs: { pname = "swift-system"; version = "1.8.1"; @@ -36,7 +44,10 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - swift + swift' + ] + ++ lib.optionals stdenv.hostPlatform.isElf [ + fixUnhelpfulCmakeRpathsHook ]; postInstall = '' diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-testing/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-testing/package.nix index 8b52585f905c..85fb7f529958 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-testing/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-testing/package.nix @@ -1,7 +1,9 @@ { lib, cmake, + createToolchainStubsHook, fetchFromGitHub, + fixUnhelpfulCmakeRpathsHook, ninja, stdenv, swift, @@ -16,7 +18,11 @@ let # Can’t use `swift-minimal`. Swift Testing fails to build using the classic Swift frontend. # It requires the new Swift compiler driver. - swift' = swift.override { swift-testing = null; }; + swift' = swift.override { + swift-testing = null; + enableRepl = false; + enableSourceKitLSP = false; + }; in stdenv.mkDerivation (finalAttrs: { @@ -53,6 +59,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + createToolchainStubsHook + fixUnhelpfulCmakeRpathsHook ninja swift' ]; @@ -68,6 +76,9 @@ stdenv.mkDerivation (finalAttrs: { -id "''${!outputLib}/lib/libTesting${sharedLibrary}" install_name_tool "''${!outputDev}/lib/swift/host/plugins/testing/libTestingMacros${buildSharedLibrary}" \ -id "''${!outputDev}/lib/swift/host/plugins/testing/libTestingMacros${buildSharedLibrary}" + + # See below. + mv "''${!outputLib}/lib/lib_Testing_UIKit.dylib" lib_Testing_UIKit.dylib '' else '' @@ -76,6 +87,12 @@ stdenv.mkDerivation (finalAttrs: { '' ); + # Work around the following error when creating the toolchain stubs. + # lib/lib_Testing_UIKit.dylib' truncated or malformed object (node is not an export node in export trie data at node: 0x0) + preFixup = lib.optionalString stdenv.hostPlatform.isDarwin '' + mv lib_Testing_UIKit.dylib "''${!outputLib}/lib/lib_Testing_UIKit.dylib" + ''; + __structuredAttrs = true; meta = { diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-testing/patches/0001-gnu-install-dirs.patch b/pkgs/development/compilers/swift/by-name/sw/swift-testing/patches/0001-gnu-install-dirs.patch index caa75758e8c8..4f773ed981a1 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-testing/patches/0001-gnu-install-dirs.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swift-testing/patches/0001-gnu-install-dirs.patch @@ -18,7 +18,7 @@ index 38aeda61..2499a8db 100644 -set(SwiftTesting_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}/swift$<$>:_static>/${SwiftTesting_PLATFORM_SUBDIR}$<$,$>>:/testing>$<$:/${SwiftTesting_ARCH_SUBDIR}>") -set(SwiftTesting_INSTALL_SWIFTMODULEDIR "${CMAKE_INSTALL_LIBDIR}/swift$<$>:_static>/${SwiftTesting_PLATFORM_SUBDIR}$<$,$>>:/testing>") +set(SwiftTesting_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}") -+set(SwiftTesting_INSTALL_SWIFTMODULEDIR "@include@/lib/swift$<$>:_static>/${SwiftTesting_PLATFORM_SUBDIR}$<$,$>>:/testing>") ++set(SwiftTesting_INSTALL_SWIFTMODULEDIR "@include@/lib/swift$<$>:_static>/${SwiftTesting_PLATFORM_SUBDIR}") add_compile_options($<$:-no-toolchain-stdlib-rpath>) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/files/SwiftToolsProtocolsConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/files/SwiftToolsProtocolsConfig.cmake index 2cd95e6cba30..7e621f09aaa1 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/files/SwiftToolsProtocolsConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/files/SwiftToolsProtocolsConfig.cmake @@ -8,10 +8,12 @@ set(ProtocolsModules ToolsProtocolsSwiftExtensions ) -foreach(ProtocolsModule ${ProtocolsModules}) - add_library(SwiftToolsProtocols::${ProtocolsModule} @buildType@ IMPORTED) - set_target_properties(SwiftToolsProtocols::${ProtocolsModule} PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}${ProtocolsModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" - ) -endforeach() +foreach (ProtocolsModule ${ProtocolsModules}) + if (NOT TARGET SwiftToolsProtocols::${ProtocolsModule}) + add_library(SwiftToolsProtocols::${ProtocolsModule} @buildType@ IMPORTED) + set_target_properties(SwiftToolsProtocols::${ProtocolsModule} PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}${ProtocolsModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" + ) + endif () +endforeach () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/package.nix index 29848cc8ba47..d9bbc7a0a874 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift-tools-protocols/package.nix @@ -8,18 +8,21 @@ stdenv, swift, swift_sources, + swift_release, }: let swiftPlatform = stdenv.hostPlatform.swift.platform; + + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; in -# The version of swift-tools-protocols comes from Swift’s `update_checkout` script. It is unfortunately not tagged -# using the `swift--RELEASE` convention other toolchain dependencies use. -# See: https://github.com/swiftlang/swift/blob/main/utils/update_checkout/update-checkout-config.json stdenv.mkDerivation (finalAttrs: { pname = "swift-tools-protocols"; - inherit (swift_sources.swift-tools-protocols) version; + version = swift_release; outputs = [ "out" @@ -29,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "swiftlang"; repo = "swift-tools-protocols"; - tag = swift_sources.swift-tools-protocols.version; + tag = "swift-${finalAttrs.version}-RELEASE"; inherit (swift_sources.swift-tools-protocols) hash; }; @@ -49,7 +52,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - swift + swift' ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvm_libtool ]; diff --git a/pkgs/development/compilers/swift/by-name/sw/swift-tools-support-core/files/TSCConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swift-tools-support-core/files/TSCConfig.cmake index aaf13a84c523..088192db6e13 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift-tools-support-core/files/TSCConfig.cmake +++ b/pkgs/development/compilers/swift/by-name/sw/swift-tools-support-core/files/TSCConfig.cmake @@ -1,11 +1,15 @@ -add_library(TSCBasic @buildType@ IMPORTED) -set_target_properties(TSCBasic PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftToolsSupport${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" -) +if (NOT TARGET TSCBasic) + add_library(TSCBasic @buildType@ IMPORTED) + set_target_properties(TSCBasic PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftToolsSupport${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" + ) +endif () -add_library(TSCUtility @buildType@ IMPORTED) -set_target_properties(TSCUtility PROPERTIES - IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftToolsSupport${CMAKE_@buildType@_LIBRARY_SUFFIX}" - INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" -) +if (NOT TARGET TSCUtility) + add_library(TSCUtility @buildType@ IMPORTED) + set_target_properties(TSCUtility PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}SwiftToolsSupport${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/include;@dev@/lib/swift/@swiftPlatform@" + ) +endif () diff --git a/pkgs/development/compilers/swift/by-name/sw/swift/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift/package.nix index bc96a9cd7f91..936f730c5d7f 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift/package.nix @@ -3,10 +3,13 @@ config, apple-sdk_14, apple-sdk_26, + apple-sdk_27, callPackage, + indexstore-db, llvmPackages, llvmPackages_upstream, patchelf, + sourcekit-lsp, stdenv, stdlib, swift-corelibs-foundation, @@ -20,13 +23,18 @@ symlinkJoin, swift_release, enableRepl ? true, # Whether to build and include LLDB for the Swift REPL. + enableSourceKitLSP ? true, # Whether to include sourcekit-lsp, which is expected to be in the toolchain. }: let includeTesting = swiftc.supportsMacros && swift-testing != null; # Need to use an older SDK if `swiftc` does not support macros. - propagated-sdk = if swiftc.supportsMacros then apple-sdk_26 else apple-sdk_14; + propagated-sdk = + if swiftc.supportsMacros then + (if lib.versions.majorMinor swift_release == "6.2" then apple-sdk_26 else apple-sdk_27) + else + apple-sdk_14; # The toolchain needs to propagate libdispatch with and without the Swift overlay to make sure it propagates # both the non-Swift shared libraries and the Swift overlay shared library. @@ -43,21 +51,20 @@ let # LLDB is used by `swift repl` to provide the REPL. llvmPackages.lldb.out ] + ++ lib.optionals enableSourceKitLSP [ + sourcekit-lsp.out + indexstore-db.out + ] ++ lib.optionals includeTesting [ swift-corelibs-xctest.dev - swift-corelibs-xctest.out swift-testing.dev - swift-testing.out ] ++ lib.optionals (stdlib != null) [ stdlib.dev - stdlib.out swiftc.dev ] ++ lib.optionals (swift-driver != null) [ swift-driver.out - swift-driver.dev - swift-driver.lib ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && swift-foundation != null) [ # Needed for FoundationMacros, which is otherwise not part of the SDK on Darwin. @@ -65,17 +72,13 @@ let ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) ( lib.optionals (swift-corelibs-libdispatch != null) [ - swift-corelibs-libdispatch.out swift-corelibs-libdispatch.dev - swift-corelibs-libdispatch-no-overlay.out swift-corelibs-libdispatch-no-overlay.dev ] ++ lib.optionals (swift-foundation != null) [ - swift-corelibs-foundation.out swift-corelibs-foundation.dev swift-foundation-icu.out swift-foundation.dev - swift-foundation.out ] ); }; @@ -173,6 +176,12 @@ stdenv.mkDerivation (finalAttrs: { done fi + # Swift Build expects to find and load libclang from the toolchain. + ln -s ${lib.escapeShellArg (lib.getLib llvmPackages.libclang)}/lib/libclang${stdenv.hostPlatform.extensions.sharedLibrary} "$out/lib/libclang${stdenv.hostPlatform.extensions.sharedLibrary}" + + # Swift Build and SwiftPM need to load IndexStoreDB for Swift Testing support to work. + ln -s ${lib.escapeShellArg (lib.getLib llvmPackages.libclang)}/lib/libIndexStore${stdenv.hostPlatform.extensions.sharedLibrary} "$out/lib/libIndexStore${stdenv.hostPlatform.extensions.sharedLibrary}" + # Propagated inputs in `$dev/nix-support` have to be substituted to use this derivation instead of swiftc. for f in "$out/nix-support/"*; do orig=$(readlink "$f") @@ -193,6 +202,7 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail @objdump@ ${lib.escapeShellArg (lib.getExe' llvmPackages_upstream.llvm "llvm-objdump")} \ --replace-fail @install_name_tool@ ${lib.escapeShellArg (lib.getExe' llvmPackages_upstream.llvm "llvm-install-name-tool")} \ --replace-fail @stdlibPath@ ${lib.escapeShellArg stdlib.out} \ + --replace-fail @store-dir@ ${lib.escapeShellArg builtins.storeDir} \ --replace-fail @swiftPath@ "$out" \ --replace-fail @swiftPlatform@ ${stdenv.hostPlatform.swift.platform} ''} diff --git a/pkgs/development/compilers/swift/by-name/sw/swift/setup-hook.sh b/pkgs/development/compilers/swift/by-name/sw/swift/setup-hook.sh index 1d82805dab7b..671964bbe719 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift/setup-hook.sh +++ b/pkgs/development/compilers/swift/by-name/sw/swift/setup-hook.sh @@ -1,27 +1,65 @@ fixSwiftRpathsIn() { local dir=$1 - local swiftPath=@swiftPath@/lib - local swiftPathForPlatform=@swiftPath@/lib/swift/@swiftPlatform@ + echo "fixing stdlib rpaths in $dir" + + local -a swiftPaths=( + @swiftPath@/lib/swift/@swiftPlatform@ + @swiftPath@/usr/lib/swift/@swiftPlatform@ + @swiftPath@/lib + @swiftPath@/usr/lib + ) local stdlibPath=@stdlibPath@/lib local f while IFS= read -d "" f; do if LC_ALL=C isMachO "$f"; then + local -a rpaths IFS= readarray -d $'\n' -t rpaths < <(@objdump@ --macho --rpaths "$f" | tail -n +2) + + local oldPath + local swiftPath for oldPath in "${rpaths[@]}"; do - local newPath=${oldPath/$swiftPathForPlatform/$stdlibPath} - newPath=${newPath/$swiftPath/$stdlibPath} - if [ "$newPath" != "$oldPath" ]; then + local newPath=$oldPath + for swiftPath in "${swiftPaths[@]}"; do + newPath=${newPath/$swiftPath/$stdlibPath} + done + + # Avoid depending on the SDK because this hook needs to work on Darwin and non-Darwin platforms. + # Swift Build 6.4 adds an rpath to the SDK, but we don’t have any backdeploy libraries there, + # so remove it to avoid pulling the SDK into any closure that needs to support backdeploying. + if [[ "$oldPath" =~ ^@store-dir@/[^-]*-apple-sdk-[0-9]+\.[0-9]+/Toolchains/XcodeDefault\.xctoolchain/usr/lib/swift[^/]*/macosx$ ]]; then + echo "deleting SDK rpath $oldPath" + @install_name_tool@ "$f" -delete_rpath "$oldPath" + elif [ "$newPath" != "$oldPath" ]; then + echo "$f: replacing toolchain rpath $oldPath with stdlib rpath $newPath" @install_name_tool@ "$f" -rpath "$oldPath" "$newPath" fi done elif isELF "$f"; then - local oldRpaths=$(@patchelf@ --print-rpath "$f") - local newRpaths=${oldRpaths/$swiftPathForPlatform/$stdlibPath} - newRpaths=${newRpaths/$swiftPath/$stdlibPath} - if [ "$newRpaths" != "$oldRpaths" ]; then - @patchelf@ --set-rpath "$newRpaths" "$f" + local -a rpaths + IFS= readarray -d ':' -t rpaths < <(patchelf --print-rpath "$f" | tr -d $'\n') + + # newRpaths will be built up as each rpath is examined because patchelf can’t patch only one at a time. + local -a newRpaths=() + + local oldPath + local swiftPath + for oldPath in "${rpaths[@]}"; do + local newPath=$oldPath + for swiftPath in "${swiftPaths[@]}"; do + newPath=${newPath/$swiftPath/$stdlibPath} + done + if [ "$newPath" != "$oldPath" ]; then + echo "$f: replacing toolchain rpath $oldPath with stdlib rpath $newPath" + newRpaths+=("$newPath") + else + newRpaths+=("$oldPath") + fi + done + + if [[ "${newRpaths[@]}" != "${rpaths[@]}" ]]; then + @patchelf@ --set-rpath "$(IFS=:; echo "${newRpaths[*]}")" "$f" fi fi done < <(find "$dir" -type f -print0) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/package.nix new file mode 100644 index 000000000000..ab3fe7f20f60 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/package.nix @@ -0,0 +1,29 @@ +{ + llvmPackages, + stdenv, + swift, + swiftpm, +}: + +stdenv.mkDerivation { + name = "swift-test-cxx-interop-lld"; + + src = ./src; + + strictDeps = true; + + env.NIX_CFLAGS_LINK = "-fuse-ld=lld"; + + nativeBuildInputs = [ + swift + swiftpm + llvmPackages.lld + ]; + + installPhase = '' + swift run -c release Repro | grep 11 + touch "$out" + ''; + + __structuredAttrs = true; +} diff --git a/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/src/Package.swift b/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/src/Package.swift new file mode 100644 index 000000000000..241cf8f288f0 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/src/Package.swift @@ -0,0 +1,13 @@ +// swift-tools-version: 6.2 + +import PackageDescription + +let package = Package( + name: "Repro", + targets: [ + .executableTarget( + name: "Repro", + swiftSettings: [.interoperabilityMode(.Cxx)] + ) + ] +) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/src/Sources/main.swift b/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/src/Sources/main.swift new file mode 100644 index 000000000000..7b1409463124 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swift/tests/cxx-interop-lld/src/Sources/main.swift @@ -0,0 +1,4 @@ +import CxxStdlib + +let hello = std.string("Hello, C++!") +print(Array(hello).count) diff --git a/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/package.nix b/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/package.nix index a320da544018..280bc7615eae 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/package.nix @@ -1,5 +1,4 @@ { - lib, swift, swiftpm, stdenv, @@ -24,9 +23,4 @@ stdenv.mkDerivation { ''; __structuredAttrs = true; - - meta.badPlatforms = [ - # This test won’t work on Darwin until XCTest is modified to work on Darwin without requiring Xcode. - lib.systems.inspect.patterns.isDarwin - ]; } diff --git a/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/src/Package.swift b/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/src/Package.swift index e707f58c6b29..d7ff6623a0e6 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/src/Package.swift +++ b/pkgs/development/compilers/swift/by-name/sw/swift/tests/swift-testing/src/Package.swift @@ -4,6 +4,7 @@ import PackageDescription let package = Package( name: "test-swift-testing", + platforms: [.macOS("10.15")], products: [ .library(name: "test-swift-testing", type: .dynamic, targets: ["test-swift-testing"]) ], diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/package.nix b/pkgs/development/compilers/swift/by-name/sw/swiftc/package.nix index f79db2732329..f73776fdc387 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftc/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/package.nix @@ -2,6 +2,7 @@ lib, apple-sdk_14, apple-sdk_26, + apple-sdk_27, bootstrapStage, buildSwiftPackages, cmake, @@ -13,13 +14,13 @@ libxml2, llvmPackages, llvm_libtool, - ninja, ninja_1_11, patchesForVersion, perl, python3, srcOnly, stdenv, + stdenvNoCC, stdlib, swift-cmark, swift-corelibs-libdispatch, @@ -38,11 +39,9 @@ "compiler" "compiler-swift-syntax-lib" # "dev" - "editor-integration" # "llvm-toolchain-dev-tools" "license" "sdk-overlay" - (if stdenv.hostPlatform.isDarwin then "sourcekit-xpc-service" else "sourcekit-inproc") # "stdlib-experimental" "swift-syntax-lib" # "testsuite-tools" @@ -50,6 +49,16 @@ "toolchain-tools" # "tools" ] + # Only build editor integration in the final compiler. It’s not needed for the bootstrap compiler or stdlib. + ++ lib.optionals (lib.versions.majorMinor swift_release != "6.2" && bootstrapStage == 2) ( + [ + "editor-integration" + "sourcekit-inproc" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "sourcekit-xpc-service" + ] + ) ++ lib.optionals (stdlib == null) [ "back-deployment" "sdk-overlay" @@ -61,8 +70,15 @@ }: let + # Swift 6.2.4 requires different settings and disables LTO to improve build times. + isBootstrapToolchain62 = lib.versions.majorMinor swift_release == "6.2"; + # SDK versions past 14.x don’t work with the c++-based bootstrap compiler due to unconditionally exposing macros. - build-sdk = if bootstrapStage == 2 then apple-sdk_26 else apple-sdk_14; + build-sdk = + if bootstrapStage == 2 then + (if isBootstrapToolchain62 then apple-sdk_26 else apple-sdk_27) + else + apple-sdk_14; # `buildSwiftPackages` is always the previous stage. Building the stage 2 compiler requires linking against the # separately built stdlib because it does not build its own. Override the stage 1 compiler to use it. @@ -87,6 +103,24 @@ let libllvm ; + lld = + if stdenv.hostPlatform.isDarwin then + # Darwin can use LLD unwrapped because install names ensure it can find the linked dylibs. + # The wrapped version also doesn’t seem to work on Darwin. + llvmPackages.lld + else + stdenvNoCC.mkDerivation { + # The linker in `llvmPackages.lld` isn’t wrapped, which causes the build to fail due to missing rpaths. + pname = "lld-wrapper"; + version = lib.getVersion llvmPackages.lld; + + buildCommand = '' + mkdir -p "$out/bin" + ln -s ${lib.getExe' llvmPackages.bintools "ld"} "$out/bin/ld" + ln -s ${lib.getExe' llvmPackages.bintools "ld.lld"} "$out/bin/ld.lld" + ''; + }; + inherit (darwin) sigtool; # https://github.com/NixOS/nixpkgs/issues/327836 @@ -94,12 +128,7 @@ let # Can reproduce using `nix --option cores 2 build -f . swift`. # Until we find out the exact cause, pin ninja to version 1.11.1. # Note: While upstream is pinned to a newer version of Ninja now, it still has this problem. - # TODO(@reckenrode): Make unconditional on staging after staging-next merge. - ninja' = - if lib.versions.majorMinor swift_release == "6.3" && stdenv.hostPlatform.isLinux then - ninja_1_11 - else - ninja; + ninja = ninja_1_11; doCheck = false; # TODO: Implement tests per https://github.com/swiftlang/swift/blob/main/docs/Testing.md. @@ -231,6 +260,9 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "SWIFT_INCLUDE_TESTS" doCheck) # Swift Concurrency is needed to build the stage 1 compiler on Linux. (lib.cmakeBool "SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY" true) + # Linking with LLD is more compatible. The resulting shared libraries can be linked by either LLD or GNU ld. + # The same is not true when linking with GNU ld. It’s also faster. + (lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD") ] ++ lib.optionals (bootstrapStage == 1) [ # Work around crashes in ownership verifier in the bootstrap compiler. @@ -256,10 +288,6 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals (bootstrapStage >= 2) ( [ - # Build Swift with LTO for better performance. Only enable it for tools. The stdlib will enable it separately. - (lib.cmakeFeature "SWIFT_TOOLS_ENABLE_LTO" "thin") - # LTO is slow with ld64. Only use it for targets that benefit from LTO. - (lib.cmakeBool "SWIFT_TOOLS_LD64_LTO_CODEGEN_ONLY_FOR_SUPPORTING_TARGETS" stdenv.hostPlatform.isDarwin) # Enable the remaining features. (lib.cmakeBool "SWIFT_ENABLE_EXPERIMENTAL_CXX_INTEROP" true) (lib.cmakeBool "SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING" true) @@ -271,16 +299,22 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "SWIFT_ENABLE_RUNTIME_MODULE" true) (lib.cmakeBool "SWIFT_STDLIB_ENABLE_STRICT_AVAILABILITY" true) ] - ++ lib.optionals stdenv.cc.bintools.isGNU [ - # Use `llvm-ar` and `llvm-ranlib` when LTO is enabled, or builds will fail due missing symbol tables in archives. - # e.g., `error: lib/libswiftDemangling.a: no archive symbol table (run ranlib)`. - (lib.cmakeFeature "CMAKE_AR" (lib.getExe' llvm "llvm-ar")) - (lib.cmakeFeature "CMAKE_RANLIB" (lib.getExe' llvm "llvm-ranlib")) - # Make sure Swift is built with a consistent toolchan version. This doesn’t matter for non-LTO builds, but it causes - # LTO builds to fail when objects built with a newer Clang are processed by the Swift Clang’s libLTO. - (lib.cmakeFeature "CMAKE_C_COMPILER" (lib.getExe' clang "clang")) - (lib.cmakeFeature "CMAKE_CXX_COMPILER" (lib.getExe' clang "clang++")) - ] + ++ lib.optionals (!isBootstrapToolchain62) ( + [ + # Build Swift with LTO for better performance. Only enable it for tools. The stdlib will enable it separately. + (lib.cmakeFeature "SWIFT_TOOLS_ENABLE_LTO" "thin") + ] + ++ lib.optionals stdenv.cc.bintools.isGNU [ + # Use `llvm-ar` and `llvm-ranlib` when LTO is enabled, or builds will fail due missing symbol tables in archives. + # e.g., `error: lib/libswiftDemangling.a: no archive symbol table (run ranlib)`. + (lib.cmakeFeature "CMAKE_AR" (lib.getExe' llvm "llvm-ar")) + (lib.cmakeFeature "CMAKE_RANLIB" (lib.getExe' llvm "llvm-ranlib")) + # Make sure Swift is built with a consistent toolchain version. This doesn’t matter for non-LTO builds, but it causes + # LTO builds to fail when objects built with a newer Clang are processed by the Swift Clang’s libLTO. + (lib.cmakeFeature "CMAKE_C_COMPILER" (lib.getExe' clang "clang")) + (lib.cmakeFeature "CMAKE_CXX_COMPILER" (lib.getExe' clang "clang++")) + ] + ) ); env = { @@ -293,6 +327,11 @@ stdenv.mkDerivation (finalAttrs: { # dependent packages to require a linker plugin to read the LLVM bitcode. ++ lib.optionals (bootstrapStage == 2 && stdenv.hostPlatform.isElf) [ "-ffat-lto-objects" ] ); + } + // lib.optionalAttrs stdenv.hostPlatform.isDarwin { + # Avoid the following error when running `install_name_tool`: + # changing install names or rpaths can't be redone for: (for architecture arm64) because larger updated load commands do not fit + NIX_LDFLAGS = "-headerpad_max_install_names"; }; preConfigure = @@ -323,7 +362,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake - ninja' + lld + ninja perl # For pod2man python3 swift @@ -444,6 +484,7 @@ stdenv.mkDerivation (finalAttrs: { '' + lib.optionalString (lib.versionAtLeast finalAttrs.version "6.3") '' swiftLibsDeps+=( + libnixpkgsStuff libswiftBasicSwift ) '' @@ -478,7 +519,7 @@ stdenv.mkDerivation (finalAttrs: { swiftBinaryDir=''${!outputBin} swiftIncludeDirs=$swiftcIncPath/include\;$stdlibIncPath/lib\;$stdlibIncPath/include\;$static/include - swiftLibraryDirs=$swiftcDevPath/lib\;$swiftcLibPath/lib\;$stdlibLibPath/lib\;$stdlibDevPath/lib + swiftLibraryDirs=$swiftcDevPath/lib\;$swiftcLibPath/lib\;$stdlibLibPath/lib\;$stdlibDevPath/lib/swift/${swiftPlatform} swiftArch=${stdenv.hostPlatform.swift.arch} swiftPlatform=${stdenv.hostPlatform.swift.platform} @@ -532,7 +573,7 @@ stdenv.mkDerivation (finalAttrs: { # one of several outputs belong to different derivations. sed -i "$static/lib/cmake/swift/SwiftExports.cmake" \ -e "s|IMPORTED_LOCATION_''${buildType^^} \"$buildDir/lib/swift/$swiftPlatform/$swiftArch/\(.*$sharedLibExt\)\"|IMPORTED_LOCATION_''${buildType^^} \"$stdlibLibPath/lib/\1\"|g" \ - -e "s|IMPORTED_LOCATION_''${buildType^^} \"$buildDir/lib/swift/$swiftPlatform/$swiftArch/\(.*$staticLibExt\)\"|IMPORTED_LOCATION_''${buildType^^} \"$stdlibDevPath/lib/\1\"|g" \ + -e "s|IMPORTED_LOCATION_''${buildType^^} \"$buildDir/lib/swift/$swiftPlatform/$swiftArch/\(.*$staticLibExt\)\"|IMPORTED_LOCATION_''${buildType^^} \"$stdlibDevPath//lib/swift/${swiftPlatform}/\1\"|g" \ -e "s|IMPORTED_LOCATION_''${buildType^^} \"$buildDir/lib/\(swift-[^/]*\)/$swiftPlatform/$swiftArch/\([^/\"]*\)\"|IMPORTED_LOCATION_''${buildType^^} \"$stdlibLibPath/lib/\1/\2\"|g" \ -e "s|IMPORTED_LOCATION_''${buildType^^} \"$buildDir/lib/swift/host/\(.*$sharedLibExt\)\"|IMPORTED_LOCATION_''${buildType^^} \"$swiftcLibPath/lib/swift/host/\1\"|g" \ -e "s|IMPORTED_LOCATION_''${buildType^^} \"$buildDir/lib/swift/host/\(.*$staticLibExt\)\"|IMPORTED_LOCATION_''${buildType^^} \"$swiftcDevPath/lib/swift/host/\1\"|g" \ @@ -562,8 +603,5 @@ stdenv.mkDerivation (finalAttrs: { badPlatforms = [ lib.systems.inspect.patterns.is32bit ]; license = lib.licenses.asl20; teams = [ lib.teams.swift ]; - # TODO(@reckenrode): Drop in the Swift 6.4.0 update, which switches the linker to LLD. - # aarch64-linux is failing to link with gold on Hydra: https://hydra.nixos.org/build/349228350 - broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64; }; }) diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch index 7f8aacde44a1..7f6ac57da11d 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch @@ -15,60 +15,35 @@ negative affects on every package that wants to use Swift and compile C++ code. The C++ library must be removed from the standard platform configuration, which makes adding Swift as a dependency too disruptive. --- - include/swift/ClangImporter/ClangImporter.h | 3 +- - lib/ClangImporter/ClangImporter.cpp | 8 ++++ - lib/ClangImporter/ClangIncludePaths.cpp | 18 ++++++-- - lib/ClangImporter/ClangIncludePaths.h | 51 +++++++++++++++++++++ - lib/Frontend/CompilerInvocation.cpp | 2 +- - 5 files changed, 76 insertions(+), 6 deletions(-) + lib/ClangImporter/ClangImporter.cpp | 8 ++++ + lib/ClangImporter/ClangIncludePaths.cpp | 9 +++++ + lib/ClangImporter/ClangIncludePaths.h | 51 +++++++++++++++++++++++++ + 3 files changed, 68 insertions(+) -diff --git a/include/swift/ClangImporter/ClangImporter.h b/include/swift/ClangImporter/ClangImporter.h -index 274c659d54c..d478fbbccec 100644 ---- a/include/swift/ClangImporter/ClangImporter.h -+++ b/include/swift/ClangImporter/ClangImporter.h -@@ -231,7 +231,8 @@ public: - static llvm::opt::InputArgList - createClangArgs(const ClangImporterOptions &ClangImporterOpts, - const SearchPathOptions &SearchPathOpts, -- clang::driver::Driver &clangDriver); -+ clang::driver::Driver &clangDriver, -+ bool enableCXXInterop); - - ClangImporter(const ClangImporter &) = delete; - ClangImporter(ClangImporter &&) = delete; diff --git a/lib/ClangImporter/ClangImporter.cpp b/lib/ClangImporter/ClangImporter.cpp -index 47361b38a0f..1b50ea3ab44 100644 +index 47361b38a0f..7c050b8f3e0 100644 --- a/lib/ClangImporter/ClangImporter.cpp +++ b/lib/ClangImporter/ClangImporter.cpp -@@ -564,7 +564,15 @@ void importer::getNormalInvocationArguments( +@@ -564,6 +564,14 @@ void importer::getNormalInvocationArguments( }); } + // Ensure libc is available. The C standard library is separate from the sysroot + // on most platforms in Nixpkgs. (Darwin is a prominent exception.) + addFlagsFromNixCC(invocationArgStrs, "libc-cflags"); ++ ++ // Ensure the libc++ headers are available. The C++ standard library is separate ++ // from the sysroot on most platforms in Nixpkgs. ++ addFlagsFromNixCC(invocationArgStrs, "libcxx-cxxflags"); + if (LangOpts.EnableCXXInterop) { -+ // Ensure the libc++ headers are available. The C++ standard library is separate -+ // from the sysroot on most platforms in Nixpkgs. -+ addFlagsFromNixCC(invocationArgStrs, "libcxx-cxxflags"); -+ if (auto path = getCxxShimModuleMapPath(searchPathOpts, LangOpts, triple)) { invocationArgStrs.push_back((Twine("-fmodule-map-file=") + *path).str()); - } diff --git a/lib/ClangImporter/ClangIncludePaths.cpp b/lib/ClangImporter/ClangIncludePaths.cpp -index 948b99876f0..b46ec2980f0 100644 +index 948b99876f0..6da199e1f0a 100644 --- a/lib/ClangImporter/ClangIncludePaths.cpp +++ b/lib/ClangImporter/ClangIncludePaths.cpp -@@ -178,12 +178,22 @@ static std::optional findFirstIncludeDir( - llvm::opt::InputArgList - ClangImporter::createClangArgs(const ClangImporterOptions &ClangImporterOpts, - const SearchPathOptions &SearchPathOpts, -- clang::driver::Driver &clangDriver) { -+ clang::driver::Driver &clangDriver, -+ bool enableCXXInterop) { - // Flags passed to Swift with `-Xcc` might affect include paths. - std::vector clangArgs; +@@ -184,6 +184,15 @@ ClangImporter::createClangArgs(const ClangImporterOptions &ClangImporterOpts, for (const auto &each : ClangImporterOpts.ExtraArgs) { clangArgs.push_back(each.c_str()); } @@ -77,40 +52,13 @@ index 948b99876f0..b46ec2980f0 100644 + // on most platforms in Nixpkgs. (Darwin is a prominent exception.) + addFlagsFromNixCC(clangArgs, "libc-cflags"); + -+ if (enableCXXInterop) { -+ addFlagsFromNixCC(clangArgs, "libcxx-cxxflags"); -+ } ++ // Ensure the libc++ headers are available. The C++ standard library is separate ++ // from the sysroot on most platforms in Nixpkgs. ++ addFlagsFromNixCC(clangArgs, "libcxx-cxxflags"); + llvm::opt::InputArgList clangDriverArgs = parseClangDriverArgs(clangDriver, clangArgs); // If an SDK path was explicitly passed to Swift, make sure to pass it to -@@ -207,7 +217,7 @@ getLibcFileMapping(const ASTContext &ctx, StringRef modulemapFileName, - auto [clangDriver, clangDiagEngine] = ClangImporter::createClangDriver( - ctx.LangOpts, ctx.ClangImporterOpts, vfs); - auto clangDriverArgs = ClangImporter::createClangArgs( -- ctx.ClangImporterOpts, ctx.SearchPathOpts, clangDriver); -+ ctx.ClangImporterOpts, ctx.SearchPathOpts, clangDriver, ctx.LangOpts.EnableCXXInterop); - - llvm::opt::ArgStringList includeArgStrings; - const auto &clangToolchain = -@@ -286,7 +296,7 @@ static void getLibStdCxxFileMapping( - auto [clangDriver, clangDiagEngine] = ClangImporter::createClangDriver( - ctx.LangOpts, ctx.ClangImporterOpts, vfs); - auto clangDriverArgs = ClangImporter::createClangArgs( -- ctx.ClangImporterOpts, ctx.SearchPathOpts, clangDriver); -+ ctx.ClangImporterOpts, ctx.SearchPathOpts, clangDriver, ctx.LangOpts.EnableCXXInterop); - - llvm::opt::ArgStringList stdlibArgStrings; - const auto &clangToolchain = -@@ -467,7 +477,7 @@ void GetWindowsFileMappings( - auto [Driver, clangDiagEngine] = ClangImporter::createClangDriver( - Context.LangOpts, Context.ClangImporterOpts, driverVFS); - const llvm::opt::InputArgList Args = ClangImporter::createClangArgs( -- Context.ClangImporterOpts, Context.SearchPathOpts, Driver); -+ Context.ClangImporterOpts, Context.SearchPathOpts, Driver, Context.LangOpts.EnableCXXInterop); - const clang::driver::ToolChain &ToolChain = Driver.getToolChain(Args, Triple); - llvm::vfs::FileSystem &VFS = ToolChain.getVFS(); - diff --git a/lib/ClangImporter/ClangIncludePaths.h b/lib/ClangImporter/ClangIncludePaths.h index 7f08397fa7d..69be98357d9 100644 --- a/lib/ClangImporter/ClangIncludePaths.h @@ -178,19 +126,6 @@ index 7f08397fa7d..69be98357d9 100644 +} + #endif // SWIFT_CLANG_INCLUDE_PATHS_H -diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp -index ed413f2be91..f866b49ba3a 100644 ---- a/lib/Frontend/CompilerInvocation.cpp -+++ b/lib/Frontend/CompilerInvocation.cpp -@@ -401,7 +401,7 @@ void CompilerInvocation::computeCXXStdlibOptions() { - auto [clangDriver, clangDiagEngine] = - ClangImporter::createClangDriver(LangOpts, ClangImporterOpts); - auto clangDriverArgs = ClangImporter::createClangArgs( -- ClangImporterOpts, SearchPathOpts, clangDriver); -+ ClangImporterOpts, SearchPathOpts, clangDriver, LangOpts.EnableCXXInterop); - auto &clangToolchain = - clangDriver.getToolChain(clangDriverArgs, LangOpts.Target); - auto cxxStdlibKind = clangToolchain.GetCXXStdlibType(clangDriverArgs); -- 2.54.0 diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/0007-Help-Swift-JIT-find-the-separate-stdlib-and-framewor.patch b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/0007-Help-Swift-JIT-find-the-separate-stdlib-and-framewor.patch deleted file mode 100644 index afc2e5b470a4..000000000000 --- a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/0007-Help-Swift-JIT-find-the-separate-stdlib-and-framewor.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Wed, 15 Jul 2026 00:02:16 -0400 -Subject: [PATCH 07/10] Help Swift JIT find the separate stdlib and frameworks - -This is needed because the stdlib and several frameworks are all built -separately then symlinked into the final Swift toolchain. ---- - lib/Immediate/Immediate.cpp | 17 +++++++++++++++++ - 1 file changed, 17 insertions(+) - -diff --git a/lib/Immediate/Immediate.cpp b/lib/Immediate/Immediate.cpp -index 7d24b0d473e..bfd8ae3a129 100644 ---- a/lib/Immediate/Immediate.cpp -+++ b/lib/Immediate/Immediate.cpp -@@ -45,6 +45,8 @@ - #include "llvm/Support/Path.h" - #include "llvm/Transforms/IPO.h" - -+#include -+ - // TODO: Replace pass manager - // Removed in: d623b2f95fd559901f008a0588dddd0949a8db01 - /* #include "llvm/Transforms/IPO/PassManagerBuilder.h" */ -@@ -83,6 +85,21 @@ static void *loadRuntimeLib(StringRef sharedLibName, - for (auto &runtimeLibPath : runtimeLibPaths) { - if (void *handle = loadRuntimeLibAtPath(sharedLibName, runtimeLibPath)) - return handle; -+ else { -+ // Runtime libraries may also be located in `lib` for `lib/swift/`. -+ std::filesystem::path libPath = runtimeLibPath; -+ -+ if (libPath.filename() != "@swiftPlatform@") -+ continue; -+ libPath = libPath.parent_path(); -+ -+ if (libPath.filename() != "swift") -+ continue; -+ libPath = libPath.parent_path(); -+ -+ if (void *handle = loadRuntimeLibAtPath(sharedLibName, libPath.string())) -+ return handle; -+ } - } - return nullptr; - } --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/default.nix b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/default.nix index da8a628820c7..e87de4207b5f 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/default.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.2/default.nix @@ -24,10 +24,6 @@ }) # Use libdispatch from nixpkgs instead of building it in-tree ./0006-use-nixpkgs-libdispatch.patch - # The Swift JIT needs help finding dylibs when they are linked into the toolchain at `$out/lib`. - (replaceVars ./0007-Help-Swift-JIT-find-the-separate-stdlib-and-framewor.patch { - swiftPlatform = stdenv.hostPlatform.swift.platform; - }) # Fix missing when building against libstdc++ 15 (fetchpatch2 { url = "https://github.com/swiftlang/swift/commit/a5c727125e952839c373fe47e9f9e359db3d4d38.patch?full_index=1"; diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.3/default.nix b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.3/default.nix deleted file mode 100644 index 36ef8061dc5a..000000000000 --- a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.3/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - lib, - bootstrapStage, - fetchpatch2, - libllvm, - replaceVars, - stdenv, -}: - -[ - # ClangImporter needs help finding the location of libc and libc++ (and using it). - ../6.2/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch - ../6.2/0002-Use-Nixpkgs-C-and-C-stdlib-paths-in-ClangImporter.patch - # Backport linking against an external swift-cmark. - # From https://github.com/swiftlang/swift/pull/70791. - ../6.2/0003-cmark-build-revamp.patch - # Fix compilation errors when building the SIL module during bootstrap. - # error: field has incomplete type 'clang::DeclContext::all_lookups_iterator' - # error: field has incomplete type 'clang::DeclContext::ddiag_iterator' - ../6.2/0004-sil-missing-headers.patch - # Use libLTO.dylib from the LLVM built for Swift - (replaceVars ../6.2/0005-specify-liblto-path.patch { - libllvm_path = lib.getLib libllvm; - }) - # Use libdispatch from nixpkgs instead of building it in-tree - ../6.2/0006-use-nixpkgs-libdispatch.patch - # The Swift JIT needs help finding dylibs when they are linked into the toolchain at `$out/lib`. - (replaceVars ../6.2/0007-Help-Swift-JIT-find-the-separate-stdlib-and-framewor.patch { - swiftPlatform = stdenv.hostPlatform.swift.platform; - }) - # Fix missing null-terminator on Linux, which results in a crash in `swift repl`. - (fetchpatch2 { - url = "https://github.com/swiftlang/swift/commit/cfbe70db5d1e65bed2388f97ee52f65719c812b3.patch?full_index=1"; - hash = "sha256-XxdP3Qs2YfT20d5E216cOQy+fUgYQpwMDWSyl77NQHw="; - }) -] diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch new file mode 100644 index 000000000000..9c136c033303 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch @@ -0,0 +1,226 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Sun, 4 Jan 2026 14:37:05 -0500 +Subject: [PATCH 1/9] Read C and C++ stdlib flags from the wrapped compiler +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +On most platforms supported by Nixpkgs, the C and C++ standard libraries +are located separately and are not part of the sysroot, but Swift’s +ClangImporter assumes they are part of the sysroot by default. + +While it is possible to create a sysroot for use with Swift, this has +negative affects on every package that wants to use Swift and compile +C++ code. The C++ library must be removed from the standard platform +configuration, which makes adding Swift as a dependency too disruptive. +--- + include/swift/Nixpkgs/NixCC.h | 76 +++++++++++++++++++++++++ + lib/CMakeLists.txt | 1 + + lib/ClangImporter/CMakeLists.txt | 3 +- + lib/ClangImporter/ClangImporter.cpp | 9 +++ + lib/ClangImporter/ClangIncludePaths.cpp | 10 ++++ + lib/Nixpkgs/CMakeLists.txt | 4 ++ + lib/Nixpkgs/NixCC.cpp | 15 +++++ + 7 files changed, 117 insertions(+), 1 deletion(-) + create mode 100644 include/swift/Nixpkgs/NixCC.h + create mode 100644 lib/Nixpkgs/CMakeLists.txt + create mode 100644 lib/Nixpkgs/NixCC.cpp + +diff --git a/include/swift/Nixpkgs/NixCC.h b/include/swift/Nixpkgs/NixCC.h +new file mode 100644 +index 00000000000..4669c2c4486 +--- /dev/null ++++ b/include/swift/Nixpkgs/NixCC.h +@@ -0,0 +1,76 @@ ++// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ++#pragma once ++ ++#include "llvm/ADT/StringRef.h" ++#include "llvm/Support/CommandLine.h" ++#include "llvm/Support/FileSystem.h" ++#include "llvm/Support/Process.h" ++#include "llvm/Support/VirtualFileSystem.h" ++ ++#include ++#include ++#include ++#include ++#include ++ ++using nixsupportcache_t = std::unordered_map>; ++extern void accessNixSupportCache(std::function&& fn); ++ ++template ++void addFlagsFromNixCC(std::vector &invocationArgStrs, const char* flagFile) { ++ if (flagFile == nullptr) return; ++ const std::string flagFileName{flagFile}; ++ ++ accessNixSupportCache([&](nixsupportcache_t& nixSupportCache) { ++ const auto [argIterator, didInsert] = nixSupportCache.insert({flagFileName, std::vector{}}); ++ auto& argVector = argIterator->second; ++ ++ if (didInsert) { ++ // Prefer the `clang` next to the running binary but fall back to the one next to `swift` on the path. ++ std::function()> paths[] = { ++ []() -> std::optional { ++ auto result = llvm::sys::fs::getMainExecutable(nullptr, nullptr); ++ if (result == "") return {}; else return result; ++ }, ++ []() { return llvm::sys::Process::FindInEnvPath("PATH", "swiftc"); }, ++ }; ++ ++ llvm::BumpPtrAllocator allocator; ++ llvm::StringSaver saver(allocator); ++ ++ for (const auto& maybePathFn : paths) { ++ auto maybePath = maybePathFn(); ++ if (!maybePath.has_value()) continue; ++ ++ const std::filesystem::path path = maybePath.value(); ++ const auto clang = path.parent_path() / "clang"; ++ ++ if (exists(clang)) { ++ const auto realClang = canonical(clang); ++ const auto flagFilePath = realClang.parent_path().parent_path() / "nix-support" / flagFileName; ++ ++ // Treat `flagFile` as a response file for Clang. Because Clang expects response ++ // files to be expanded already at this point, it has to be expanded manually. ++ if (auto buffer = llvm::vfs::getRealFileSystem()->getBufferForFile(llvm::StringRef(flagFilePath))) { ++ const auto contents = (*buffer)->getMemBufferRef().getBuffer(); ++ ++ llvm::SmallVector args; ++ llvm::cl::TokenizeGNUCommandLine(contents, saver, args); ++ ++ for (const auto& arg : args) { ++ argVector.emplace_back(arg); ++ } ++ ++ break; // We have an `argVector` with the args. Short-circuit the loop and don’t check further. ++ } ++ } ++ } ++ } ++ ++ // At this point, `argVector` is either the cached vector or the freshly populated one. ++ // Either way, it has the requested flags. ++ for (const auto& arg : argVector) { ++ invocationArgStrs.emplace_back(arg.c_str()); ++ } ++ }); ++} +diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt +index fe5b2c4c867..c8037f3baae 100644 +--- a/lib/CMakeLists.txt ++++ b/lib/CMakeLists.txt +@@ -58,6 +58,7 @@ add_subdirectory(Localization) + add_subdirectory(Macros) + add_subdirectory(Markup) + add_subdirectory(Migrator) ++add_subdirectory(Nixpkgs) + add_subdirectory(Option) + add_subdirectory(Parse) + add_subdirectory(PrintAsClang) +diff --git a/lib/ClangImporter/CMakeLists.txt b/lib/ClangImporter/CMakeLists.txt +index 2eb5b1fa131..adfdb95a912 100644 +--- a/lib/ClangImporter/CMakeLists.txt ++++ b/lib/ClangImporter/CMakeLists.txt +@@ -36,7 +36,8 @@ add_swift_host_library(swiftClangImporter STATIC + target_link_libraries(swiftClangImporter PRIVATE + swiftAST + swiftParse +- clangTooling) ++ clangTooling ++ nixpkgsStuff) + + target_link_libraries(swiftClangImporter INTERFACE + clangDependencyScanning) +diff --git a/lib/ClangImporter/ClangImporter.cpp b/lib/ClangImporter/ClangImporter.cpp +index 2815b8baf4c..9f3f44a3f25 100644 +--- a/lib/ClangImporter/ClangImporter.cpp ++++ b/lib/ClangImporter/ClangImporter.cpp +@@ -50,6 +50,7 @@ + #include "swift/ClangImporter/ClangImporterRequests.h" + #include "swift/ClangImporter/ClangModule.h" + #include "swift/Frontend/CachingUtils.h" ++#include "swift/Nixpkgs/NixCC.h" + #include "swift/Parse/ParseVersion.h" + #include "swift/Strings.h" + #include "swift/Subsystems.h" +@@ -624,6 +625,14 @@ void importer::getNormalInvocationArguments( + }); + } + ++ // Ensure libc is available. The C standard library is separate from the sysroot ++ // on most platforms in Nixpkgs. (Darwin is a prominent exception.) ++ addFlagsFromNixCC(invocationArgStrs, "libc-cflags"); ++ ++ // Ensure the libc++ headers are available. The C++ standard library is separate ++ // from the sysroot on most platforms in Nixpkgs. ++ addFlagsFromNixCC(invocationArgStrs, "libcxx-cxxflags"); ++ + if (LangOpts.EnableCXXInterop) { + if (auto path = getCxxShimModuleMapPath(searchPathOpts, LangOpts, triple)) { + invocationArgStrs.push_back((Twine("-fmodule-map-file=") + *path).str()); +diff --git a/lib/ClangImporter/ClangIncludePaths.cpp b/lib/ClangImporter/ClangIncludePaths.cpp +index 5bc725811f7..cd1f5814b89 100644 +--- a/lib/ClangImporter/ClangIncludePaths.cpp ++++ b/lib/ClangImporter/ClangIncludePaths.cpp +@@ -18,6 +18,7 @@ + #include "swift/Basic/Assertions.h" + #include "swift/Basic/Platform.h" + #include "swift/ClangImporter/ClangImporter.h" ++#include "swift/Nixpkgs/NixCC.h" + #include "clang/Driver/Driver.h" + #include "clang/Driver/ToolChain.h" + #include "clang/Frontend/CompilerInstance.h" +@@ -191,6 +192,15 @@ ClangImporter::createClangArgs(const ClangImporterOptions &ClangImporterOpts, + for (const auto &each : ClangImporterOpts.ExtraArgs) { + clangArgs.push_back(each.c_str()); + } ++ ++ // Ensure libc is available. The C standard library is separate from the sysroot ++ // on most platforms in Nixpkgs. (Darwin is a prominent exception.) ++ addFlagsFromNixCC(clangArgs, "libc-cflags"); ++ ++ // Ensure the libc++ headers are available. The C++ standard library is separate ++ // from the sysroot on most platforms in Nixpkgs. ++ addFlagsFromNixCC(clangArgs, "libcxx-cxxflags"); ++ + llvm::opt::InputArgList clangDriverArgs = + parseClangDriverArgs(clangDriver, clangArgs); + // If a sysroot was explicitly passed to Swift, make sure to pass it to the +diff --git a/lib/Nixpkgs/CMakeLists.txt b/lib/Nixpkgs/CMakeLists.txt +new file mode 100644 +index 00000000000..691ce9f4427 +--- /dev/null ++++ b/lib/Nixpkgs/CMakeLists.txt +@@ -0,0 +1,4 @@ ++# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ++ ++add_swift_host_library(nixpkgsStuff STATIC ++ NixCC.cpp) +diff --git a/lib/Nixpkgs/NixCC.cpp b/lib/Nixpkgs/NixCC.cpp +new file mode 100644 +index 00000000000..7df2071dd28 +--- /dev/null ++++ b/lib/Nixpkgs/NixCC.cpp +@@ -0,0 +1,15 @@ ++// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ++#include "swift/Nixpkgs/NixCC.h" ++ ++#include ++#include ++#include ++#include ++ ++static nixsupportcache_t NixSupportCache; ++ ++extern void accessNixSupportCache(std::function&& fn) { ++ static std::mutex nixSupportCacheMutex; ++ std::lock_guard lock{nixSupportCacheMutex}; ++ fn(NixSupportCache); ++} +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0006-use-nixpkgs-libdispatch.patch b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0006-use-nixpkgs-libdispatch.patch new file mode 100644 index 000000000000..5ccb101c90d9 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0006-use-nixpkgs-libdispatch.patch @@ -0,0 +1,83 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Fri, 13 Feb 2026 20:51:47 -0500 +Subject: [PATCH 6/9] use-nixpkgs-libdispatch + +--- + CMakeLists.txt | 10 ++-------- + stdlib/cmake/modules/StdlibOptions.cmake | 3 --- + stdlib/public/Concurrency/CMakeLists.txt | 16 ---------------- + 3 files changed, 2 insertions(+), 27 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c47789bc72e..7a09d3f241e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -909,12 +909,6 @@ if(SWIFT_ENABLE_DISPATCH AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") + if(SWIFT_INCLUDE_TOOLS AND SWIFT_BUILD_SOURCEKIT) + set(SWIFT_BUILD_HOST_DISPATCH TRUE) + endif() +- +- if(SWIFT_BUILD_HOST_DISPATCH) +- if(NOT EXISTS "${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}") +- message(SEND_ERROR "SourceKit requires libdispatch on non-Darwin hosts. Please specify SWIFT_PATH_TO_LIBDISPATCH_SOURCE") +- endif() +- endif() + endif() + + file(STRINGS "utils/availability-macros.def" SWIFT_STDLIB_AVAILABILITY_DEFINITIONS) +@@ -1538,8 +1532,8 @@ if (LLVM_ENABLE_DOXYGEN) + message(STATUS "Doxygen: enabled") + endif() + +-if(SWIFT_ENABLE_DISPATCH) +- include(Libdispatch) ++if(SWIFT_ENABLE_DISPATCH AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") ++ find_package(dispatch) + endif() + + # Add all of the subdirectories, where we actually do work. +diff --git a/stdlib/cmake/modules/StdlibOptions.cmake b/stdlib/cmake/modules/StdlibOptions.cmake +index 74be44aca6a..2f3d7b0801e 100644 +--- a/stdlib/cmake/modules/StdlibOptions.cmake ++++ b/stdlib/cmake/modules/StdlibOptions.cmake +@@ -221,9 +221,6 @@ if (SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY) + + if (SWIFT_ENABLE_DISPATCH) + set(SWIFT_CONCURRENCY_USES_DISPATCH TRUE) +- if (NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT EXISTS "${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}") +- message(SEND_ERROR "Concurrency requires libdispatch on non-Darwin hosts. Please specify SWIFT_PATH_TO_LIBDISPATCH_SOURCE") +- endif() + endif() + + if(SWIFT_CONCURRENCY_USES_DISPATCH) +diff --git a/stdlib/public/Concurrency/CMakeLists.txt b/stdlib/public/Concurrency/CMakeLists.txt +index d93b9a6382c..5b8edd68c77 100644 +--- a/stdlib/public/Concurrency/CMakeLists.txt ++++ b/stdlib/public/Concurrency/CMakeLists.txt +@@ -25,22 +25,6 @@ set(swift_concurrency_incorporate_object_libraries_so swiftThreading) + + if("${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR}" STREQUAL "dispatch") + if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") +- set(swift_concurrency_dispatch_include_directories +- ${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}) +- if(TARGET dispatch) +- get_target_property(dispatch_include_directories +- dispatch INTERFACE_INCLUDE_DIRECTORIES) +- if(dispatch_include_directories) +- list(APPEND swift_concurrency_dispatch_include_directories +- ${dispatch_include_directories}) +- endif() +- endif() +- list(REMOVE_DUPLICATES swift_concurrency_dispatch_include_directories) +- foreach(directory ${swift_concurrency_dispatch_include_directories}) +- list(APPEND SWIFT_RUNTIME_CONCURRENCY_C_FLAGS +- "-I${directory}") +- endforeach() +- + # FIXME: we can't rely on libdispatch having been built for the + # target at this point in the process. Currently, we're relying + # on soft-linking. +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0008-Disable-availability-checking-when-building-the-Runt.patch b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0008-Disable-availability-checking-when-building-the-Runt.patch new file mode 100644 index 000000000000..3a3cfada5b04 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0008-Disable-availability-checking-when-building-the-Runt.patch @@ -0,0 +1,31 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Thu, 24 Sep 2026 20:02:54 -0400 +Subject: [PATCH 8/9] Disable availability checking when building the Runtime + module + +We want to keep strict availability enabled so that the stdlib modules +and text-based stubs match what is deployed with the OS and shipped in +the SDK, but we need to be able to build the stdlib to generate those +modules and stubs. Disabling the checks lets us do that. +--- + stdlib/public/RuntimeModule/CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/stdlib/public/RuntimeModule/CMakeLists.txt b/stdlib/public/RuntimeModule/CMakeLists.txt +index 43742dbf48d..0137f07bfe0 100644 +--- a/stdlib/public/RuntimeModule/CMakeLists.txt ++++ b/stdlib/public/RuntimeModule/CMakeLists.txt +@@ -104,7 +104,8 @@ set(runtime_compile_flags + "-Xcc;-I${CMAKE_BINARY_DIR}/include" + "-Xcc;-I${SWIFT_STDLIB_SOURCE_DIR}/public/RuntimeModule/modules" + "-disable-upcoming-feature;MemberImportVisibility" +- "-enable-experimental-feature;Reparenting") ++ "-enable-experimental-feature;Reparenting" ++ "-Xfrontend;-disable-availability-checking") + + ###TODO: Add these when we add static linking support + # +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0009-Fix-_Differentiation-module-build-on-Darwin.patch b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0009-Fix-_Differentiation-module-build-on-Darwin.patch new file mode 100644 index 000000000000..003d14edcc99 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/0009-Fix-_Differentiation-module-build-on-Darwin.patch @@ -0,0 +1,41 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Thu, 24 Sep 2026 21:46:45 -0400 +Subject: [PATCH 9/9] Fix _Differentiation module build on Darwin + +Without this, it can fail to find the _Builtin_float module. This +presumably used to work due to the SDK overlay, which is no longer +built (see: https://github.com/swiftlang/swift/pull/81726). +--- + stdlib/public/Differentiation/CMakeLists.txt | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/stdlib/public/Differentiation/CMakeLists.txt b/stdlib/public/Differentiation/CMakeLists.txt +index f7149eacb0a..8f1579406b7 100644 +--- a/stdlib/public/Differentiation/CMakeLists.txt ++++ b/stdlib/public/Differentiation/CMakeLists.txt +@@ -16,6 +16,8 @@ else() + set(swiftDifferentiationSIMDFiles) + endif() + ++set(swiftDifferentiationDarwinDependencies _Builtin_float) ++ + add_swift_target_library(swift_Differentiation ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB + Differentiable.swift + DifferentialOperators.swift +@@ -31,6 +33,12 @@ add_swift_target_library(swift_Differentiation ${SWIFT_STDLIB_LIBRARY_BUILD_TYPE + TgmathDerivatives.swift.gyb + ${swiftDifferentiationSIMDFiles} + ++ SWIFT_MODULE_DEPENDS_OSX ${swiftDifferentiationDarwinDependencies} ++ SWIFT_MODULE_DEPENDS_IOS ${swiftDifferentiationDarwinDependencies} ++ SWIFT_MODULE_DEPENDS_TVOS ${swiftDifferentiationDarwinDependencies} ++ SWIFT_MODULE_DEPENDS_WATCHOS ${swiftDifferentiationDarwinDependencies} ++ SWIFT_MODULE_DEPENDS_XROS ${swiftDifferentiationDarwinDependencies} ++ + SWIFT_MODULE_DEPENDS_ANDROID Android + SWIFT_MODULE_DEPENDS_LINUX Glibc + SWIFT_MODULE_DEPENDS_LINUX_STATIC Musl +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/default.nix b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/default.nix new file mode 100644 index 000000000000..370b353ad998 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swiftc/patches/6.4/default.nix @@ -0,0 +1,38 @@ +{ + lib, + bootstrapStage, + fetchpatch2, + libllvm, + replaceVars, + stdenv, +}: + +[ + # ClangImporter needs help finding the location of libc and libc++ (and using it). + ./0001-Read-C-and-C-stdlib-flags-from-the-wrapped-compiler.patch + ../6.2/0002-Use-Nixpkgs-C-and-C-stdlib-paths-in-ClangImporter.patch + # Backport linking against an external swift-cmark. + # From https://github.com/swiftlang/swift/pull/70791. + ../6.2/0003-cmark-build-revamp.patch + # Fix compilation errors when building the SIL module during bootstrap. + # error: field has incomplete type 'clang::DeclContext::all_lookups_iterator' + # error: field has incomplete type 'clang::DeclContext::ddiag_iterator' + ../6.2/0004-sil-missing-headers.patch + # Use libLTO.dylib from the LLVM built for Swift + (replaceVars ../6.2/0005-specify-liblto-path.patch { + libllvm_path = lib.getLib libllvm; + }) + # Use libdispatch from nixpkgs instead of building it in-tree + ./0006-use-nixpkgs-libdispatch.patch + # We need to be able to build the stdlib on Darwin even if we don’t use most of it because we need to be able to + # generate the text-based stubs and module definitions for use with the system frameworks. + # + # Swift 6.4 adds availability annotations to the Backtracing APIs. While it is possible to change the OS version used + # to make this build (see: https://github.com/swiftlang/swift/commit/c432e9df61858bc8372ff06a855d34c9448ff93e), we + # want the versions in the module interfaces to match those shipped with Xcode and the SDK. + # + # Disabling the checks while keeping the annotations lets us do that. + ./0008-Disable-availability-checking-when-building-the-Runt.patch + # Building the _Differentiation module needs _Builtin_float on Darwin. + ./0009-Fix-_Differentiation-module-build-on-Darwin.patch +] diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftly/package.nix b/pkgs/development/compilers/swift/by-name/sw/swiftly/package.nix index 4afebbb30b05..acb195956417 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftly/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swiftly/package.nix @@ -1,5 +1,6 @@ { lib, + _experimental-update-script-combinators, fetchFromGitHub, fetchSwiftPMDeps, gitUpdater, @@ -8,23 +9,24 @@ stdenv, swift, swiftpm, + swiftpmDepsUpdater, zlib, }: stdenv.mkDerivation (finalAttrs: { pname = "swiftly"; - version = "1.1.3"; + version = "1.2.0"; src = fetchFromGitHub { owner = "swiftlang"; repo = "swiftly"; tag = finalAttrs.version; - hash = "sha256-VFgmgo69Q4Y8Je0SMdB3jKGt9lNoVYAaUhSuK3RUkFE="; + hash = "sha256-ijBwS74sR/gY2KXO20av8OCk40318vB1W2tm1HzOlbE="; }; swiftpmDeps = fetchSwiftPMDeps { inherit (finalAttrs) pname version src; - hash = "sha256-1KfyrQXE1HaO9WsuskzgiiEZxM/oelp40Jwzr8xJEL4="; + hash = "sha256-YjhqIt3e808GYEgH81dh2Uq8/2BpMQ6kjY9JAwEahe0="; }; strictDeps = true; @@ -46,7 +48,10 @@ stdenv.mkDerivation (finalAttrs: { __structuredAttrs = true; - passthru.updateScript = gitUpdater { }; + passthru.updateScript = _experimental-update-script-combinators.sequence [ + (gitUpdater { }) + (swiftpmDepsUpdater { }) + ]; meta = { description = "Swift toolchain installer and manager"; diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpm/files/SwiftPMConfig.cmake b/pkgs/development/compilers/swift/by-name/sw/swiftpm/files/SwiftPMConfig.cmake new file mode 100644 index 000000000000..5026810ce734 --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swiftpm/files/SwiftPMConfig.cmake @@ -0,0 +1,83 @@ +set(SwiftPMModules + _AsyncFileSystem + Basics + Build + Commands + CoreCommands + DriverSupport + PackageCollections + PackageCollectionsCommand + PackageCollectionsModel + PackageCollectionsSigning + PackageGraph + PackageLoading + PackageModel + PackageRegistryCommand + QueryEngine + SPMBuildCore + SourceControl + SwiftBuildSupport + SwiftSDKCommand + Workspace +) + +foreach (SwiftPMModule ${SwiftPMModules}) + if (NOT TARGET ${SwiftPMModule}) + add_library(${SwiftPMModule} @buildType@ IMPORTED) + set_target_properties(${SwiftPMModule} PROPERTIES + IMPORTED_LOCATION "@lib@/lib/${CMAKE_@buildType@_LIBRARY_PREFIX}${SwiftPMModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift/@swiftPlatform@" + ) + endif () +endforeach () + + +set(SwiftPMManifestModules + CompilerPluginSupport + PackageDescription +) + +foreach (SwiftPMModule ${SwiftPMManifestModules}) + if (NOT TARGET ${SwiftPMModule}) + add_library(${SwiftPMModule} @buildType@ IMPORTED) + set_target_properties(${SwiftPMModule} PROPERTIES + IMPORTED_LOCATION "@lib@/lib/swift/pm/ManifestAPI/${CMAKE_@buildType@_LIBRARY_PREFIX}${SwiftPMModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@lib@/lib/swift/pm/ManifestAPI" + ) + endif () +endforeach () + +set(SwiftPMPluginModules + PackagePlugin +) + + +foreach (SwiftPMModule ${SwiftPMPluginModules}) + if (NOT TARGET ${SwiftPMModule}) + add_library(${SwiftPMModule} @buildType@ IMPORTED) + set_target_properties(${SwiftPMModule} PROPERTIES + IMPORTED_LOCATION "@lib@/lib/swift/pm/PluginAPI/${CMAKE_@buildType@_LIBRARY_PREFIX}${SwiftPMModule}${CMAKE_@buildType@_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@lib@/lib/swift/pm/PluginAPI" + ) + endif () +endforeach () + + +set(SwiftPMStaticModules + LLBuildManifest + PackageFingerprint + PackageRegistry + PackageSigning + SourceKitLSPAPI + SPMLLBuild +) + +foreach (SwiftPMModule ${SwiftPMStaticModules}) + if (NOT TARGET ${SwiftPMModule}) + add_library(${SwiftPMModule} STATIC IMPORTED) + set_target_properties(${SwiftPMModule} PROPERTIES + IMPORTED_LOCATION "@dev@/lib/${CMAKE_STATIC_LIBRARY_PREFIX}${SwiftPMModule}${CMAKE_STATIC_LIBRARY_SUFFIX}" + INTERFACE_INCLUDE_DIRECTORIES "@dev@/lib/swift_static/@swiftPlatform@" + ) + endif () +endforeach () diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpm/package.nix b/pkgs/development/compilers/swift/by-name/sw/swiftpm/package.nix index 12c91307b5b5..4e8b8e7ff757 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpm/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swiftpm/package.nix @@ -3,8 +3,6 @@ callPackage, cmake, fetchFromGitHub, - fetchpatch2, - llvmPackages, ninja, replaceVars, sqlite, @@ -45,6 +43,13 @@ let swift-tools-protocols swift-tools-support-core ]; + + swiftPlatform = stdenv.hostPlatform.swift.platform; + + swift' = swift.override { + enableRepl = false; + enableSourceKitLSP = false; + }; in stdenv.mkDerivation (finalAttrs: { @@ -65,8 +70,6 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./patches/0001-gnu-install-dirs.patch - # Use swift-corelibs-xctest even on Darwin (because XCTest.framework is not available in nixpkgs). - ./patches/0002-darwin-swift-corelibs-xctest.patch # SwiftPM tries to use `sandbox-exec` for sandboxing, which will fail when it is run in the Nix sandbox. ./patches/0003-disable-sandbox.patch # SwiftPM falls back to looking for manifests and plugins in the Swift compiler location. Find them in $out. @@ -81,19 +84,14 @@ stdenv.mkDerivation (finalAttrs: { ./patches/0008-set-compiler-vendor.patch # A couple of required libraries are missing from the `CMakeLists.txt` files. ./patches/0009-add-missing-libraries.patch - # SwiftPM tries to load IndexStoreDB from the toolchain, but load it from the store instead. - (replaceVars ./patches/0010-Load-IndexStore-from-the-store.patch { - libclang = lib.getLib llvmPackages.libclang; - }) # SwiftPM tries to find Clang via `CC`, but that can be GCC on Linux, which doesn’t actually work with SwiftPM. ./patches/0011-Always-find-Clang-in-the-toolchain.patch - # Build missing `swift-package-collection` and `swift-package-registry` binaries. - (fetchpatch2 { - url = "https://github.com/swiftlang/swift-package-manager/commit/e1910f814cc1be40c709c3987a29488b9bee2f92.patch?full_index=1"; - hash = "sha256-4Ew/cKlk+Zn8cIQvh0jQy4Fz+xGYBYwch4+SBu1nKpI="; - }) # Include the Darwin testing helper in the CMake-built package. ./patches/0012-Build-and-install-the-Darwin-testing-helper-for-the-.patch + # SwiftPM makes assumptions about where the toolchain is that don’t hold in Nixpkgs. + (replaceVars ./patches/0013-Help-SwiftPM-find-the-toolchain-in-the-store.patch { + store-dir = builtins.storeDir; + }) ]; postPatch = '' @@ -122,7 +120,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - swift + swift' ]; propagatedBuildInputs = [ swiftpmHook ]; @@ -143,30 +141,59 @@ stdenv.mkDerivation (finalAttrs: { swift-tools-support-core ]; - postInstall = - lib.optionalString stdenv.hostPlatform.isDarwin '' - # Replace `@rpath` with absolute paths on Darwin. For some reason, this isn’t always done during installation. - # `fixDarwinDylibNames` doesn’t work either. - IFS= readarray -d "" dylibs < <(find "$out" -type f -and -name '*.dylib' -print0) - declare -a mappings + postInstall = '' + declare -a staticLibs=( + LLBuildManifest + PackageFingerprint + PackageRegistry + PackageSigning + SourceKitLSPAPI + SPMLLBuild + ) - for dylib in "''${dylibs[@]}"; do - mappings+=(-change "@rpath/$(basename "$dylib")" "$dylib") - done + # Install the swiftmodules. + mkdir -p "''${!outputDev}/lib/swift/${swiftPlatform}" "''${!outputDev}/lib/swift_static/${swiftPlatform}" + for f in "''${staticLibs[@]}"; do + mv -v swift/$f.swiftmodule "''${!outputDev}/lib/swift_static/${swiftPlatform}" + done + cp -v swift/*.swiftmodule "''${!outputDev}/lib/swift/${swiftPlatform}" - for dylib in "''${dylibs[@]}"; do - install_name_tool "$dylib" ''${mappings[@]} - done - '' - + lib.optionalString stdenv.hostPlatform.isElf '' - for output in "''${outputs[@]}"; do - while IFS= read -d "" f; do - if isELF "$f"; then - patchelf --add-rpath ${lib.escapeShellArg rpaths} "$f" - fi - done < <(find "$output" -type f -print0) - done - ''; + # Install the static libraries. + for f in "''${staticLibs[@]}"; do + cp -v lib/lib$f${stdenv.hostPlatform.extensions.staticLibrary} "''${!outputDev}/lib" + done + + # Install CMake config file for the SwiftPM library. + mkdir -p "''${!outputDev}/lib/cmake/SwiftPM" + substitute ${./files/SwiftPMConfig.cmake} "''${!outputDev}/lib/cmake/SwiftPM/SwiftPMConfig.cmake" \ + --replace-fail '@buildType@' ${if stdenv.hostPlatform.isStatic then "STATIC" else "SHARED"} \ + --replace-fail '@dev@' "''${!outputDev}" \ + --replace-fail '@lib@' "''${!outputLib}" \ + --replace-fail '@swiftPlatform@' ${swiftPlatform} + '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' + # Replace `@rpath` with absolute paths on Darwin. For some reason, this isn’t always done during installation. + # `fixDarwinDylibNames` doesn’t work either. + IFS= readarray -d "" dylibs < <(find "$out" -type f -and -name '*.dylib' -print0) + declare -a mappings + + for dylib in "''${dylibs[@]}"; do + mappings+=(-change "@rpath/$(basename "$dylib")" "$dylib") + done + + for dylib in "''${dylibs[@]}"; do + install_name_tool "$dylib" ''${mappings[@]} + done + '' + + lib.optionalString stdenv.hostPlatform.isElf '' + for output in "''${outputs[@]}"; do + while IFS= read -d "" f; do + if isELF "$f"; then + patchelf --add-rpath ${lib.escapeShellArg rpaths} "$f" + fi + done < <(find "$output" -type f -print0) + done + ''; passthru.tests = lib.packagesFromDirectoryRecursive { inherit callPackage; diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0002-darwin-swift-corelibs-xctest.patch b/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0002-darwin-swift-corelibs-xctest.patch deleted file mode 100644 index da49de64f7fc..000000000000 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0002-darwin-swift-corelibs-xctest.patch +++ /dev/null @@ -1,102 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sat, 13 Dec 2025 22:57:10 -0500 -Subject: [PATCH 02/11] darwin-swift-corelibs-xctest - ---- - .../Commands/Utilities/TestingSupport.swift | 65 ------------------- - 1 file changed, 65 deletions(-) - -diff --git a/Sources/Commands/Utilities/TestingSupport.swift b/Sources/Commands/Utilities/TestingSupport.swift -index 2d6d12beb..e8348bd72 100644 ---- a/Sources/Commands/Utilities/TestingSupport.swift -+++ b/Sources/Commands/Utilities/TestingSupport.swift -@@ -29,46 +29,6 @@ import func TSCBasic.withTemporaryFile - /// Note: In the long term this should be factored into a reusable module that - /// can run and report results on tests from both CLI and libSwiftPM API. - enum TestingSupport { -- /// Locates XCTestHelper tool inside the libexec directory and bin directory. -- /// Note: It is a fatalError if we are not able to locate the tool. -- /// -- /// - Returns: Path to XCTestHelper tool. -- static func xctestHelperPath(swiftCommandState: SwiftCommandState) throws -> AbsolutePath { -- var triedPaths = [AbsolutePath]() -- -- func findXCTestHelper(swiftBuildPath: AbsolutePath) -> AbsolutePath? { -- // XCTestHelper tool is installed in libexec. -- let maybePath = swiftBuildPath.parentDirectory.parentDirectory.appending( -- components: "libexec", "swift", "pm", "swiftpm-xctest-helper" -- ) -- if swiftCommandState.fileSystem.isFile(maybePath) { -- return maybePath -- } else { -- triedPaths.append(maybePath) -- return nil -- } -- } -- -- if let firstCLIArgument = CommandLine.arguments.first { -- let runningSwiftBuildPath = try AbsolutePath(validating: firstCLIArgument, relativeTo: swiftCommandState.originalWorkingDirectory) -- if let xctestHelperPath = findXCTestHelper(swiftBuildPath: runningSwiftBuildPath) { -- return xctestHelperPath -- } -- } -- -- // This will be true during swiftpm development or when using swift.org toolchains. -- let xcodePath = try AsyncProcess.checkNonZeroExit(args: "/usr/bin/xcode-select", "--print-path").spm_chomp() -- let installedSwiftBuildPath = try AsyncProcess.checkNonZeroExit( -- args: "/usr/bin/xcrun", "--find", "swift-build", -- environment: ["DEVELOPER_DIR": xcodePath] -- ).spm_chomp() -- if let xctestHelperPath = findXCTestHelper(swiftBuildPath: try AbsolutePath(validating: installedSwiftBuildPath)) { -- return xctestHelperPath -- } -- -- throw InternalError("XCTestHelper binary not found, tried \(triedPaths.map { $0.pathString }.joined(separator: ", "))") -- } -- - static func getTestSuites( - in testProducts: [BuiltTestProduct], - swiftCommandState: SwiftCommandState, -@@ -112,30 +72,6 @@ enum TestingSupport { - ) throws -> [TestSuite] { - // Run the correct tool. - var args = [String]() -- #if os(macOS) -- let data: String = try withTemporaryFile { tempFile in -- args = [try Self.xctestHelperPath(swiftCommandState: swiftCommandState).pathString, path.pathString, tempFile.path.pathString] -- let env = try Self.constructTestEnvironment( -- toolchain: try swiftCommandState.getTargetToolchain(), -- destinationBuildParameters: swiftCommandState.buildParametersForTest( -- enableCodeCoverage: enableCodeCoverage, -- shouldSkipBuilding: shouldSkipBuilding, -- experimentalTestOutput: experimentalTestOutput -- ).productsBuildParameters, -- sanitizers: sanitizers, -- library: .xctest -- ) -- try Self.runProcessWithExistenceCheck( -- path: path, -- fileSystem: swiftCommandState.fileSystem, -- args: args, -- env: env -- ) -- -- // Read the temporary file's content. -- return try swiftCommandState.fileSystem.readFileContents(AbsolutePath(tempFile.path)) -- } -- #else - let env = try Self.constructTestEnvironment( - toolchain: try swiftCommandState.getTargetToolchain(), - destinationBuildParameters: swiftCommandState.buildParametersForTest( -@@ -152,7 +88,6 @@ enum TestingSupport { - args: args, - env: env - ) -- #endif - // Parse json and return TestSuites. - return try TestSuite.parse(jsonString: data, context: args.joined(separator: " ")) - } --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0004-fix-backdeploy-rpath.patch b/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0004-fix-backdeploy-rpath.patch deleted file mode 100644 index 8cced022a02a..000000000000 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0004-fix-backdeploy-rpath.patch +++ /dev/null @@ -1,56 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sat, 13 Dec 2025 22:57:55 -0500 -Subject: [PATCH 04/11] fix-backdeploy-rpath - ---- - Sources/Build/BuildDescription/ProductBuildDescription.swift | 5 ++--- - Sources/SPMBuildCore/Plugins/DefaultPluginScriptRunner.swift | 2 +- - Sources/_InternalTestSupport/Toolchain.swift | 2 +- - 3 files changed, 4 insertions(+), 5 deletions(-) - -diff --git a/Sources/Build/BuildDescription/ProductBuildDescription.swift b/Sources/Build/BuildDescription/ProductBuildDescription.swift -index f8d80671d..9b23a8a62 100644 ---- a/Sources/Build/BuildDescription/ProductBuildDescription.swift -+++ b/Sources/Build/BuildDescription/ProductBuildDescription.swift -@@ -324,9 +324,8 @@ public final class ProductBuildDescription: SPMBuildCore.ProductBuildDescription - if macOSSupportedPlatform.version.major < 12 { - // When deploying to macOS prior to macOS 12, add an rpath to the - // back-deployed concurrency libraries. -- let backDeployedStdlib = try buildParameters.toolchain.macosSwiftStdlib -- .parentDirectory -- .parentDirectory -+ let backDeployedStdlib = try AbsolutePath(validating: "@swift-lib@") -+ .appending("lib") - .appending("swift-5.5") - .appending("macosx") - args += ["-Xlinker", "-rpath", "-Xlinker", backDeployedStdlib.pathString] -diff --git a/Sources/SPMBuildCore/Plugins/DefaultPluginScriptRunner.swift b/Sources/SPMBuildCore/Plugins/DefaultPluginScriptRunner.swift -index 47854bdc6..4ebab138d 100644 ---- a/Sources/SPMBuildCore/Plugins/DefaultPluginScriptRunner.swift -+++ b/Sources/SPMBuildCore/Plugins/DefaultPluginScriptRunner.swift -@@ -177,7 +177,7 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner, Cancellable { - } - else { - // Add an `-rpath` so the Swift 5.5 fallback libraries can be found. -- let swiftSupportLibPath = self.toolchain.swiftCompilerPathForManifests.parentDirectory.parentDirectory.appending(components: "lib", "swift-5.5", "macosx") -+ let swiftSupportLibPath = try! AbsolutePath(validating: "@swift-lib@").appending(components: "lib", "swift-5.5", "macosx") - commandLine += ["-Xlinker", "-rpath", "-Xlinker", swiftSupportLibPath.pathString] - } - #endif -diff --git a/Sources/_InternalTestSupport/Toolchain.swift b/Sources/_InternalTestSupport/Toolchain.swift -index 5746ae53d..8a3916976 100644 ---- a/Sources/_InternalTestSupport/Toolchain.swift -+++ b/Sources/_InternalTestSupport/Toolchain.swift -@@ -77,7 +77,7 @@ extension UserToolchain { - try localFileSystem.writeFileContents(inputPath, string: "public func foo() async {}\nTask { await foo() }") - let outputPath = tmpPath.appending("foo") - let toolchainPath = self.swiftCompilerPath.parentDirectory.parentDirectory -- let backDeploymentLibPath = toolchainPath.appending(components: "lib", "swift-5.5", "macosx") -+ let backDeploymentLibPath = try! AbsolutePath(validating: "@swift-lib@").appending(components: "lib", "swift-5.5", "macosx") - try AsyncProcess.checkNonZeroExit(arguments: ["/usr/bin/xcrun", "--toolchain", toolchainPath.pathString, "swiftc", inputPath.pathString, "-Xlinker", "-rpath", "-Xlinker", backDeploymentLibPath.pathString, "-o", outputPath.pathString]) - try AsyncProcess.checkNonZeroExit(arguments: [outputPath.pathString]) - } --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0009-add-missing-libraries.patch b/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0009-add-missing-libraries.patch index 0f4742608227..94a6a1978f6a 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0009-add-missing-libraries.patch +++ b/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0009-add-missing-libraries.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 13 Dec 2025 22:59:57 -0500 -Subject: [PATCH 09/11] add-missing-libraries +Subject: [PATCH 09/13] add-missing-libraries --- Sources/PackageSigning/CMakeLists.txt | 1 + @@ -21,18 +21,18 @@ index 13a7b8cd5..d00c7d01e 100644 TSCUtility X509) diff --git a/Sources/SwiftBuildSupport/CMakeLists.txt b/Sources/SwiftBuildSupport/CMakeLists.txt -index 8b6a335b3..27324e225 100644 +index 7f286e778..57c60664c 100644 --- a/Sources/SwiftBuildSupport/CMakeLists.txt +++ b/Sources/SwiftBuildSupport/CMakeLists.txt -@@ -22,6 +22,7 @@ add_library(SwiftBuildSupport STATIC +@@ -24,6 +24,7 @@ add_library(SwiftBuildSupport SwiftBuildSystem.swift SwiftBuildSystemMessageHandler.swift) target_link_libraries(SwiftBuildSupport PUBLIC + ArgumentParser + Basics Build DriverSupport - TSCBasic -@@ -29,6 +30,11 @@ target_link_libraries(SwiftBuildSupport PUBLIC +@@ -32,6 +33,11 @@ target_link_libraries(SwiftBuildSupport PUBLIC PackageGraph SwiftBuild::SwiftBuild SwiftBuild::SWBBuildService diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0010-Load-IndexStore-from-the-store.patch b/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0010-Load-IndexStore-from-the-store.patch deleted file mode 100644 index 0e3d66be1e65..000000000000 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0010-Load-IndexStore-from-the-store.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sat, 11 Jul 2026 14:43:47 -0400 -Subject: [PATCH 10/11] Load IndexStore from the store - ---- - Sources/Build/LLBuildProgressTracker.swift | 9 +++------ - 1 file changed, 3 insertions(+), 6 deletions(-) - -diff --git a/Sources/Build/LLBuildProgressTracker.swift b/Sources/Build/LLBuildProgressTracker.swift -index ec5d85fb0..39a2a426b 100644 ---- a/Sources/Build/LLBuildProgressTracker.swift -+++ b/Sources/Build/LLBuildProgressTracker.swift -@@ -114,15 +114,12 @@ public final class BuildExecutionContext { - // library is currently installed as `libIndexStore.dll` rather than - // `IndexStore.dll`. In the future, this may require a fallback - // search, preferring `IndexStore.dll` over `libIndexStore.dll`. -- let indexStoreLib = self.toolsBuildParameters.toolchain.swiftCompilerPath -- .parentDirectory -- .appending("libIndexStore.dll") -+ let indexStoreLib = TSCAbsolutePath("@libclang@").appending(components: "lib", "libIndexStore.dll") - #else - let ext = self.toolsBuildParameters.triple.dynamicLibraryExtension -- let indexStoreLib = try toolsBuildParameters.toolchain.toolchainLibDir -- .appending("libIndexStore" + ext) -+ let indexStoreLib = TSCAbsolutePath("@libclang@").appending(components: "lib", "libIndexStore" + ext) - #endif -- return try .success(IndexStoreAPI(dylib: TSCAbsolutePath(indexStoreLib))) -+ return try .success(IndexStoreAPI(dylib: indexStoreLib)) - } catch { - return .failure(error) - } --- -2.54.0 - diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0013-Help-SwiftPM-find-the-toolchain-in-the-store.patch b/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0013-Help-SwiftPM-find-the-toolchain-in-the-store.patch new file mode 100644 index 000000000000..79258770617a --- /dev/null +++ b/pkgs/development/compilers/swift/by-name/sw/swiftpm/patches/0013-Help-SwiftPM-find-the-toolchain-in-the-store.patch @@ -0,0 +1,57 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Fri, 25 Sep 2026 20:49:51 -0400 +Subject: [PATCH 12/13] Help SwiftPM find the toolchain in the store + +--- + Sources/PackageModel/Toolchain.swift | 31 +++++++++++++++++----------- + 1 file changed, 19 insertions(+), 12 deletions(-) + +diff --git a/Sources/PackageModel/Toolchain.swift b/Sources/PackageModel/Toolchain.swift +index 93d19bf55..c2ccbe71d 100644 +--- a/Sources/PackageModel/Toolchain.swift ++++ b/Sources/PackageModel/Toolchain.swift +@@ -112,21 +112,28 @@ extension Toolchain { + public var toolchainDir: AbsolutePath { + get throws { + let compilerPath = try resolveSymlinks(swiftCompilerPath) +- let os = ProcessInfo.hostOperatingSystem +- switch os { +- case .windows, .macOS, .linux, .android: ++ // If the compiler is in the store, assume the whole toolchain is in the store. ++ if compilerPath.isDescendant(of: try AbsolutePath(validating: "@store-dir@")) { + return compilerPath + .parentDirectory // bin +- .parentDirectory // usr + .parentDirectory // +- case .freebsd, .openbsd: +- return compilerPath +- .parentDirectory // bin +- .parentDirectory // local +- .parentDirectory // usr +- .parentDirectory // +- case .unknown: +- throw UnknownToolchainLayout(os: os) ++ } else { ++ let os = ProcessInfo.hostOperatingSystem ++ switch os { ++ case .windows, .macOS, .linux, .android: ++ return compilerPath ++ .parentDirectory // bin ++ .parentDirectory // usr ++ .parentDirectory // ++ case .freebsd, .openbsd: ++ return compilerPath ++ .parentDirectory // bin ++ .parentDirectory // local ++ .parentDirectory // usr ++ .parentDirectory // ++ case .unknown: ++ throw UnknownToolchainLayout(os: os) ++ } + } + } + } +-- +2.54.0 + diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/package.nix b/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/package.nix index 8b3a253e4308..0ac041ac84c1 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/package.nix +++ b/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/package.nix @@ -39,5 +39,8 @@ makeSetupHook { swiftPlatform = stdenv.hostPlatform.swift.platform; install_name_tool = lib.getExe' llvmPackages_upstream.llvm "llvm-install-name-tool"; jq = lib.getExe jq; + # XCTest on Darwin requires the XCTest framework from Xcode, which we can’t distribute. + # Fortunately, pure Swift Testing can work without using XCTest. + disableXCTest = stdenv.hostPlatform.isDarwin; }; } ./setup-hook.sh diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/setup-hook.sh b/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/setup-hook.sh index 2a76abd6a80e..6cd3c34dc160 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/setup-hook.sh +++ b/pkgs/development/compilers/swift/by-name/sw/swiftpmHook/setup-hook.sh @@ -13,7 +13,15 @@ swiftpm_addCVars() { fi # Compiler plugins if [[ "$d" =~ plugins(/testing)?$ && -n "$(ls "$d"/*@sharedLibrary@)" ]]; then - appendToVar swiftpmFlags -Xswiftc -plugin-path -Xswiftc "$d" + pluginServerPath="$1/libexec/swift/plugins" + if [[ -e "$1/libexec/swift/plugins" && "$(ls "$pluginServerPath" | wc -l)" -eq "1" ]]; then + # Only one plugin server in `libexec/swift/plugins` is supported for now. + # Support for more can be added later when it’s needed. + pluginServerExePath=$(realpath "$pluginServerPath"/*) + appendToVar swiftpmFlags -Xswiftc -external-plugin-path -Xswiftc "$d#$pluginServerExePath" + else + appendToVar swiftpmFlags -Xswiftc -plugin-path -Xswiftc "$d" + fi fi done < <(find "$1" -type d -and -regex "$swiftLibDir" -print0) } @@ -32,7 +40,6 @@ swiftpmBuildPhase() { local flagsArray=( -j "$buildCores" -c "${swiftpmBuildConfig-release}" - -Xswiftc -module-cache-path -Xswiftc "$NIX_BUILD_TOP/module-cache" ) concatTo flagsArray swiftpmFlags swiftpmFlagsArray @@ -61,8 +68,12 @@ swiftpmCheckPhase() { ) concatTo flagsArray swiftpmFlags swiftpmFlagsArray + if [ "@disableXCTest@" = 1 ]; then + appendToVar flagsArray --disable-xctest + fi + echoCmd 'check flags' "${flagsArray[@]}" - TERM=dumb swift test "${flagsArray[@]}" + TERM=dumb swift test --disable-sandbox "${flagsArray[@]}" runHook postCheck } @@ -114,7 +125,8 @@ swiftpmInstallPhase() { install -D -t "${!outputLib}/lib" "${libsToInstall[@]}" # Only install modules if there are any library products. if [ -n "${modulesToInstall}" ]; then - install -D -t "${!outputInclude}/lib/swift/@swiftPlatform@" "${modulesToInstall[@]}" + mkdir -p "${!outputInclude}/lib/swift/@swiftPlatform@" + cp -Rv "${modulesToInstall[@]}" "${!outputInclude}/lib/swift/@swiftPlatform@" fi fi @@ -130,7 +142,7 @@ makeSwiftPMFindLibs() { local -A swiftpmLibFlags isystem_seen= iframework_seen= - for flag in ${NIX_CFLAGS_COMPILE-}; do + for flag in ${NIX_CFLAGS_COMPILE-} ${NIX_LDFLAGS-}; do if test -n "$isystem_seen" && test -d "$flag"; then isystem_seen= swiftpmLibFlags["${flag}"]="-Xcc -isystem -Xcc" diff --git a/pkgs/development/compilers/swift/by-name/sw/swiftpmUnpackHook/setup-hook.sh b/pkgs/development/compilers/swift/by-name/sw/swiftpmUnpackHook/setup-hook.sh index c991654efa92..f0190dfc2cef 100644 --- a/pkgs/development/compilers/swift/by-name/sw/swiftpmUnpackHook/setup-hook.sh +++ b/pkgs/development/compilers/swift/by-name/sw/swiftpmUnpackHook/setup-hook.sh @@ -33,7 +33,7 @@ swiftpmUnpackDeps() { }, "version": 7 } - ' "$swiftpmDeps/workspace-state.json" <(swift package dump-package --package-path "$NIX_BUILD_TOP/$sourceRoot") \ + ' "$swiftpmDeps/workspace-state.json" <(swift package --disable-sandbox dump-package --package-path "$NIX_BUILD_TOP/$sourceRoot") \ > "$NIX_BUILD_TOP/$sourceRoot/.build/workspace-state.json~" mv "$NIX_BUILD_TOP/$sourceRoot/.build/workspace-state.json~" "$NIX_BUILD_TOP/$sourceRoot/.build/workspace-state.json" diff --git a/pkgs/development/compilers/swift/sources.json b/pkgs/development/compilers/swift/sources.json index c77447eb547b..5ae4313c39e2 100644 --- a/pkgs/development/compilers/swift/sources.json +++ b/pkgs/development/compilers/swift/sources.json @@ -1,76 +1,78 @@ { + "indexstore-db": { + "hash": "sha256-okJrYhn2LmRNV+Wn/QM1W6yxbt/s1X7L2kmUccxD74o=" + }, "llvm-project": { - "hash": "sha256-b+0G3b5f/i+4SgLV0nsZte5pc/tHd9fVIOPAxWInQXs=" + "hash": "sha256-EzSgVCdEYtrrC9fjqUVu4ALp8FmtwgLfLzL/pMQKb/4=" }, "sourcekit-lsp": { - "hash": "sha256-vjVcsxFCg1s8L96HSllgGGVpOQeHAWfVnLmUcP05F/o=", - "swiftpmDeps": { - "hash": "sha256-tH0dajTSHa7/wwJFA8CVsuB/9Lhojsb4fmx+reIpR88=" - } + "hash": "sha256-/uAkOzNRRFkUC+qYntBytcEcWWBEpH5hsko0LR3Skhs=" }, "swift": { - "hash": "sha256-7/jT/U0sOsr4iWnCluyUWjnD/XH5CnPyAG9EQ+Nq+tI=" + "hash": "sha256-X3jFUJiASISZmqVR1aiHF0nDL15fiIupsIUMjOTtBCM=" }, "swift-build": { - "hash": "sha256-UW6OD3WyAuN1/vkzlANfWr9lJ2x9mLFgdYC8pwbVqjE=" + "hash": "sha256-LWsynfSRHsDD7YLUyRJwbSejHYQZsAi6h3b8eB6DRYw=" }, "swift-corelibs-foundation": { - "hash": "sha256-Dm/oYkNRevXBBP1+xOgZm3/QjRLQBjk58mXt9N/sPAY=" + "hash": "sha256-6CfeV+h9/o/o5rQIirbO4FvvD5qvr/b/BhCeN2OITGk=" }, "swift-corelibs-libdispatch": { - "hash": "sha256-7UxacHkvbyt51I1WT2wWR1GDrHdknlnYWF9yF8GusQc=" + "hash": "sha256-PMm98aW2yJsUDysZ0CJFRyZ8/UZ5uJ14UytQ9KNBUeE=" }, "swift-corelibs-xctest": { - "hash": "sha256-68OKhvLKwXPZNvuFkcZsqyeVE4YlLXp5+sHfns3EGKM=" + "hash": "sha256-eRBwBuC9Wyfib7n+t+hIhbOXmoc4TrdLXsdKC/1XC24=" }, "swift-docc": { - "hash": "sha256-wRHy4yeq+LAUU7dDPc3kUT1BP9ZONl1qmfrYffuR5tQ=", + "hash": "sha256-WtoAQHb+vT6QzsoYFnaotZxCQrgAteyfHsUWFi9nNXg=", "swiftpmDeps": { - "hash": "sha256-DxF71QOqtWv9slEiE2u8dy7tT7wWl0bbkWkNVCFbUk8=" + "hash": "sha256-6cGV6UdJ/uqJjCutg+YIqT3uMpcsLgLvYPVFCoK1L0E=" } }, "swift-docc-render": { - "hash": "sha256-pF+sot+YDT/AjeMrNmdG3/T5VlhPewDcpG6B+Q9dLRk=", + "hash": "sha256-QMCtOWour2tfPIujtIZ/da/JS61U1tl4nR3KR6jm7M4=", "npmDeps": { - "hash": "sha256-10RbVbf8lA4Glqw9NZGRCFmpE660UfbTBllIKJYQ+U8=" + "hash": "sha256-DDBIWmxzsDm5pShHNIC9rC0ThN3CU1cabZIdiKI46Yo=" }, - "rev": "2d3a3b924f889fa3d5ea7d8eb8b0daad211acc21" + "rev": "5a0395a50f0bd8b7df71a10f2558c1689809b8e9" }, "swift-driver": { - "hash": "sha256-XilPErlnLI7JOnEQM3zEieyo+0/7q2hYfHfnDBtP7qE=" + "hash": "sha256-xqzjR+YdhbB8wN6OfzMPDh0lXj//dVd811gBJ3EwNL0=" }, "swift-experimental-string-processing": { - "hash": "sha256-ENnaw/1UN9PnVLTZujtpfGs5d1e3Z+5Z6EjiwM/8alU=" + "hash": "sha256-PG9BZPzK13jw8XeVbcgzxYTlc9UJhKheXPDRm8NheEM=" }, "swift-format": { - "hash": "sha256-YkOsFWaQJU786L9OB/n9jOL5G303cz0q62dw3yFWkA0=", + "hash": "sha256-cn7YyQHXsphl1M4kv0mo0F/G9pH8BVBMPtZWPkqIGTk=", "swiftpmDeps": { - "hash": "sha256-7Og56LggJPO8G7GVNCBhbLg/8iv+aR5L0Zi9bSELSM8=" + "hash": "sha256-p4YCMFzNL43AE36YJyRVwrx6z06HCUH0BRQ4dJsneic=" } }, "swift-foundation": { - "hash": "sha256-sXlA1n7SmgneUxsS7+/xNwbIOyGvLmofNXxrIG1Pq9w=" + "hash": "sha256-0l1v6XrXw6kVFeKVWWAMNEvSJDFrkmAgmTmSZb3MQYw=" }, "swift-foundation-icu": { "hash": "sha256-+Syca40t4KYTs6Y0qgfntziUebEmHdq1tNNbLau4bwc=" }, "swift-llbuild": { - "hash": "sha256-w+pZRXiGSHsxK+ewMdfX49rAJYfZ9wOql/vUGLXpJvo=" + "hash": "sha256-w4P8eMRe+9pMuRQURmku7Z6MrPlLSDqMXuvVkUJHfiw=" + }, + "swift-lmdb": { + "hash": "sha256-gTCzlvrrQhTsl9FI04nU9vkv7ZB2kEGz487r+r+0w40=" }, "swift-package-manager": { - "hash": "sha256-34mm8hYEvYuvmtkEBQDzluJSHsiwzmGWuO3ZgWnFjzg=" + "hash": "sha256-Gu5NFuowFzdZuj/qraR3RjBFCsrvDWjGoiSNYHJTY5g=" }, "swift-syntax": { - "hash": "sha256-zr+2MlGncEu1bEQwUUxlySDx4XOyK+LnX1SRbtm9ERc=" + "hash": "sha256-qRs7x0c8RSIC7yXjUDnF6HaEhkWsXPeAoLa9Tc538cI=" }, "swift-testing": { - "hash": "sha256-lXeFJcKRzoRpUYLrQT+5MITb36hSH/dXjBm4w0RispI=" + "hash": "sha256-xxXEcYf89+gbO1IQgaqQCXZ5he9apihTRe/PMaaDI7g=" }, "swift-tools-protocols": { - "hash": "sha256-q/S95ozgWkzYm3awDmAC5Obnur4OQp8aO2gstrwCOnE=", - "version": "0.0.9" + "hash": "sha256-qhBb54P5aJ/BB1dEQcy78crxV/jGld25jNsusq3pVMw=" }, "swift-tools-support-core": { - "hash": "sha256-LAboqDVEoz2Sgp3BIrasS2DVmiug89yAioJ/mFIVIjA=" + "hash": "sha256-7gZxQOlklLEVjyxsPp543gajJm/I9F7AxbLYzbJJMQo=" } } diff --git a/pkgs/development/compilers/swift/swift-version b/pkgs/development/compilers/swift/swift-version index 7849b73dc743..19b860c1872d 100644 --- a/pkgs/development/compilers/swift/swift-version +++ b/pkgs/development/compilers/swift/swift-version @@ -1 +1 @@ -6.3.3 +6.4.0 diff --git a/pkgs/development/compilers/swift/update.sh b/pkgs/development/compilers/swift/update.sh index 9c359ae5e2aa..331f2effaaa3 100755 --- a/pkgs/development/compilers/swift/update.sh +++ b/pkgs/development/compilers/swift/update.sh @@ -4,17 +4,16 @@ set -eu -o pipefail function usage() { - echo "Usage: update.sh " >&2 + echo "Usage: update.sh " >&2 exit 1 } -if [[ -z "${1:-}" || -z "${2:-}" || -z "${3:-}" ]]; then +if [[ -z "${1:-}" || -z "${2:-}" ]]; then usage fi SWIFT_VERSION=$1 SWIFT_DOCC_RENDER_REV=$2 -SWIFT_TOOLS_PROTOCOLS_VERSION=$3 SCRIPT_DIR=$(dirname "$(realpath $0)") @@ -53,9 +52,6 @@ function get_rev() { swift-docc-render) echo "$SWIFT_DOCC_RENDER_REV" ;; - swift-tools-protocols) - echo "$SWIFT_TOOLS_PROTOCOLS_VERSION" - ;; *) jq -r --arg pkg "$1" --arg swift_version "$SWIFT_VERSION" \ '.[$pkg].rev // .[$pkg].version // "swift-" + $swift_version + "-RELEASE"' "$SOURCES" @@ -124,9 +120,6 @@ for package in "${packages[@]}"; do swift-docc-render) pkg=$(jq --arg rev "$SWIFT_DOCC_RENDER_REV" '. * {"swift-docc-render": {"rev": $rev}}' <<< "$pkg") ;; - swift-tools-protocols) - pkg=$(jq --arg version "$SWIFT_TOOLS_PROTOCOLS_VERSION" '. * {"swift-tools-protocols": {"version": $version}}' <<< "$pkg") - ;; esac updatedPackages=$(jq --argjson pkg "$pkg" -S '. * $pkg' <<< "$updatedPackages") diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 538fa0212d03..cf50a2c5f350 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -106,7 +106,7 @@ with haskellLib; # to bogus references to some dependencies. overrideCabal ( old: - lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64) { + lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin { postInstall = '' ${old.postInstall or ""} remove-references-to -t ${scope.HTTP} "$out/bin/.cabal-wrapped" @@ -2855,16 +2855,7 @@ with haskellLib; monad-bayes = # Floating point precision issues. Test suite is only checked on x86_64. # https://github.com/tweag/monad-bayes/issues/368 - dontCheckIf - ( - let - inherit (pkgs.stdenv) hostPlatform; - in - !hostPlatform.isx86_64 - # Presumably because we emulate x86_64-darwin via Rosetta, x86_64-darwin - # also fails on Hydra - || hostPlatform.isDarwin - ) + dontCheckIf (!pkgs.stdenv.hostPlatform.isx86_64) # Too strict bounds on brick (<2.6), vty (<6.3) # https://github.com/tweag/monad-bayes/issues/378 (doJailbreak super.monad-bayes); diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index ea76a96800e8..a335355ea620 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -466,23 +466,4 @@ self: super: tmp-proc-postgres = dontCheck super.tmp-proc-postgres; } - // lib.optionalAttrs pkgs.stdenv.hostPlatform.isx86_64 { - # x86_64-darwin - - # tests appear to be failing to link or something: - # https://hydra.nixos.org/build/174540882/nixlog/9 - regex-rure = dontCheck super.regex-rure; - # same - # https://hydra.nixos.org/build/174540882/nixlog/9 - jacinda = dontCheck super.jacinda; - - # Greater floating point error on x86_64-darwin (!) for some reason - # https://github.com/ekmett/ad/issues/113 - ad = overrideCabal (drv: { - testFlags = drv.testFlags or [ ] ++ [ - "-p" - "!/issue-108/" - ]; - }) super.ad; - } ) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index b108be58aa8a..af16d9d41373 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1805,7 +1805,7 @@ builtins.intersectAttrs super { '' # Prevent erroneous references to other libraries that use Paths_ modules # on aarch64-darwin. Note that references to the data outputs are not removed. - + lib.optionalString (with pkgs.stdenv; hostPlatform.isDarwin && hostPlatform.isAarch64) '' + + lib.optionalString pkgs.stdenv.hostPlatform.isDarwin '' remove-references-to -t "${self.shake.out}" "$out/bin/.nvfetcher-wrapped" remove-references-to -t "${self.js-jquery.out}" "$out/bin/.nvfetcher-wrapped" remove-references-to -t "${self.js-flot.out}" "$out/bin/.nvfetcher-wrapped" diff --git a/pkgs/development/interpreters/erlang/generic-builder.nix b/pkgs/development/interpreters/erlang/generic-builder.nix index 646bf961f038..ab9eedebeaf4 100644 --- a/pkgs/development/interpreters/erlang/generic-builder.nix +++ b/pkgs/development/interpreters/erlang/generic-builder.nix @@ -133,9 +133,7 @@ stdenv.mkDerivation { ++ optional odbcSupport "--with-odbc=${unixodbc}" ++ optional wxSupport "--enable-wx" ++ optional enableSystemd "--enable-systemd" - ++ optional stdenv.hostPlatform.isDarwin "--enable-darwin-64bit" - # make[3]: *** [yecc.beam] Segmentation fault: 11 - ++ optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) "--disable-jit"; + ++ optional stdenv.hostPlatform.isDarwin "--enable-darwin-64bit"; installTargets = [ "install" diff --git a/pkgs/development/interpreters/lua-5/interpreter.nix b/pkgs/development/interpreters/lua-5/interpreter.nix index 16e83c496f80..93966ec3b1f7 100644 --- a/pkgs/development/interpreters/lua-5/interpreter.nix +++ b/pkgs/development/interpreters/lua-5/interpreter.nix @@ -237,6 +237,7 @@ stdenv.mkDerivation ( mainProgram = "lua"; license = lib.licenses.mit; platforms = lib.platforms.unix; + identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "lua" finalAttrs.version; }; } ) diff --git a/pkgs/development/interpreters/lua-5/wrap.sh b/pkgs/development/interpreters/lua-5/wrap.sh index 13d6dd6c625c..6ac752289c39 100644 --- a/pkgs/development/interpreters/lua-5/wrap.sh +++ b/pkgs/development/interpreters/lua-5/wrap.sh @@ -47,8 +47,8 @@ wrapLuaProgramsIn() { # (see pkgs/build-support/setup-hooks/make-wrapper.sh) local -a wrap_args=("$f" --prefix PATH ':' "$program_PATH" - --prefix LUA_PATH ';' "$LUA_PATH" - --prefix LUA_CPATH ';' "$LUA_CPATH" + --prefix-unchecked LUA_PATH ';' "$LUA_PATH" + --prefix-unchecked LUA_CPATH ';' "$LUA_CPATH" ) # Add any additional arguments provided by makeWrapperArgs diff --git a/pkgs/development/interpreters/lua-5/wrapper.nix b/pkgs/development/interpreters/lua-5/wrapper.nix index 09399efc95ca..7db5a0a0e405 100644 --- a/pkgs/development/interpreters/lua-5/wrapper.nix +++ b/pkgs/development/interpreters/lua-5/wrapper.nix @@ -51,9 +51,9 @@ let nix_debug "Making wrapper $prg" makeWrapper "$path/bin/$prg" "$out/bin/$prg" \ --set-default LUA_PATH ";;" \ - --suffix LUA_PATH ';' "$LUA_PATH" \ + --suffix-unchecked LUA_PATH ';' "$LUA_PATH" \ --set-default LUA_CPATH ";;" \ - --suffix LUA_CPATH ';' "$LUA_CPATH" \ + --suffix-unchecked LUA_CPATH ';' "$LUA_CPATH" \ ${lib.concatStringsSep " " makeWrapperArgs} fi fi diff --git a/pkgs/development/interpreters/luajit/2.0.nix b/pkgs/development/interpreters/luajit/2.0.nix index b282891a0cb8..7a598e69bfa8 100644 --- a/pkgs/development/interpreters/luajit/2.0.nix +++ b/pkgs/development/interpreters/luajit/2.0.nix @@ -9,13 +9,13 @@ callPackage ./default.nix { # The patch version is the timestamp of the git commit, # obtain via `cat $(nix-build -A luajit_2_0.src)/.relver` - version = "2.0.1774896119"; + version = "2.0.1791886455"; src = fetchFromGitHub { owner = "LuaJIT"; repo = "LuaJIT"; - rev = "e4c7d8b38040518d42599eef8ddb5e67aa967a9c"; - hash = "sha256-nioJxKo6msQQTP4skMEFDh6xD2cekOEXbMRFus73XuI="; + rev = "acf8fcbd932a68d130fa3e3654e1b622e10fd6af"; + hash = "sha256-nol/3bLNUf3H2O0zk13Pi2NPbsMdStNvxvGXoZHPWZc="; }; extraMeta = { diff --git a/pkgs/development/interpreters/luajit/2.1.nix b/pkgs/development/interpreters/luajit/2.1.nix index a227695f2cc4..0f6b1e21598c 100644 --- a/pkgs/development/interpreters/luajit/2.1.nix +++ b/pkgs/development/interpreters/luajit/2.1.nix @@ -8,13 +8,13 @@ callPackage ./default.nix { # The patch version is the timestamp of the git commit, # obtain via `cat $(nix-build -A luajit_2_1.src)/.relver` - version = "2.1.1785763465"; + version = "2.1.1791890110"; src = fetchFromGitHub { owner = "LuaJIT"; repo = "LuaJIT"; - rev = "1edc3e52b67eaf6ce5f809be8e17d6862594b8bc"; - hash = "sha256-mcOvVJ7AaoHrbEXxznpOkFoY7Kbd2aWMoOmyx5B4FIg="; + rev = "634daf2453559fd5e0ec282f3b7aedaa09e9f344"; + hash = "sha256-vIT7ShP1cxxhZr9/vXcNsc0nhYzjncpzLFYXDG2Ff6I="; }; inherit self passthruFun; diff --git a/pkgs/development/interpreters/luajit/default.nix b/pkgs/development/interpreters/luajit/default.nix index 280101b85380..14ecc65ed340 100644 --- a/pkgs/development/interpreters/luajit/default.nix +++ b/pkgs/development/interpreters/luajit/default.nix @@ -68,6 +68,8 @@ in stdenv.mkDerivation (finalAttrs: { pname = "luajit"; inherit version src; + __structuredAttrs = true; + strictDeps = true; luaversion = "5.1"; @@ -183,6 +185,7 @@ stdenv.mkDerivation (finalAttrs: { vcunat lblasc ]; + identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "luajit" finalAttrs.version; } // extraMeta; }) diff --git a/pkgs/development/interpreters/python/cpython/3.14/mimetypes.patch b/pkgs/development/interpreters/python/cpython/3.14/mimetypes.patch new file mode 100644 index 000000000000..f7531a9883cb --- /dev/null +++ b/pkgs/development/interpreters/python/cpython/3.14/mimetypes.patch @@ -0,0 +1,21 @@ +diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py +index ba942c6..ec82ef0 100644 +--- a/Lib/mimetypes.py ++++ b/Lib/mimetypes.py +@@ -49,15 +49,7 @@ if sys.platform == "win32": + knownfiles = [] + else: + knownfiles = [ +- "/etc/mime.types", +- "/etc/httpd/mime.types", # Mac OS X +- "/etc/httpd/conf/mime.types", # Apache +- "/etc/apache/mime.types", # Apache 1 +- "/etc/apache2/mime.types", # Apache 2 +- "/usr/local/etc/httpd/conf/mime.types", +- "/usr/local/lib/netscape/mime.types", +- "/usr/local/etc/httpd/conf/mime.types", # Apache 1.2 +- "/usr/local/etc/mime.types", # Apache 1.3 ++ "@mime-types@/etc/mime.types" + ] + + inited = False diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 81d7d51857f3..d063693af602 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -395,10 +395,13 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals (pythonAtLeast "3.13") [ ./3.13/virtualenv-permissions.patch ] - ++ optionals mimetypesSupport [ + ++ optionals (mimetypesSupport && pythonAtLeast "3.16") [ # Make the mimetypes module refer to the right file ./mimetypes.patch ] + ++ optionals (mimetypesSupport && pythonOlder "3.16") [ + ./3.14/mimetypes.patch + ] ++ optionals (hasDistutilsCxxPatch && pythonOlder "3.12") [ # Fix for http://bugs.python.org/issue1222585 # Upstream distutils is calling C compiler to compile C++ code, which diff --git a/pkgs/development/interpreters/python/default.nix b/pkgs/development/interpreters/python/default.nix index 25c27319dc4c..0583c54f97c5 100644 --- a/pkgs/development/interpreters/python/default.nix +++ b/pkgs/development/interpreters/python/default.nix @@ -20,10 +20,10 @@ sourceVersion = { major = "3"; minor = "14"; - patch = "8"; + patch = "10"; suffix = ""; }; - hash = "sha256-wiFZBPArF1WW3Ek1FYUQT0vCA0HhxHN4smosJ0NgznM="; + hash = "sha256-3kFKVxGavvUnhNiZPjQdU67WNfwrBcJgfZ+YosW3IDI="; }; }; @@ -35,10 +35,10 @@ sourceVersion = { major = "3"; minor = "11"; - patch = "17"; + patch = "18"; suffix = ""; }; - hash = "sha256-v7dK05764nzaUQ8TSrQI4A+ZksVoUc/Asc21ZG2hFZk=="; + hash = "sha256-kSDgplOGj242mNNs3ZnlpYkD7JRp5EjyHZj3sW2PopA="; inherit passthruFun; }; @@ -47,10 +47,10 @@ sourceVersion = { major = "3"; minor = "12"; - patch = "15"; + patch = "16"; suffix = ""; }; - hash = "sha256-wsQyGWH6sPuZnWbgzs9SHCqzmUx5koc+qZ4wbBCU/Vo="; + hash = "sha256-tXlpFdxF/3Rc+06ZCn58k9b1RjKKECzjFEjWnrw3V1w="; inherit passthruFun; }; @@ -59,10 +59,10 @@ sourceVersion = { major = "3"; minor = "13"; - patch = "16"; + patch = "18"; suffix = ""; }; - hash = "sha256-9LG/s8ebW7EbjSKKElBBY7TA2rTWeYKNj18mtstqs10=="; + hash = "sha256-q7AQLm1K4CdQm8uCMn2d2FUVtEo7qK1TjPxemEcCn2g="; inherit passthruFun; }; @@ -79,10 +79,10 @@ sourceVersion = { major = "3"; minor = "15"; - patch = "0"; + patch = "2"; suffix = ""; }; - hash = "sha256-ukvtG6NGuRaJC3bZ4yBFFCCqafZAiZfTPGZILurj1XU="; + hash = "sha256-i1U20oAULs9s3+FdEqIbocZeMAu/eyio0M24SVdXl94="; inherit passthruFun; }; diff --git a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py index 77a6f33d49dd..7c4617d08e5d 100644 --- a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py +++ b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py @@ -79,9 +79,9 @@ def test_requirement(requirement: Requirement) -> bool: return False # Allow prereleases, to give to give us some wiggle-room - requirement.specifier.prereleases = True - - if requirement.specifier and package.version not in requirement.specifier: + if requirement.specifier and not requirement.specifier.contains( + package.version, prereleases=True + ): error( f"{package_name}{requirement.specifier} not satisfied by version {package.version}" ) diff --git a/pkgs/development/interpreters/python/hooks/sphinx-hook.sh b/pkgs/development/interpreters/python/hooks/sphinx-hook.sh index b077438323dd..37f48f72021b 100644 --- a/pkgs/development/interpreters/python/hooks/sphinx-hook.sh +++ b/pkgs/development/interpreters/python/hooks/sphinx-hook.sh @@ -30,11 +30,8 @@ buildSphinxPhase() { exit 1 fi - if [ -n "${sphinxBuilders-}" ]; then - eval "__sphinxBuilders=($sphinxBuilders)" - else - __sphinxBuilders=(html) - fi + __sphinxBuilders=() + concatTo __sphinxBuilders sphinxBuilders=html for __builder in "${__sphinxBuilders[@]}"; do echo "Executing sphinx-build with ${__builder} builder" diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index c7f04a9d9df8..87b7b31f657c 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -546,6 +546,36 @@ lib.extendMkDerivation { ''; }; + # Deprecated unittestFlagsArray (internal) + ${ + if + finalAttrs ? unittestFlagsArray + && finalAttrs.unittestFlagsArray != null + && finalAttrs.unittestFlagsArray != [ ] + then + "buildPythonPackage-internal-unittestFlagsArray" + else + null + } = + { + kind = "broken"; + message = + let + pos = + if + attrs ? unittestFlagsArray && attrs.unittestFlagsArray != null && attrs.unittestFlagsArray != [ ] + then + unsafeGetAttrPos "unittestFlagsArray" attrs + else + null; + posString = optionalString (pos != null) " at ${pos.file}:${toString pos.line}"; + in + '' + ${finalAttrs.name}: Deprecated argument unittestFlagsArray found${posString} + Use pytestFlags or (enabled|disabled)(TestPaths|Tests|TestMarks) instead. + ''; + }; + # Deprecated argument stdenv (internal) ${if attrs ? stdenv then "buildPythonPackage-internal-stdenv" else null} = { kind = "broken"; diff --git a/pkgs/development/interpreters/python/wrapper.nix b/pkgs/development/interpreters/python/wrapper.nix index 9ec9440bb69f..7aa8bae3cacb 100644 --- a/pkgs/development/interpreters/python/wrapper.nix +++ b/pkgs/development/interpreters/python/wrapper.nix @@ -24,9 +24,15 @@ let env = let paths = requiredPythonModules extraLibs ++ [ - (runCommand "bin" { } '' - mkdir -p $out/bin - '') + (runCommand "${python.name}-env-bin" + { + strictDeps = true; + __structuredAttrs = true; + } + '' + mkdir -p $out/bin + '' + ) ]; pythonPath = "${placeholder "out"}/${python.sitePackages}"; pythonExecutable = "${placeholder "out"}/bin/${python.executable}"; @@ -70,6 +76,8 @@ let '' + postBuild; + derivationArgs.strictDeps = true; + inherit (python) meta; passthru = python.passthru // { @@ -78,6 +86,7 @@ let env = stdenv.mkDerivation { name = "interactive-${python.name}-environment"; nativeBuildInputs = [ env ]; + strictDeps = true; buildCommand = '' echo >&2 "" @@ -85,6 +94,8 @@ let echo >&2 "" exit 1 ''; + + __structuredAttrs = true; }; }; }; diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index e359b4c6fae9..303a42610b5e 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -399,8 +399,8 @@ in mkRuby = generic; ruby_3_4 = generic { - version = rubyVersion "3" "4" "11" ""; - hash = "sha256-XCK+RFJDErPUM9aHObzFMGM7HaXvi6CvoKN2gNoX094="; + version = rubyVersion "3" "4" "12" ""; + hash = "sha256-Xl2FrZOwrczLrUdzNoD0iSvQB44zQkN/e6vOAcGHJHk="; cargoHash = "sha256-5Tp8Kth0yO89/LIcU8K01z6DdZRr8MAA0DPKqDEjIt0="; }; diff --git a/pkgs/development/interpreters/spidermonkey/140.nix b/pkgs/development/interpreters/spidermonkey/140.nix index 4819459624db..9fc4dd813131 100644 --- a/pkgs/development/interpreters/spidermonkey/140.nix +++ b/pkgs/development/interpreters/spidermonkey/140.nix @@ -1,4 +1,4 @@ import ./common.nix { - version = "140.16.0"; - hash = "sha512-+r9bSBWUqahgtq43nS7om6KRuAfJQzTuFbrR/oYu20fCLokNiS4z1qbsV/zkqxKqnJxvpKUBuIHsxiEawEvZoA=="; + version = "140.17.0"; + hash = "sha512-xWn08ey63sTCSrYK9sj/A/bBKS57JEbtynzG9Vdb2NmOPunvuYd+upi9sVNUpMQmBRX4xv2aqdGYsmci9grl9A=="; } diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 32f654702590..e8c066905032 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -72,8 +72,8 @@ withDavs2 ? withFullDeps && withGPL, # AVS2 decoder withDc1394 ? withFullDeps && !stdenv.hostPlatform.isDarwin, # IIDC-1394 grabbing (ieee 1394) withDrm ? withHeadlessDeps && (with stdenv.hostPlatform; isLinux || isFreeBSD), # libdrm support - withDvdnav ? withFullDeps && withGPL && lib.versionAtLeast version "7", # needed for DVD demuxing - withDvdread ? withFullDeps && withGPL && lib.versionAtLeast version "7", # needed for DVD demuxing + withDvdnav ? withHeadlessDeps && withGPL && lib.versionAtLeast version "7", # needed for DVD demuxing + withDvdread ? withHeadlessDeps && withGPL && lib.versionAtLeast version "7", # needed for DVD demuxing withFdkAac ? withFullDeps && (!withGPL || withUnfree), # Fraunhofer FDK AAC de/encoder withNvcodec ? withHeadlessDeps diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index d0ecc9ffb662..6fea3b8628ff 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -116,7 +116,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-plugins-bad"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "out" @@ -125,7 +125,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${finalAttrs.version}.tar.xz"; - hash = "sha256-3FJTg8GLLCZbvmpD1JhlbNkYqqEwqk46vqvNqnQcP/4="; + hash = "sha256-Zw2Ii96CQlebDY6R9gzzN6p74gynwxXr+91uWpIY0QQ="; }; patches = [ diff --git a/pkgs/development/libraries/gstreamer/base/default.nix b/pkgs/development/libraries/gstreamer/base/default.nix index 47ac2203b31b..3456697ddb4f 100644 --- a/pkgs/development/libraries/gstreamer/base/default.nix +++ b/pkgs/development/libraries/gstreamer/base/default.nix @@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-plugins-base"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "out" @@ -61,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${finalAttrs.version}.tar.xz"; - hash = "sha256-7W5UEPSW0XGBh2OvImXnl3FUvH+bgn6YrPjFvtId1ac="; + hash = "sha256-recOM4H8uwJPHyCqnt6bVlSu7TnVvXCxqY9TAV5QERc="; }; __structuredAttrs = true; diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index 84b116a58495..f5f670e28290 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -40,7 +40,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "gstreamer"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "bin" @@ -52,7 +52,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${finalAttrs.version}.tar.xz"; - hash = "sha256-eHMpssV1jiKKcdkmptz5YLzqrMo8rdY4dLpmXfzaAT4="; + hash = "sha256-uqjoaYWtZBfMCtbnt5/yiExnecixx6YkDnEhgiyG5SQ="; }; depsBuildBuild = [ diff --git a/pkgs/development/libraries/gstreamer/devtools/default.nix b/pkgs/development/libraries/gstreamer/devtools/default.nix index c4a1c36560be..e284077364e8 100644 --- a/pkgs/development/libraries/gstreamer/devtools/default.nix +++ b/pkgs/development/libraries/gstreamer/devtools/default.nix @@ -16,6 +16,7 @@ rustc, cargo, json-glib, + zstd, # Checks meson.is_cross_build(), so even canExecute isn't enough. enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc, @@ -27,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-devtools"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "out" @@ -36,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-devtools/gst-devtools-${finalAttrs.version}.tar.xz"; - hash = "sha256-nzo4nWp++loY11ZHJKfzscP67P/Lj9E1HtDoEdGHOtU="; + hash = "sha256-qFJ1+R5CGuVcjsCHeUWaP5P2INKswltuZyPvQ1c8a6U="; }; cargoDeps = rustPlatform.fetchCargoVendor { @@ -74,6 +75,7 @@ stdenv.mkDerivation (finalAttrs: { cairo python3 json-glib + zstd ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ apple-sdk_gstreamer diff --git a/pkgs/development/libraries/gstreamer/ges/default.nix b/pkgs/development/libraries/gstreamer/ges/default.nix index a4e38b3672d3..5b1d7eafd17d 100644 --- a/pkgs/development/libraries/gstreamer/ges/default.nix +++ b/pkgs/development/libraries/gstreamer/ges/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-editing-services"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "out" @@ -34,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-editing-services/gst-editing-services-${finalAttrs.version}.tar.xz"; - hash = "sha256-b/wOXM7JCq1gkdP8Aa0px5Y3UFXhO5N4r/a44cIkaKM="; + hash = "sha256-TZPSMJt9AVKc1eM3X5m/fmnC4yz1nORTOzGlxxGbm1g="; }; separateDebugInfo = true; diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix index bd3330e584d6..d8f79ddb64b6 100644 --- a/pkgs/development/libraries/gstreamer/good/default.nix +++ b/pkgs/development/libraries/gstreamer/good/default.nix @@ -80,7 +80,7 @@ assert raspiCameraSupport -> hostSupportsRaspiCamera; stdenv.mkDerivation (finalAttrs: { pname = "gst-plugins-good"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "out" @@ -89,7 +89,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${finalAttrs.version}.tar.xz"; - hash = "sha256-hyVpacgs87yFdDAfPnBEqQ3grFAKWifYujjE3eiU3Ys="; + hash = "sha256-p2cO2QDT0DvnRNJcGHOyOYlumoLObRf4/rxv/7rulSE="; }; patches = [ diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix index fae41c00adf0..163101d8fb97 100644 --- a/pkgs/development/libraries/gstreamer/libav/default.nix +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -19,11 +19,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-libav"; - version = "1.28.7"; + version = "1.28.8"; src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${finalAttrs.version}.tar.xz"; - hash = "sha256-WNpR3Tns8c9vqt40zGQSABvi4uFFvKiuD0Uzb2CjarI="; + hash = "sha256-mK09f4kyxJXiaHCJA/HDOI1fJqDbNHJ6n4Ye4jtyQXc="; }; separateDebugInfo = true; diff --git a/pkgs/development/libraries/gstreamer/rtsp-server/default.nix b/pkgs/development/libraries/gstreamer/rtsp-server/default.nix index 0d283e516fb2..e436bd36a00f 100644 --- a/pkgs/development/libraries/gstreamer/rtsp-server/default.nix +++ b/pkgs/development/libraries/gstreamer/rtsp-server/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-rtsp-server"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "out" @@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-${finalAttrs.version}.tar.xz"; - hash = "sha256-3kOlmgyJoU6xwUro6B5bRcTp17H5MLDrqtNg+bXgtcQ="; + hash = "sha256-WRge0hpbwFM/tPd8t7xgBdiTZeg0sMEpSvuatffZb+A="; }; separateDebugInfo = true; diff --git a/pkgs/development/libraries/gstreamer/ugly/default.nix b/pkgs/development/libraries/gstreamer/ugly/default.nix index b362bf92c47f..c14a47f953b1 100644 --- a/pkgs/development/libraries/gstreamer/ugly/default.nix +++ b/pkgs/development/libraries/gstreamer/ugly/default.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "gst-plugins-ugly"; - version = "1.28.7"; + version = "1.28.8"; outputs = [ "out" @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${finalAttrs.version}.tar.xz"; - hash = "sha256-K2gRcN3CK2soPK/u1I9CfDChcFaXSmqe0TfDVOD3cww="; + hash = "sha256-Ua5TAC47vp7Q8iFQIMWiSL8O1BudmipOECuFg/7athw="; }; separateDebugInfo = true; diff --git a/pkgs/development/libraries/gtksourceview/5.x.nix b/pkgs/development/libraries/gtksourceview/5.x.nix index fd60f48350d7..2ac477e972da 100644 --- a/pkgs/development/libraries/gtksourceview/5.x.nix +++ b/pkgs/development/libraries/gtksourceview/5.x.nix @@ -20,12 +20,13 @@ dbus, xvfb-run, shared-mime-info, + glibcLocalesUtf8, testers, }: stdenv.mkDerivation (finalAttrs: { pname = "gtksourceview"; - version = "5.20.0"; + version = "5.21.0"; __structuredAttrs = true; strictDeps = true; @@ -38,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://gnome/sources/gtksourceview/${lib.versions.majorMinor finalAttrs.version}/gtksourceview-${finalAttrs.version}.tar.xz"; - hash = "sha256-44vNI/UrhurfD+TYveaY46jKECMiuLTPGlGsKUpEjBs="; + hash = "sha256-ZffOnS7Gg8b/myelDZCfOr72X3QtEQEeG4+LhIyt8Pc="; }; patches = [ @@ -79,6 +80,7 @@ stdenv.mkDerivation (finalAttrs: { nativeCheckInputs = [ xvfb-run dbus + glibcLocalesUtf8 ]; mesonFlags = [ diff --git a/pkgs/development/libraries/libubox/default.nix b/pkgs/development/libraries/libubox/default.nix index 36d031d7525f..765ba01d984f 100644 --- a/pkgs/development/libraries/libubox/default.nix +++ b/pkgs/development/libraries/libubox/default.nix @@ -43,12 +43,6 @@ stdenv.mkDerivation { done ''; - env.NIX_CFLAGS_COMPILE = toString ( - lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "-Wno-error=gnu-folding-constant" - ] - ); - meta = { description = "C utility functions for OpenWrt"; homepage = "https://git.openwrt.org/?p=project/libubox.git;a=summary"; diff --git a/pkgs/development/libraries/libxml2/common.nix b/pkgs/development/libraries/libxml2/common.nix index ceee6f3c5a26..072f644112f3 100644 --- a/pkgs/development/libraries/libxml2/common.nix +++ b/pkgs/development/libraries/libxml2/common.nix @@ -104,11 +104,11 @@ stdenv'.mkDerivation (finalAttrs: { doCheck = (stdenv.hostPlatform == stdenv.buildPlatform) && stdenv.hostPlatform.libc != "musl"; preCheck = - lib.optional stdenv.hostPlatform.isDarwin '' + lib.optionalString stdenv.hostPlatform.isDarwin '' export DYLD_LIBRARY_PATH="$PWD/.libs:$DYLD_LIBRARY_PATH" '' # cyg prefix doesn't work for python modules - ++ lib.optional (stdenv.hostPlatform.isCygwin && pythonSupport) '' + + lib.optionalString (stdenv.hostPlatform.isCygwin && pythonSupport) '' ln -s cygxml2mod.dll python/.libs/libxml2mod.dll ''; diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index f771869d3efc..f2381d896cd1 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -355,6 +355,7 @@ stdenv.mkDerivation (finalAttrs: { mkdir -p $opencl/etc/OpenCL/vendors/ echo $opencl/lib/libRusticlOpenCL.so > $opencl/etc/OpenCL/vendors/rusticl.icd + mkdir -p $spirv2dxil moveToOutput bin/spirv2dxil $spirv2dxil moveToOutput "lib/libspirv_to_dxil*" $spirv2dxil ''; diff --git a/pkgs/development/libraries/mesa/gbm.nix b/pkgs/development/libraries/mesa/gbm.nix index 6f9b56157253..99a181380226 100644 --- a/pkgs/development/libraries/mesa/gbm.nix +++ b/pkgs/development/libraries/mesa/gbm.nix @@ -15,7 +15,7 @@ let common = import ./common.nix { inherit lib fetchFromGitLab; }; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "mesa-libgbm"; # We don't use the versions from common.nix, because libgbm is a world rebuild, @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { domain = "gitlab.freedesktop.org"; owner = "mesa"; repo = "mesa"; - rev = "mesa-${version}"; + tag = "mesa-${finalAttrs.version}"; hash = "sha256-W2Ud9wmiIuDYMnFj8sK2SGAI1WayMCtdj7/7od/1Ql4="; }; @@ -64,5 +64,7 @@ stdenv.mkDerivation rec { python3Packages.pyyaml ]; + __structuredAttrs = true; + inherit (common) meta; -} +}) diff --git a/pkgs/development/libraries/mesa/headers.nix b/pkgs/development/libraries/mesa/headers.nix index 5c8fd735197e..6acee85e27b1 100644 --- a/pkgs/development/libraries/mesa/headers.nix +++ b/pkgs/development/libraries/mesa/headers.nix @@ -12,7 +12,7 @@ let "include/EGL/eglmesaext.h" ]; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "mesa-gl-headers"; # These are a bigger rebuild and don't change often, so keep them separate. @@ -22,10 +22,12 @@ stdenv.mkDerivation rec { domain = "gitlab.freedesktop.org"; owner = "mesa"; repo = "mesa"; - rev = "mesa-${version}"; + tag = "mesa-${finalAttrs.version}"; hash = "sha256-UlI+6OMUj5F6uVAw+Mg2wOZrjfdRq73d1qufaXVI/go"; }; + strictDeps = true; + dontBuild = true; installPhase = '' @@ -36,5 +38,7 @@ stdenv.mkDerivation rec { passthru = { inherit headers; }; + __structuredAttrs = true; + inherit (common) meta; -} +}) diff --git a/pkgs/development/libraries/nss/esr.nix b/pkgs/development/libraries/nss/esr.nix index b2f2f54591b3..4b5b795664fe 100644 --- a/pkgs/development/libraries/nss/esr.nix +++ b/pkgs/development/libraries/nss/esr.nix @@ -1,6 +1,6 @@ import ./generic.nix { - version = "3.112.5"; - hash = "sha256-+u29CbE5IyapF5w4IeBXDiiNK7usVn30C08G5FWVC88="; + version = "3.125"; + hash = "sha256-pIRoFJYsQZzI+hJcNzTX+WT91tfXDygWE0RrirfyBPc="; filename = "esr.nix"; - versionRegex = "NSS_(3)_(112)(?:_(\\d+))?_RTM"; + versionRegex = "NSS_(3)_(125)(?:_(\\d+))?_RTM"; } diff --git a/pkgs/development/libraries/opencv/4.x.nix b/pkgs/development/libraries/opencv/4.x.nix index 13919ee6877d..10af6fa5af42 100644 --- a/pkgs/development/libraries/opencv/4.x.nix +++ b/pkgs/development/libraries/opencv/4.x.nix @@ -154,8 +154,6 @@ let { ${name "lnx_intel64"} = ""; } else if effectiveStdenv.hostPlatform.system == "i686-linux" then { ${name "lnx_ia32"} = ""; } - else if effectiveStdenv.hostPlatform.system == "x86_64-darwin" then - { ${name "mac_intel64"} = ""; } else throw "ICV is not available for this platform (or not yet supported by this package)"; dst = ".cache/ippicv"; @@ -645,13 +643,7 @@ effectiveStdenv.mkDerivation { tests = { inherit (gst_all_1) gst-plugins-bad; - } - // optionalAttrs (!effectiveStdenv.hostPlatform.isDarwin) { - inherit qimgv; - withIpp = opencv4.override { enableIpp = true; }; - } - // optionalAttrs (!enablePython) { pythonEnabled = pythonPackages.opencv4; } - // optionalAttrs (effectiveStdenv.buildPlatform != "x86_64-darwin") { + opencv4-tests = callPackage ./tests.nix { inherit enableGStreamer @@ -663,6 +655,11 @@ effectiveStdenv.mkDerivation { inherit opencv4; }; } + // optionalAttrs (!effectiveStdenv.hostPlatform.isDarwin) { + inherit qimgv; + withIpp = opencv4.override { enableIpp = true; }; + } + // optionalAttrs (!enablePython) { pythonEnabled = pythonPackages.opencv4; } // optionalAttrs enableCuda { no-libstdcxx-errors = callPackage ./libstdcxx-test.nix { attrName = "opencv4"; }; }; diff --git a/pkgs/development/libraries/openssl/3.5/use-etc-ssl-certs-darwin.patch b/pkgs/development/libraries/openssl/3.5/use-etc-ssl-certs-darwin.patch deleted file mode 100644 index bb2d048542cb..000000000000 --- a/pkgs/development/libraries/openssl/3.5/use-etc-ssl-certs-darwin.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/include/internal/common.h b/include/internal/common.h -index 15666f1..d91e25b 100644 ---- a/include/internal/common.h -+++ b/include/internal/common.h -@@ -83,7 +83,7 @@ __owur static ossl_inline int ossl_assert_int(int expr, const char *exprstr, - #ifndef OPENSSL_SYS_VMS - #define X509_CERT_AREA OPENSSLDIR - #define X509_CERT_DIR OPENSSLDIR "/certs" --#define X509_CERT_FILE OPENSSLDIR "/cert.pem" -+#define X509_CERT_FILE "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt" - #define X509_PRIVATE_DIR OPENSSLDIR "/private" - #define CTLOG_FILE OPENSSLDIR "/ct_log_list.cnf" - #else diff --git a/pkgs/development/libraries/openssl/3.5/use-etc-ssl-certs.patch b/pkgs/development/libraries/openssl/3.5/use-etc-ssl-certs.patch index e0fb994161de..748fb0105ad4 100644 --- a/pkgs/development/libraries/openssl/3.5/use-etc-ssl-certs.patch +++ b/pkgs/development/libraries/openssl/3.5/use-etc-ssl-certs.patch @@ -11,3 +11,26 @@ index 15666f1..d91e25b 100644 #define X509_PRIVATE_DIR OPENSSLDIR "/private" #define CTLOG_FILE OPENSSLDIR "/ct_log_list.cnf" #else +diff --git a/crypto/x509/x509_def.c b/crypto/x509/x509_def.c +--- a/crypto/x509/x509_def.c ++++ b/crypto/x509/x509_def.c +@@ -9,4 +9,6 @@ + #include ++#include ++#include + #include "internal/e_os.h" + #include "internal/cryptlib.h" + #include "internal/thread_once.h" +@@ -95,6 +97,12 @@ const char *X509_get_default_cert_file(void) + RUN_ONCE(&openssldir_setup_init, do_openssldir_setup); + return x509_cert_fileptr; + #else ++ struct stat st; ++ ++ /* Preserve the system trust policy whenever its bundle exists. */ ++ if (stat(X509_CERT_FILE, &st) < 0 && errno == ENOENT) ++ return "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt"; ++ + return X509_CERT_FILE; + #endif + } diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index e2a921322408..ee4d53735b0a 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -209,7 +209,11 @@ let # We select KTLS here instead of the configure-time detection (which we patch out). # KTLS should work on FreeBSD 13+ as well, so we could enable it if someone tests it. ++ lib.optional enableKTLS "enable-ktls" - ++ lib.optional stdenv.hostPlatform.isAarch64 "no-afalgeng" + # Linux kernel starting with 7.3 restricts the access to AF_ALG and + # probably will drop this interface in the future. 4.0 and above dropped + # it along with engine support in + # https://github.com/openssl/openssl/commit/2db3f8cf8b432f0c39b619dd92269a732256449e + ++ lib.optional (lib.versionOlder version "4.0") "no-afalgeng" # OpenSSL needs a specific `no-shared` configure flag. # See https://wiki.openssl.org/index.php/Compilation_and_Installation#Configure_Options # for a comprehensive list of configuration options. @@ -367,7 +371,17 @@ let rm -rf $dev/lib/cmake ''; - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + passthru.tests = { + pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + } + // lib.optionalAttrs stdenv.hostPlatform.isLinux { + certificate-discovery = testers.runNixOSTest ( + import ./tests/certificate-discovery.nix { + inherit lib; + openssl = finalAttrs.finalPackage; + } + ); + }; strictDeps = true; __structuredAttrs = true; @@ -414,13 +428,8 @@ in # This patch disables build-time detection. ./3.5/openssl-disable-kernel-detection.patch - # Look up SSL certificates in /etc rather than the immutable installation directory - ( - if stdenv.hostPlatform.isDarwin then - ./3.5/use-etc-ssl-certs-darwin.patch - else - ./3.5/use-etc-ssl-certs.patch - ) + # Prefer the system CA bundle, then fall back to the default Nix profile. + ./3.5/use-etc-ssl-certs.patch ]; }; @@ -437,13 +446,8 @@ in # This patch disables build-time detection. ./3.5/openssl-disable-kernel-detection.patch - # Look up SSL certificates in /etc rather than the immutable installation directory - ( - if stdenv.hostPlatform.isDarwin then - ./3.5/use-etc-ssl-certs-darwin.patch - else - ./3.5/use-etc-ssl-certs.patch - ) + # Prefer the system CA bundle, then fall back to the default Nix profile. + ./3.5/use-etc-ssl-certs.patch ]; }; } diff --git a/pkgs/development/libraries/openssl/tests/certificate-discovery.nix b/pkgs/development/libraries/openssl/tests/certificate-discovery.nix new file mode 100644 index 000000000000..32d75d4e1a7a --- /dev/null +++ b/pkgs/development/libraries/openssl/tests/certificate-discovery.nix @@ -0,0 +1,144 @@ +{ lib, openssl }: + +{ + name = "openssl-${openssl.version}-certificate-discovery"; + + nodes.machine = { + security.pki.installCACerts = false; + users.users.verifier.isNormalUser = true; + }; + + testScript = '' + import shlex + from enum import Enum + + class State(Enum): + UNSET = "unset" + MISSING = "missing" + VALID = "valid" + INVALID = "invalid" + UNREADABLE = "unreadable" + DANGLING = "dangling" + EMPTY = "empty" + + start_all() + + system_bundle = "/etc/ssl/certs/ca-certificates.crt" + profile_bundle = "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt" + authorities = ["system", "profile", "ssl", "nix"] + + machine.succeed("mkdir -p /tmp/certificates /etc/ssl/certs /nix/var/nix/profiles/default/etc/ssl/certs") + for authority in authorities: + machine.succeed( + "${lib.getExe openssl} req -x509 -newkey rsa:2048 -noenc -days 1 " + f"-subj /CN={authority} -keyout /tmp/certificates/{authority}.key " + f"-out /tmp/certificates/{authority}.pem" + ) + + machine.succeed("printf 'invalid certificate bundle' > /tmp/certificates/invalid.pem") + machine.succeed("install -m 000 /tmp/certificates/nix.pem /tmp/certificates/unreadable.pem") + + def set_bundle(path: str, state: State, authority: str): + machine.succeed(f"rm -f {path}") + match state: + case State.MISSING: + return + case State.DANGLING: + machine.succeed(f"ln -s /tmp/certificates/missing.pem {path}") + return + case State.VALID: + source, mode = authority, "644" + case State.INVALID: + source, mode = "invalid", "644" + case State.UNREADABLE: + source, mode = authority, "000" + case _: + raise ValueError(f"Unsupported bundle state: {state}") + + machine.succeed(f"install -m {mode} /tmp/certificates/{source}.pem {path}") + + def check_trust(expected, overrides=None, explicit_bundle=None): + environment = "env -u NIX_SSL_CERT_FILE -u SSL_CERT_FILE" + for name, path in (overrides or {}).items(): + environment += " " + shlex.quote(f"{name}={path}") + + # Run without root privileges so unreadable bundles really are unreadable. + command = ( + "runuser -u verifier -- " + environment + + " ${lib.getExe openssl} verify -no-CApath -no-CAstore" + ) + if explicit_bundle is not None: + command += " -CAfile " + shlex.quote(explicit_bundle) + + for authority in authorities: + verify = command + f" /tmp/certificates/{authority}.pem" + if authority == expected: + machine.succeed(verify) + else: + machine.fail(verify) + + states = [State.MISSING, State.VALID, State.INVALID, State.UNREADABLE, State.DANGLING] + for system_state in states: + for profile_state in states: + with subtest(f"system={system_state.value}, profile={profile_state.value}"): + set_bundle(system_bundle, system_state, "system") + set_bundle(profile_bundle, profile_state, "profile") + match system_state, profile_state: + case State.VALID, _: + expected = "system" + case State.MISSING | State.DANGLING, State.VALID: + expected = "profile" + case _: + expected = None + check_trust(expected) + + set_bundle(system_bundle, State.VALID, "system") + set_bundle(profile_bundle, State.VALID, "profile") + + def override_path(state: State, authority: str): + match state: + case State.VALID: + return f"/tmp/certificates/{authority}.pem" + case State.EMPTY: + return "" + case State.INVALID | State.MISSING | State.UNREADABLE: + return f"/tmp/certificates/{state.value}.pem" + case _: + raise ValueError(f"Unsupported override state: {state}") + + # Explicit environment overrides must not fall back, even when unusable. + override_states = [State.UNSET, State.VALID, State.INVALID, State.MISSING, State.UNREADABLE, State.EMPTY] + for nix_state in override_states: + for ssl_state in override_states: + with subtest(f"NIX_SSL_CERT_FILE={nix_state.value}, SSL_CERT_FILE={ssl_state.value}"): + overrides = {} + if ssl_state is not State.UNSET: + overrides["SSL_CERT_FILE"] = override_path(ssl_state, "ssl") + if nix_state is not State.UNSET: + overrides["NIX_SSL_CERT_FILE"] = override_path(nix_state, "nix") + + match nix_state, ssl_state: + case State.VALID, _: + expected = "nix" + case State.UNSET, State.VALID: + expected = "ssl" + case State.UNSET, State.UNSET: + expected = "system" + case _: + expected = None + check_trust(expected, overrides) + + for state in [State.VALID, State.INVALID, State.MISSING, State.UNREADABLE, State.EMPTY]: + with subtest(f"explicit CAfile={state.value} takes precedence over environment overrides"): + match state: + case State.VALID: + expected = "profile" + case _: + expected = None + check_trust( + expected, + {"NIX_SSL_CERT_FILE": "/tmp/certificates/nix.pem", "SSL_CERT_FILE": "/tmp/certificates/ssl.pem"}, + override_path(state, "profile"), + ) + ''; +} diff --git a/pkgs/development/libraries/protobuf/setup-hook.sh b/pkgs/development/libraries/protobuf/setup-hook.sh index a41f112ab2aa..c33061f08ff1 100644 --- a/pkgs/development/libraries/protobuf/setup-hook.sh +++ b/pkgs/development/libraries/protobuf/setup-hook.sh @@ -3,6 +3,7 @@ ProtobufCMakeFlags() { -DPROTOC_EXE="@build_protobuf@/bin/protoc" -DProtobuf_PROTOC_EXE="@build_protobuf@/bin/protoc" -DProtobuf_PROTOC_EXECUTABLE="@build_protobuf@/bin/protoc" + -Dprotobuf_generate_PROTOC_EXE="@build_protobuf@/bin/protoc" ) } diff --git a/pkgs/development/libraries/qt-5/modules/qt3d.nix b/pkgs/development/libraries/qt-5/modules/qt3d.nix index f8fd88c1fc80..f416f8a5ef53 100644 --- a/pkgs/development/libraries/qt-5/modules/qt3d.nix +++ b/pkgs/development/libraries/qt-5/modules/qt3d.nix @@ -18,7 +18,5 @@ qtModule { "bin" ]; # error: use of undeclared identifier 'stat64' - env.NIX_CFLAGS_COMPILE = lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 - ) "-Dstat64=stat"; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Dstat64=stat"; } diff --git a/pkgs/development/libraries/qt-5/modules/qtdatavis3d.nix b/pkgs/development/libraries/qt-5/modules/qtdatavis3d.nix index a6979dfc7ef0..3dcdd9df4255 100644 --- a/pkgs/development/libraries/qt-5/modules/qtdatavis3d.nix +++ b/pkgs/development/libraries/qt-5/modules/qtdatavis3d.nix @@ -18,7 +18,5 @@ qtModule { "bin" ]; # error: use of undeclared identifier 'stat64' - env.NIX_CFLAGS_COMPILE = lib.optionalString ( - stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 - ) "-Dstat64=stat"; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Dstat64=stat"; } diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index bf8ac6194a0e..8361b27443d9 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -2,7 +2,6 @@ lib, stdenv, fetchurl, - fetchpatch, unzip, tcl, zlib, @@ -29,17 +28,17 @@ in stdenv.mkDerivation (finalAttrs: { pname = "sqlite${lib.optionalString interactive "-interactive"}"; - version = "3.53.3"; + version = "3.54.0"; # nixpkgs-update: no auto update # NB! Make sure to update ./tools.nix src (in the same directory). src = fetchurl { url = "https://sqlite.org/2026/sqlite-src-${archiveVersion finalAttrs.version}.zip"; - hash = "sha256-u4C/ijv/wZJBzoq6WkvHTpw5gAE8sLXw8JdqmVFpQq8="; + hash = "sha256-iEdlmCHgxRFr0UqUZEyCupMrLZoFrIGvLjSvgUqtfFg="; }; docsrc = fetchurl { url = "https://sqlite.org/2026/sqlite-doc-${archiveVersion finalAttrs.version}.zip"; - hash = "sha256-Fo+Zhph2vPTbjZPvoqSDqcgVNlN9AZAMWM110KZ8yic="; + hash = "sha256-oXlaxb9JHz57W07OBBDuO04EgPaod7wnzSEnxZH+J74="; }; outputs = [ @@ -61,16 +60,6 @@ stdenv.mkDerivation (finalAttrs: { ]; patches = [ - # Make test failures actually fail the build - (fetchpatch { - name = "0001-sqlite-testrunner-communicate-test-failure-to-make.patch"; - url = "https://github.com/sqlite/sqlite/commit/4e4962f6b303688412746b54200ff5402c047aee.patch"; - includes = [ - "test/testrunner.tcl" - ]; - hash = "sha256-DLV2ML2zzjd1nEVScDF1sFDdZm1CrOWt5M10rRwXYCY="; - }) - # Fix fts3corrupt4.test failure on big-endian # https://sqlite.org/forum/forumpost/40492f69f7 # Doesn't seem to have been submitted yet :( @@ -78,36 +67,6 @@ stdenv.mkDerivation (finalAttrs: { url = "https://src.fedoraproject.org/rpms/sqlite/raw/faea37529752d0134154f3678443e2822a105834/f/sqlite-3.53.3-fix-fts3corrupt4-test.patch"; hash = "sha256-cfwBOomIjm8szInOqKZfg2lmRM9K663ujKR3wVmAtrE="; }) - ] - ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ - # Add a missing `-DBUILD_sqlite` to one place in the makefile - # - # TODO(@Ericson2314): drop once a release contains it, and (before that) - # make unconditional (it is not cross-specific) next mass rebuild. - (fetchpatch { - url = "https://github.com/sqlite/sqlite/commit/67c202ab67398f6a27eaa6316e31254c065928cd.patch"; - includes = [ "main.mk" ]; - hash = "sha256-JJnIF/2SmGgPzQe7E4DmC61komZpbmjnIemggpBPLdM="; - }) - - # --with-tcl and --with-tclsh were tangled together in bad ways. These - # two commits untangle them, which unbreaks our cross builds. They were - # merged to trunk in 8364e34cbd9e. - # - # https://sqlite.org/forum/forumpost/fe9e99eb27c8c2ba - # - # TODO make it unconditional next mass rebuild, and drop it entirely - # once a release contains it. - (fetchpatch { - url = "https://github.com/sqlite/sqlite/commit/d501b949a39d276494c8e36cdc2b94bfe28e671c.patch"; - includes = [ "autosetup/sqlite-config.tcl" ]; - hash = "sha256-eTeb1o1aCjXG5jv3jK6KtSA7Lcr7lrUY+sI0iq/U8zU="; - }) - (fetchpatch { - url = "https://github.com/sqlite/sqlite/commit/e4e1b4a464e632fb06870114081d06ce7c53a1de.patch"; - includes = [ "autosetup/sqlite-config.tcl" ]; - hash = "sha256-uMhQDSP1jTj/Mz/24oOi84tE4bAINmplDoKJGxUGD1A="; - }) ]; # capi3c.test is a copy of capi3.test, but upstream only disabled the @@ -149,16 +108,11 @@ stdenv.mkDerivation (finalAttrs: { (if stdenv.hostPlatform.isStatic then "--disable-tcl" else "--with-tcl=${lib.getLib tcl}/lib") # Enabling limit-on-update/delete by adding -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT to NIX_CFLAGS_COMPILE does not work: the lemon parser generator (built early in buildPhase) doesn't receive the flag when it's invoked, as it's not been wrapped with Nix magic. "--enable-update-limit" + # This names only what runs the code generators, not + # the library, so it is the build platform's and is orthogonal to both + # `--with-tcl` and `--disable-tcl`. + "--with-tclsh=${lib.getExe' buildPackages.tcl "tclsh"}" ] - # With the patch above this names only what runs the code generators, not - # the library, so it is the build platform's and is orthogonal to both - # `--with-tcl` and `--disable-tcl`. - # - # TODO pass this unconditionally next mass rebuild: which interpreter runs - # the generators is not something to leave to a search of `PATH`. - ++ lib.optional ( - stdenv.buildPlatform != stdenv.hostPlatform - ) "--with-tclsh=${lib.getExe' buildPackages.tcl "tclsh"}" ++ lib.optional (!interactive) "--disable-readline" # autosetup only looks up readline.h in predefined set of directories. ++ lib.optional interactive "--with-readline-header=${lib.getDev readline}/include/readline/readline.h" diff --git a/pkgs/development/libraries/sqlite/tools.nix b/pkgs/development/libraries/sqlite/tools.nix index 8ff4f5555116..d955de214459 100644 --- a/pkgs/development/libraries/sqlite/tools.nix +++ b/pkgs/development/libraries/sqlite/tools.nix @@ -19,14 +19,14 @@ let }: stdenv.mkDerivation rec { inherit pname; - version = "3.53.3"; + version = "3.54.0"; # nixpkgs-update: no auto update src = assert version == sqlite.version; fetchurl { url = "https://sqlite.org/2026/sqlite-src-${archiveVersion version}.zip"; - hash = "sha256-u4C/ijv/wZJBzoq6WkvHTpw5gAE8sLXw8JdqmVFpQq8="; + hash = "sha256-iEdlmCHgxRFr0UqUZEyCupMrLZoFrIGvLjSvgUqtfFg="; }; nativeBuildInputs = [ unzip ]; diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index df0e416bf209..4a28ad1effdc 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -144,14 +144,15 @@ "--with-sqlite3=${sqlite.dev}" ]; - installTargets = [ "install-3" ]; + enableParallelInstalling = false; - # move libraries to $out/lib where they're expected to be - postInstall = '' + # Will not be automatically created by the makefile + preInstall = '' mkdir -p "$out/lib" - mv "$out"/*.* "$out/lib" ''; + installTargets = [ "install-3" ]; + # see the top of the file for an explanation passthru = { fancyName = "SQLite"; diff --git a/pkgs/development/libraries/zlib/default.nix b/pkgs/development/libraries/zlib/default.nix index 4060a4381fef..54c0a6043bb5 100644 --- a/pkgs/development/libraries/zlib/default.nix +++ b/pkgs/development/libraries/zlib/default.nix @@ -62,6 +62,8 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail 'ARFLAGS="-o"' 'ARFLAGS="-r"' substituteInPlace win32/zlib.def \ --replace-fail 'gzopen_w' "" + substituteInPlace zlib.pc.in \ + --replace-fail 'Libs: -L''${libdir} -L''${sharedlibdir} -lz' 'Libs: -L''${${lib.optionalString shared "shared"}libdir} -lz' ''; strictDeps = true; diff --git a/pkgs/development/lisp-modules/nix-cl.nix b/pkgs/development/lisp-modules/nix-cl.nix index be418d13f9a9..9e26c871a6ac 100644 --- a/pkgs/development/lisp-modules/nix-cl.nix +++ b/pkgs/development/lisp-modules/nix-cl.nix @@ -374,8 +374,8 @@ let ) if [ -n "$CL_SOURCE_REGISTRY" ]; then wrapperArgs+=( - --prefix CL_SOURCE_REGISTRY : "$CL_SOURCE_REGISTRY:" - --prefix ASDF_OUTPUT_TRANSLATIONS : "$(echo $CL_SOURCE_REGISTRY | sed s,//:,::,g):" + --prefix-unchecked CL_SOURCE_REGISTRY : "$CL_SOURCE_REGISTRY:" + --prefix-unchecked ASDF_OUTPUT_TRANSLATIONS : "$(echo $CL_SOURCE_REGISTRY | sed s,//:,::,g):" ) fi if [ -n "$LD_LIBRARY_PATH" ]; then diff --git a/pkgs/development/ocaml-modules/asetmap/default.nix b/pkgs/development/ocaml-modules/asetmap/default.nix index 3d55ca0f8102..9a3f1db1eb2a 100644 --- a/pkgs/development/ocaml-modules/asetmap/default.nix +++ b/pkgs/development/ocaml-modules/asetmap/default.nix @@ -1,35 +1,18 @@ { lib, fetchurl, - buildDunePackage, - topkg, - findlib, - ocamlbuild, - ocaml, + buildTopkgPackage, }: -buildDunePackage (finalAttrs: { +buildTopkgPackage rec { pname = "asetmap"; version = "0.8.1"; src = fetchurl { - url = "https://github.com/dbuenzli/asetmap/archive/refs/tags/v${finalAttrs.version}.tar.gz"; + url = "https://github.com/dbuenzli/asetmap/archive/refs/tags/v${version}.tar.gz"; hash = "sha256-MrskBpIs2X1p0YdmSfZX75UOTXFRRxO5jeR2YSbwMxQ="; }; - strictDeps = true; - - nativeBuildInputs = [ - topkg - findlib - ocamlbuild - ocaml - ]; - buildInputs = [ topkg ]; - - inherit (topkg) buildPhase installPhase; - meta = { - inherit (ocaml.meta) platforms; license = lib.licenses.isc; }; -}) +} diff --git a/pkgs/development/ocaml-modules/camomile/default.nix b/pkgs/development/ocaml-modules/camomile/default.nix index ccb93544db9c..5b2be0a08a4c 100644 --- a/pkgs/development/ocaml-modules/camomile/default.nix +++ b/pkgs/development/ocaml-modules/camomile/default.nix @@ -33,7 +33,7 @@ let ''; postInstall = '' - echo "version = \"${version}\"" >> $out/lib/ocaml/${ocaml.version}/site-lib/camomile/META + echo "version = \"${version}\"" >> $OCAMLFIND_DESTDIR/camomile/META ''; }; diff --git a/pkgs/development/ocaml-modules/capnp-rpc/unix.nix b/pkgs/development/ocaml-modules/capnp-rpc/unix.nix index f65db1a13e5a..4a30b03df8d9 100644 --- a/pkgs/development/ocaml-modules/capnp-rpc/unix.nix +++ b/pkgs/development/ocaml-modules/capnp-rpc/unix.nix @@ -50,7 +50,7 @@ buildDunePackage { (mdx.override { inherit logs; }) ]; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; doCheck = true; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/ocaml-modules/cascade/default.nix b/pkgs/development/ocaml-modules/cascade/default.nix index 2dfaa637fb83..2fcc64a6c9c3 100644 --- a/pkgs/development/ocaml-modules/cascade/default.nix +++ b/pkgs/development/ocaml-modules/cascade/default.nix @@ -36,7 +36,7 @@ buildDunePackage (finalAttrs: { lambdasoup ]; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; checkInputs = [ (mdx.override { inherit logs; }) alcobar diff --git a/pkgs/development/ocaml-modules/colors/default.nix b/pkgs/development/ocaml-modules/colors/default.nix index c368c6ea3af3..285c2cadff44 100644 --- a/pkgs/development/ocaml-modules/colors/default.nix +++ b/pkgs/development/ocaml-modules/colors/default.nix @@ -24,7 +24,7 @@ buildDunePackage (finalAttrs: { ]; nativeCheckInputs = [ - mdx.bin + mdx.out ]; meta = { diff --git a/pkgs/development/ocaml-modules/containers/data.nix b/pkgs/development/ocaml-modules/containers/data.nix index 243a60a7a2c6..45c7505e221f 100644 --- a/pkgs/development/ocaml-modules/containers/data.nix +++ b/pkgs/development/ocaml-modules/containers/data.nix @@ -17,7 +17,7 @@ buildDunePackage { doCheck = containers.doCheck && ocaml.meta.branch != "5.0"; buildInputs = [ dune-configurator ]; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; checkInputs = [ gen iter diff --git a/pkgs/development/ocaml-modules/dolmen/loop.nix b/pkgs/development/ocaml-modules/dolmen/loop.nix index 8d9b05ca7058..9ffea0980c41 100644 --- a/pkgs/development/ocaml-modules/dolmen/loop.nix +++ b/pkgs/development/ocaml-modules/dolmen/loop.nix @@ -32,7 +32,7 @@ buildDunePackage { ]; doCheck = true; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; checkInputs = [ mdx ]; meta = dolmen.meta // { diff --git a/pkgs/development/ocaml-modules/domain-local-await/default.nix b/pkgs/development/ocaml-modules/domain-local-await/default.nix index 49801ed55740..2661827efbd3 100644 --- a/pkgs/development/ocaml-modules/domain-local-await/default.nix +++ b/pkgs/development/ocaml-modules/domain-local-await/default.nix @@ -39,7 +39,7 @@ buildDunePackage (finalAttrs: { ]; nativeCheckInputs = [ - mdx.bin + mdx.out ]; meta = { diff --git a/pkgs/development/ocaml-modules/domain-local-timeout/default.nix b/pkgs/development/ocaml-modules/domain-local-timeout/default.nix index 75825d94a25b..660ddda58425 100644 --- a/pkgs/development/ocaml-modules/domain-local-timeout/default.nix +++ b/pkgs/development/ocaml-modules/domain-local-timeout/default.nix @@ -29,7 +29,7 @@ buildDunePackage (finalAttrs: { ]; doCheck = lib.versionAtLeast ocaml.version "5.1"; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; checkInputs = [ alcotest domain-local-await diff --git a/pkgs/development/ocaml-modules/eio/default.nix b/pkgs/development/ocaml-modules/eio/default.nix index 0ed758900b75..1a6f45ca61cc 100644 --- a/pkgs/development/ocaml-modules/eio/default.nix +++ b/pkgs/development/ocaml-modules/eio/default.nix @@ -74,7 +74,7 @@ buildDunePackage (finalAttrs: { ]; nativeCheckInputs = [ - mdx.bin + mdx.out ]; doCheck = lib.versionAtLeast ocaml.version "5.1"; diff --git a/pkgs/development/ocaml-modules/iter/default.nix b/pkgs/development/ocaml-modules/iter/default.nix index ed1f44a3b0fc..4cc95f5d9f07 100644 --- a/pkgs/development/ocaml-modules/iter/default.nix +++ b/pkgs/development/ocaml-modules/iter/default.nix @@ -19,7 +19,7 @@ buildDunePackage (finalAttrs: { }; doCheck = true; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; checkInputs = [ ounit2 qcheck-core diff --git a/pkgs/development/ocaml-modules/kcas/default.nix b/pkgs/development/ocaml-modules/kcas/default.nix index c2e01340021f..682862a7d2e9 100644 --- a/pkgs/development/ocaml-modules/kcas/default.nix +++ b/pkgs/development/ocaml-modules/kcas/default.nix @@ -29,7 +29,7 @@ buildDunePackage (finalAttrs: { ]; doCheck = lib.versionAtLeast ocaml.version "5.1" && !lib.versionAtLeast ocaml.version "5.4"; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; checkInputs = [ alcotest domain_shims diff --git a/pkgs/development/ocaml-modules/mdx/default.nix b/pkgs/development/ocaml-modules/mdx/default.nix index c639885a7fab..98bb15b83a72 100644 --- a/pkgs/development/ocaml-modules/mdx/default.nix +++ b/pkgs/development/ocaml-modules/mdx/default.nix @@ -60,18 +60,6 @@ buildDunePackage (finalAttrs: { doCheck = !stdenv.hostPlatform.isDarwin; - outputs = [ - "bin" - "lib" - "out" - ]; - - installPhase = '' - runHook preInstall - dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib mdx - runHook postInstall - ''; - passthru.updateScript = gitUpdater { }; meta = { diff --git a/pkgs/development/ocaml-modules/menhir/default.nix b/pkgs/development/ocaml-modules/menhir/default.nix index bac69d28ba81..4f366d4742f7 100644 --- a/pkgs/development/ocaml-modules/menhir/default.nix +++ b/pkgs/development/ocaml-modules/menhir/default.nix @@ -1,4 +1,5 @@ { + lib, buildDunePackage, replaceVars, ocaml, @@ -20,7 +21,7 @@ buildDunePackage { patches = [ (replaceVars ./menhir-suggest-menhirLib.patch { - libdir = "${menhirLib}/lib/ocaml/${ocaml.version}/site-lib/menhirLib"; + libdir = "${lib.getDev menhirLib}/lib/ocaml/${ocaml.version}/site-lib/menhirLib"; }) ]; diff --git a/pkgs/development/ocaml-modules/mirage-crypto/rng.nix b/pkgs/development/ocaml-modules/mirage-crypto/rng.nix index 4c80fa46ca38..e8a22ce06571 100644 --- a/pkgs/development/ocaml-modules/mirage-crypto/rng.nix +++ b/pkgs/development/ocaml-modules/mirage-crypto/rng.nix @@ -1,6 +1,4 @@ { - lib, - stdenv, buildDunePackage, mirage-crypto, ohex, @@ -26,14 +24,6 @@ buildDunePackage { randomconv ]; - # test_entropy relies on timer jitter and is flaky on x86_64-darwin. - postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - substituteInPlace tests/dune \ - --replace-fail \ - '(enabled_if (and (<> %{architecture} "arm64") (<> %{architecture} "riscv")))' \ - '(enabled_if false)' - ''; - buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ digestif diff --git a/pkgs/development/ocaml-modules/mirage/default.nix b/pkgs/development/ocaml-modules/mirage/default.nix index e0fb7af26d94..84032e92f687 100644 --- a/pkgs/development/ocaml-modules/mirage/default.nix +++ b/pkgs/development/ocaml-modules/mirage/default.nix @@ -1,6 +1,5 @@ { buildDunePackage, - ocaml, mirage-runtime, astring, bos, @@ -20,11 +19,6 @@ buildDunePackage (finalAttrs: { minimalOCamlVersion = "4.13"; - outputs = [ - "out" - "dev" - ]; - propagatedBuildInputs = [ astring bos @@ -41,12 +35,6 @@ buildDunePackage (finalAttrs: { # Tests need opam-monorepo doCheck = false; - installPhase = '' - runHook preInstall - dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ mirage - runHook postInstall - ''; - meta = mirage-runtime.meta // { description = "MirageOS library operating system"; }; diff --git a/pkgs/development/ocaml-modules/msat/default.nix b/pkgs/development/ocaml-modules/msat/default.nix index 03b71e7a9c16..2530f5beba55 100644 --- a/pkgs/development/ocaml-modules/msat/default.nix +++ b/pkgs/development/ocaml-modules/msat/default.nix @@ -28,7 +28,7 @@ buildDunePackage (finalAttrs: { doCheck = true; checkInputs = [ containers ]; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; meta = { description = "Modular sat/smt solver with proof output"; diff --git a/pkgs/development/ocaml-modules/ocaml-solo5/default.nix b/pkgs/development/ocaml-modules/ocaml-solo5/default.nix index e0111885d9d4..9cdc8112a426 100644 --- a/pkgs/development/ocaml-modules/ocaml-solo5/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-solo5/default.nix @@ -121,6 +121,9 @@ stdenv.mkDerivation (finalAttrs: { env.MODE = mode; + # The custom installPhase installs everything into $out. + outputs = [ "out" ]; + buildPhase = '' runHook preBuild dune build @default diff --git a/pkgs/development/ocaml-modules/ocsigen-server/default.nix b/pkgs/development/ocaml-modules/ocsigen-server/default.nix index 1d53de47f70e..fc5fb6a73aa2 100644 --- a/pkgs/development/ocaml-modules/ocsigen-server/default.nix +++ b/pkgs/development/ocaml-modules/ocsigen-server/default.nix @@ -30,31 +30,33 @@ }: let - mkpath = p: "${p}/lib/ocaml/${ocaml.version}/site-lib/stublibs"; -in - -let - caml_ld_library_path = lib.concatMapStringsSep ":" mkpath [ - bigstringaf - lwt - ssl - cstruct - mirage-crypto - zarith - mirage-crypto-ec - ptime - mirage-crypto-rng - mtime - ca-certs - cryptokit - re - ]; + caml_ld_library_path = + lib.makeSearchPathOutput "dev" "lib/ocaml/${ocaml.version}/site-lib/stublibs" + [ + bigstringaf + lwt + ssl + cstruct + mirage-crypto + zarith + mirage-crypto-ec + ptime + mirage-crypto-rng + mtime + ca-certs + cryptokit + re + ]; in buildDunePackage (finalAttrs: { version = "7.0.0"; pname = "ocsigenserver"; + # ocsigenserver dynamically loads its extensions from its library directory, + # so the library can't be split into a separate "dev" output. + outputs = [ "out" ]; + src = fetchFromGitHub { owner = "ocsigen"; repo = "ocsigenserver"; diff --git a/pkgs/development/ocaml-modules/odoc/default.nix b/pkgs/development/ocaml-modules/odoc/default.nix index 300854591f7e..4de15dc11a96 100644 --- a/pkgs/development/ocaml-modules/odoc/default.nix +++ b/pkgs/development/ocaml-modules/odoc/default.nix @@ -58,17 +58,8 @@ buildDunePackage (self: { patchShebangs test ''; - outputs = [ - "bin" - "lib" - "out" - ]; - - installPhase = '' - runHook preInstall - dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib odoc - remove-references-to -t ${ocaml} $bin/bin/odoc - runHook postInstall + postInstall = '' + remove-references-to -t ${ocaml} $out/bin/odoc ''; meta = { diff --git a/pkgs/development/ocaml-modules/ounit/default.nix b/pkgs/development/ocaml-modules/ounit/default.nix index 6f355769c6d0..c03c1673a652 100644 --- a/pkgs/development/ocaml-modules/ounit/default.nix +++ b/pkgs/development/ocaml-modules/ounit/default.nix @@ -7,7 +7,9 @@ stdenv.mkDerivation { pname = "ocaml${ocaml.version}-ounit"; - inherit (ounit2) version src meta; + inherit (ounit2) version src; + # ounit2 has other outputs than this package. + meta = removeAttrs ounit2.meta [ "outputsToInstall" ]; nativeBuildInputs = [ findlib ]; propagatedBuildInputs = [ ounit2 ]; diff --git a/pkgs/development/ocaml-modules/patricia-tree/default.nix b/pkgs/development/ocaml-modules/patricia-tree/default.nix index 5e6d051ad6fe..9a18b436b84c 100644 --- a/pkgs/development/ocaml-modules/patricia-tree/default.nix +++ b/pkgs/development/ocaml-modules/patricia-tree/default.nix @@ -30,7 +30,7 @@ buildDunePackage (finalAttrs: { }; nativeCheckInputs = [ - mdx.bin + mdx.out ]; checkInputs = [ diff --git a/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix b/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix index 4f1fedbb9165..3fbfe8f9d156 100644 --- a/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix +++ b/pkgs/development/ocaml-modules/ppx_deriving_yaml/default.nix @@ -52,7 +52,7 @@ buildDunePackage (finalAttrs: { alcotest mdx ]; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; meta = { description = "YAML codec generator for OCaml"; diff --git a/pkgs/development/ocaml-modules/printbox/default.nix b/pkgs/development/ocaml-modules/printbox/default.nix index fa323fea3ae7..67f52b5de0b0 100644 --- a/pkgs/development/ocaml-modules/printbox/default.nix +++ b/pkgs/development/ocaml-modules/printbox/default.nix @@ -20,7 +20,7 @@ buildDunePackage (finalAttrs: { hash = "sha256-PQbr2sjASoWz0OHAMV6buAJERpnUJxVpLAigIVnADIc="; }; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; # mdx is not available for OCaml < 4.08 doCheck = lib.versionAtLeast ocaml.version "4.08"; diff --git a/pkgs/development/ocaml-modules/printbox/text.nix b/pkgs/development/ocaml-modules/printbox/text.nix index a3f1596905a4..73c4dd53163d 100644 --- a/pkgs/development/ocaml-modules/printbox/text.nix +++ b/pkgs/development/ocaml-modules/printbox/text.nix @@ -19,7 +19,7 @@ buildDunePackage { ]; doCheck = printbox.doCheck && lib.versionOlder ocaml.version "5.0"; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; meta = printbox.meta // { description = "Text renderer for printbox, using unicode edges"; diff --git a/pkgs/development/ocaml-modules/sail/default.nix b/pkgs/development/ocaml-modules/sail/default.nix index 5a11bdfa8bb2..1fe94518d3b5 100644 --- a/pkgs/development/ocaml-modules/sail/default.nix +++ b/pkgs/development/ocaml-modules/sail/default.nix @@ -43,7 +43,7 @@ buildDunePackage { menhir lem ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.sigtool ]; @@ -74,6 +74,10 @@ buildDunePackage { dune runtest ''${enableParallelBuilding:+-j $NIX_BUILD_CORES} runHook postCheck ''; + # sail loads its dune-site plugins, and the libraries they link against, + # through findlib at runtime, so the library can't be split into a + # separate "dev" output. + outputs = [ "out" ]; installPhase = '' runHook preInstall dune install --prefix $out --libdir $OCAMLFIND_DESTDIR diff --git a/pkgs/development/ocaml-modules/saturn/default.nix b/pkgs/development/ocaml-modules/saturn/default.nix index afd2dd6018c6..0fdf4cc68c8f 100644 --- a/pkgs/development/ocaml-modules/saturn/default.nix +++ b/pkgs/development/ocaml-modules/saturn/default.nix @@ -44,7 +44,7 @@ buildDunePackage { qcheck-alcotest qcheck-stm ]; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; meta = { description = "Parallelism-safe data structures for multicore OCaml"; diff --git a/pkgs/development/ocaml-modules/smtml/default.nix b/pkgs/development/ocaml-modules/smtml/default.nix index f32b7e351008..2de1bee2a8a0 100644 --- a/pkgs/development/ocaml-modules/smtml/default.nix +++ b/pkgs/development/ocaml-modules/smtml/default.nix @@ -79,7 +79,7 @@ buildDunePackage (finalAttrs: { ]; nativeCheckInputs = [ - mdx.bin + mdx.out ]; doCheck = diff --git a/pkgs/development/ocaml-modules/thread-table/default.nix b/pkgs/development/ocaml-modules/thread-table/default.nix index 78e894b71cff..24268f4bd8f7 100644 --- a/pkgs/development/ocaml-modules/thread-table/default.nix +++ b/pkgs/development/ocaml-modules/thread-table/default.nix @@ -25,7 +25,7 @@ buildDunePackage rec { ]; nativeCheckInputs = [ - mdx.bin + mdx.out ]; meta = { diff --git a/pkgs/development/ocaml-modules/tls/eio.nix b/pkgs/development/ocaml-modules/tls/eio.nix index 26543b4d9be7..41d6d1bd5e44 100644 --- a/pkgs/development/ocaml-modules/tls/eio.nix +++ b/pkgs/development/ocaml-modules/tls/eio.nix @@ -23,7 +23,7 @@ buildDunePackage { doCheck = lib.versionAtLeast ocaml.version "5.1"; nativeCheckInputs = [ - mdx.bin + mdx.out ]; checkInputs = [ crowbar diff --git a/pkgs/development/ocaml-modules/tw/default.nix b/pkgs/development/ocaml-modules/tw/default.nix index 55f73dbe105c..64db8d3bec7e 100644 --- a/pkgs/development/ocaml-modules/tw/default.nix +++ b/pkgs/development/ocaml-modules/tw/default.nix @@ -5,7 +5,6 @@ fetchFromGitHub, fmt, lib, - ocaml, }: buildDunePackage (finalAttrs: { @@ -33,18 +32,6 @@ buildDunePackage (finalAttrs: { # and tailwindcss. doCheck = false; - outputs = [ - "bin" - "lib" - "out" - ]; - - installPhase = '' - runHook preInstall - dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib - runHook postInstall - ''; - meta = { description = "Type-safe Tailwind CSS v4 in OCaml"; homepage = "https://github.com/samoht/tw"; diff --git a/pkgs/development/ocaml-modules/uring/default.nix b/pkgs/development/ocaml-modules/uring/default.nix index 2085401e0f35..57e180bb50e9 100644 --- a/pkgs/development/ocaml-modules/uring/default.nix +++ b/pkgs/development/ocaml-modules/uring/default.nix @@ -65,7 +65,7 @@ buildDunePackage (finalAttrs: { ]; nativeCheckInputs = [ - mdx.bin + mdx.out ]; # Tests use io_uring, which is blocked by Lix's sandbox because it's diff --git a/pkgs/development/ocaml-modules/yaml/default.nix b/pkgs/development/ocaml-modules/yaml/default.nix index 003a0ea1b374..c69a650663b9 100644 --- a/pkgs/development/ocaml-modules/yaml/default.nix +++ b/pkgs/development/ocaml-modules/yaml/default.nix @@ -32,7 +32,7 @@ buildDunePackage rec { ]; doCheck = true; - nativeCheckInputs = [ mdx.bin ]; + nativeCheckInputs = [ mdx.out ]; checkInputs = [ fmt logs diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index 6b4da9b5542a..d24bb53c7297 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "accelerate"; version = "1.14.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; @@ -180,10 +179,6 @@ buildPythonPackage (finalAttrs: { # ImportError: cannot import name 'PretrainedConfig' from 'transformers.modeling_utils' "test_nested_hook" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # RuntimeError: torch_shm_manager: execl failed: Permission denied - "CheckpointTest" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/adbc-driver-flightsql/default.nix b/pkgs/development/python-modules/adbc-driver-flightsql/default.nix index 52d92186596d..09d95edbccbc 100644 --- a/pkgs/development/python-modules/adbc-driver-flightsql/default.nix +++ b/pkgs/development/python-modules/adbc-driver-flightsql/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "adbc-driver-flightsql"; version = "1.13.0"; pyproject = true; - __structuredAttrs = true; # Updates should be correlated with arrow-adbc top-level attribute, so: # nixpkgs-update: no auto update diff --git a/pkgs/development/python-modules/adbc-driver-manager/default.nix b/pkgs/development/python-modules/adbc-driver-manager/default.nix index 76cef6818130..bf564787912a 100644 --- a/pkgs/development/python-modules/adbc-driver-manager/default.nix +++ b/pkgs/development/python-modules/adbc-driver-manager/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "adbc-driver-manager"; version = "1.13.0"; pyproject = true; - __structuredAttrs = true; # Updates should be correlated with arrow-adbc top-level attribute, so: # nixpkgs-update: no auto update diff --git a/pkgs/development/python-modules/adbc-driver-postgresql/default.nix b/pkgs/development/python-modules/adbc-driver-postgresql/default.nix index 031400e4f273..20e9d115a79a 100644 --- a/pkgs/development/python-modules/adbc-driver-postgresql/default.nix +++ b/pkgs/development/python-modules/adbc-driver-postgresql/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "adbc-driver-postgresql"; version = "1.13.0"; pyproject = true; - __structuredAttrs = true; # Updates should be correlated with arrow-adbc top-level attribute, so: # nixpkgs-update: no auto update diff --git a/pkgs/development/python-modules/adbc-driver-sqlite/default.nix b/pkgs/development/python-modules/adbc-driver-sqlite/default.nix index 4da1c3dfe3c2..a9982ac8dd20 100644 --- a/pkgs/development/python-modules/adbc-driver-sqlite/default.nix +++ b/pkgs/development/python-modules/adbc-driver-sqlite/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "adbc-driver-sqlite"; version = "1.13.0"; pyproject = true; - __structuredAttrs = true; # Updates should be correlated with arrow-adbc top-level attribute, so: # nixpkgs-update: no auto update diff --git a/pkgs/development/python-modules/adbutils/default.nix b/pkgs/development/python-modules/adbutils/default.nix index 61787192397b..b19efa2e5758 100644 --- a/pkgs/development/python-modules/adbutils/default.nix +++ b/pkgs/development/python-modules/adbutils/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "adbutils"; version = "2.12.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "openatx"; diff --git a/pkgs/development/python-modules/adsbcot/default.nix b/pkgs/development/python-modules/adsbcot/default.nix index 2d58a591b977..10eecfa5ba0a 100644 --- a/pkgs/development/python-modules/adsbcot/default.nix +++ b/pkgs/development/python-modules/adsbcot/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "adsbcot"; version = "9.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snstac"; diff --git a/pkgs/development/python-modules/agent-client-protocol/default.nix b/pkgs/development/python-modules/agent-client-protocol/default.nix index be7a56f36f30..3a1703ce8557 100644 --- a/pkgs/development/python-modules/agent-client-protocol/default.nix +++ b/pkgs/development/python-modules/agent-client-protocol/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "agent-client-protocol"; version = "0.12.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "agentclientprotocol"; diff --git a/pkgs/development/python-modules/aiofile/default.nix b/pkgs/development/python-modules/aiofile/default.nix index f411ba9b5842..dd90317a813d 100644 --- a/pkgs/development/python-modules/aiofile/default.nix +++ b/pkgs/development/python-modules/aiofile/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "aiofile"; version = "3.12.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mosquito"; diff --git a/pkgs/development/python-modules/aiohomematic/default.nix b/pkgs/development/python-modules/aiohomematic/default.nix index bc0ae533f52a..205fff3b13a6 100644 --- a/pkgs/development/python-modules/aiohomematic/default.nix +++ b/pkgs/development/python-modules/aiohomematic/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "aiohomematic"; version = "2026.11.1"; pyproject = true; - __structuredAttrs = true; disabled = pythonOlder "3.14"; diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index b0b73909706c..2fd7482724a6 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -3,7 +3,6 @@ stdenv, buildPythonPackage, fetchFromGitHub, - fetchpatch2, isPyPy, pythonOlder, @@ -49,25 +48,16 @@ buildPythonPackage (finalAttrs: { pname = "aiohttp"; - version = "3.14.3"; + version = "3.14.5"; pyproject = true; src = fetchFromGitHub { owner = "aio-libs"; repo = "aiohttp"; tag = "v${finalAttrs.version}"; - hash = "sha256-n8LH34N9V2Smqc23q/49gqRbP0U1glJAYiyPEGFtEmM="; + hash = "sha256-gSxqab8AYJ6PsMP1PYWUxQ8TJ9KtEehoekLD8ziBt+g="; }; - patches = [ - # https://github.com/aio-libs/aiohttp/issues/13520 - (fetchpatch2 { - name = "cython-3.3.0-compat.patch"; - url = "https://github.com/aio-libs/aiohttp/commit/fdebfa2b81c7f85c6dccddcbf4ab45d311970b03.patch?full_index=1"; - hash = "sha256-feKp/utDEuFUqTjQOtpRgNKD9xq/CtcgLfsKGO5P2EQ="; - }) - ]; - postPatch = '' rm -r vendor patchShebangs tools @@ -78,7 +68,7 @@ buildPythonPackage (finalAttrs: { --replace-fail "cythonize: .install-cython" "cythonize:" # don't depend on coverage for tests - substituteInPlace setup.cfg \ + substituteInPlace pytest.ini \ --replace-fail "ignore:Couldn't import C tracer:coverage.exceptions.CoverageWarning" "" ''; @@ -118,7 +108,6 @@ buildPythonPackage (finalAttrs: { ]; nativeCheckInputs = [ - blockbuster freezegun gunicorn isal diff --git a/pkgs/development/python-modules/aiomysql/default.nix b/pkgs/development/python-modules/aiomysql/default.nix index 57ec0b009e41..28c0c54df699 100644 --- a/pkgs/development/python-modules/aiomysql/default.nix +++ b/pkgs/development/python-modules/aiomysql/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "aiomysql"; version = "0.3.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "aio-libs"; diff --git a/pkgs/development/python-modules/aioredis/default.nix b/pkgs/development/python-modules/aioredis/default.nix index 3ad6b3966487..f70e9658d03e 100644 --- a/pkgs/development/python-modules/aioredis/default.nix +++ b/pkgs/development/python-modules/aioredis/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-6qUar5k/LXH1S3BSfEQEN7plNAWIr+t4bNh8Vcic2Y4="; diff --git a/pkgs/development/python-modules/aiosmtplib/default.nix b/pkgs/development/python-modules/aiosmtplib/default.nix index 523cec381f7c..e5b5aa77dc67 100644 --- a/pkgs/development/python-modules/aiosmtplib/default.nix +++ b/pkgs/development/python-modules/aiosmtplib/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "aiosmtplib"; version = "5.1.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "cole"; diff --git a/pkgs/development/python-modules/aiospinel/default.nix b/pkgs/development/python-modules/aiospinel/default.nix index 1e5156451762..11d1f7b7d2f2 100644 --- a/pkgs/development/python-modules/aiospinel/default.nix +++ b/pkgs/development/python-modules/aiospinel/default.nix @@ -43,8 +43,6 @@ buildPythonPackage (finalAttrs: { "aiospinel" ]; - __structuredAttrs = true; - meta = { description = "Asyncio implementation of the Spinel protocol used to communicate with OpenThread RCPs over a serial connection"; homepage = "https://github.com/home-assistant-libs/aiospinel"; diff --git a/pkgs/development/python-modules/aiotarfile/default.nix b/pkgs/development/python-modules/aiotarfile/default.nix index 4008a15e1e1b..90e67bc0cde3 100644 --- a/pkgs/development/python-modules/aiotarfile/default.nix +++ b/pkgs/development/python-modules/aiotarfile/default.nix @@ -10,7 +10,7 @@ semver, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aiotarfile"; version = "0.5.2"; pyproject = true; @@ -18,12 +18,12 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "rhelmot"; repo = "aiotarfile"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-V88cvVw6ss7iiojhlqDd2frG/gCEH0YKTP0IpgeFASw="; }; cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname version src; + inherit (finalAttrs) pname version src; hash = "sha256-Yf6N615X9ZB+HDp3xehMc3kjKbdsSbIJrqARRXwCRDQ="; }; @@ -45,7 +45,7 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "tests/" ]; # Not sure why it isn't autodiscovered + unittestFlags = [ "--start-directory=tests" ]; # Not sure why it isn't autodiscovered # pyo3-asyncio 0.20 segfaults on the python 3.14 interpreter state. doCheck = pythonOlder "3.14"; @@ -55,8 +55,8 @@ buildPythonPackage rec { meta = { description = "Stream-based, asynchronous tarball processing"; homepage = "https://github.com/rhelmot/aiotarfile"; - changelog = "https://github.com/rhelmot/aiotarfile/commits/${src.tag}"; + changelog = "https://github.com/rhelmot/aiotarfile/commits/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ nicoo ]; }; -} +}) diff --git a/pkgs/development/python-modules/aiothreads/default.nix b/pkgs/development/python-modules/aiothreads/default.nix index 9662bd941086..64e84be05d38 100644 --- a/pkgs/development/python-modules/aiothreads/default.nix +++ b/pkgs/development/python-modules/aiothreads/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "mosquito"; repo = "aiothreads"; diff --git a/pkgs/development/python-modules/aiovban-pyaudio/default.nix b/pkgs/development/python-modules/aiovban-pyaudio/default.nix index d4d74d872661..a246719cbe0c 100644 --- a/pkgs/development/python-modules/aiovban-pyaudio/default.nix +++ b/pkgs/development/python-modules/aiovban-pyaudio/default.nix @@ -32,8 +32,6 @@ buildPythonPackage (finalAttrs: { ]; }; - __structuredAttrs = true; - meta = { changelog = "https://github.com/wmbest2/aiovban/releases/tag/${finalAttrs.src.tag}"; description = "PyAudio wrapper for aiovban"; diff --git a/pkgs/development/python-modules/aircot/default.nix b/pkgs/development/python-modules/aircot/default.nix index 9f08de388143..d22c3e876d92 100644 --- a/pkgs/development/python-modules/aircot/default.nix +++ b/pkgs/development/python-modules/aircot/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "aircot"; version = "4.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snstac"; diff --git a/pkgs/development/python-modules/airly/default.nix b/pkgs/development/python-modules/airly/default.nix index 2c14b7f96962..7d663e964173 100644 --- a/pkgs/development/python-modules/airly/default.nix +++ b/pkgs/development/python-modules/airly/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ak-ambi"; repo = "python-airly"; diff --git a/pkgs/development/python-modules/aiscot/default.nix b/pkgs/development/python-modules/aiscot/default.nix index a3f5c4a03bf1..a1df69929e68 100644 --- a/pkgs/development/python-modules/aiscot/default.nix +++ b/pkgs/development/python-modules/aiscot/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "aiscot"; version = "7.1.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snstac"; diff --git a/pkgs/development/python-modules/aistore/default.nix b/pkgs/development/python-modules/aistore/default.nix index 4abb04b2c0ad..c1935cce94db 100644 --- a/pkgs/development/python-modules/aistore/default.nix +++ b/pkgs/development/python-modules/aistore/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "aistore"; version = "1.26.0"; pyproject = true; - __structuredAttrs = true; # Tags on GitHub do not match src = fetchPypi { diff --git a/pkgs/development/python-modules/albucore/default.nix b/pkgs/development/python-modules/albucore/default.nix index 7158b48c67a6..027047158c09 100644 --- a/pkgs/development/python-modules/albucore/default.nix +++ b/pkgs/development/python-modules/albucore/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "albucore"; version = "0.2.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "albumentations-team"; diff --git a/pkgs/development/python-modules/albumentationsx/default.nix b/pkgs/development/python-modules/albumentationsx/default.nix index 9f0390968f30..41030b905845 100644 --- a/pkgs/development/python-modules/albumentationsx/default.nix +++ b/pkgs/development/python-modules/albumentationsx/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "albumentationsx"; version = "2.3.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "albumentations-team"; diff --git a/pkgs/development/python-modules/ale-py/default.nix b/pkgs/development/python-modules/ale-py/default.nix index 0711d50e8663..d76dd1024c30 100644 --- a/pkgs/development/python-modules/ale-py/default.nix +++ b/pkgs/development/python-modules/ale-py/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "ale-py"; version = "0.12.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Farama-Foundation"; diff --git a/pkgs/development/python-modules/alibabacloud-actiontrail20200706/default.nix b/pkgs/development/python-modules/alibabacloud-actiontrail20200706/default.nix index 5482393be588..c2f92e235ccf 100644 --- a/pkgs/development/python-modules/alibabacloud-actiontrail20200706/default.nix +++ b/pkgs/development/python-modules/alibabacloud-actiontrail20200706/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_actiontrail20200706"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-cs20151215/default.nix b/pkgs/development/python-modules/alibabacloud-cs20151215/default.nix index d12fd3e86560..6a35ebd5304c 100644 --- a/pkgs/development/python-modules/alibabacloud-cs20151215/default.nix +++ b/pkgs/development/python-modules/alibabacloud-cs20151215/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "7.2.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_cs20151215"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-darabonba-array/default.nix b/pkgs/development/python-modules/alibabacloud-darabonba-array/default.nix index fdef2c05d581..53b71878154f 100644 --- a/pkgs/development/python-modules/alibabacloud-darabonba-array/default.nix +++ b/pkgs/development/python-modules/alibabacloud-darabonba-array/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_darabonba_array"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-darabonba-encode-util/default.nix b/pkgs/development/python-modules/alibabacloud-darabonba-encode-util/default.nix index 5f20c5a8b646..470cf6d356ee 100644 --- a/pkgs/development/python-modules/alibabacloud-darabonba-encode-util/default.nix +++ b/pkgs/development/python-modules/alibabacloud-darabonba-encode-util/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_darabonba_encode_util"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-darabonba-map/default.nix b/pkgs/development/python-modules/alibabacloud-darabonba-map/default.nix index 9f005664d0bb..edbb0a77f3bb 100644 --- a/pkgs/development/python-modules/alibabacloud-darabonba-map/default.nix +++ b/pkgs/development/python-modules/alibabacloud-darabonba-map/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_darabonba_map"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-darabonba-signature-util/default.nix b/pkgs/development/python-modules/alibabacloud-darabonba-signature-util/default.nix index 51abf003111a..3c7340ab2dde 100644 --- a/pkgs/development/python-modules/alibabacloud-darabonba-signature-util/default.nix +++ b/pkgs/development/python-modules/alibabacloud-darabonba-signature-util/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_darabonba_signature_util"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-darabonba-string/default.nix b/pkgs/development/python-modules/alibabacloud-darabonba-string/default.nix index d23204c52fda..57a698ae13ab 100644 --- a/pkgs/development/python-modules/alibabacloud-darabonba-string/default.nix +++ b/pkgs/development/python-modules/alibabacloud-darabonba-string/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version pname; hash = "sha256-7GYUwESNrcvF5GZIWDih+M/dkRE1vqc54gsUURJwxvc="; diff --git a/pkgs/development/python-modules/alibabacloud-darabonba-time/default.nix b/pkgs/development/python-modules/alibabacloud-darabonba-time/default.nix index 6c4c0b0096cf..c9ec5b84dffc 100644 --- a/pkgs/development/python-modules/alibabacloud-darabonba-time/default.nix +++ b/pkgs/development/python-modules/alibabacloud-darabonba-time/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_darabonba_time"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-ecs20140526/default.nix b/pkgs/development/python-modules/alibabacloud-ecs20140526/default.nix index 9c301fd275d0..c4042e70adf8 100644 --- a/pkgs/development/python-modules/alibabacloud-ecs20140526/default.nix +++ b/pkgs/development/python-modules/alibabacloud-ecs20140526/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "7.11.9"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_ecs20140526"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-gateway-oss-util/default.nix b/pkgs/development/python-modules/alibabacloud-gateway-oss-util/default.nix index 37ea0b2ffc89..6ec970a2d0d3 100644 --- a/pkgs/development/python-modules/alibabacloud-gateway-oss-util/default.nix +++ b/pkgs/development/python-modules/alibabacloud-gateway-oss-util/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.14"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_gateway_oss_util"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-gateway-oss/default.nix b/pkgs/development/python-modules/alibabacloud-gateway-oss/default.nix index e559558f8ece..de49bdfa5238 100644 --- a/pkgs/development/python-modules/alibabacloud-gateway-oss/default.nix +++ b/pkgs/development/python-modules/alibabacloud-gateway-oss/default.nix @@ -23,8 +23,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.30"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_gateway_oss"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-gateway-sls-util/default.nix b/pkgs/development/python-modules/alibabacloud-gateway-sls-util/default.nix index 21566831604b..88b499cabced 100644 --- a/pkgs/development/python-modules/alibabacloud-gateway-sls-util/default.nix +++ b/pkgs/development/python-modules/alibabacloud-gateway-sls-util/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_gateway_sls_util"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-gateway-sls/default.nix b/pkgs/development/python-modules/alibabacloud-gateway-sls/default.nix index d97e0b43c31e..a7bccf531da0 100644 --- a/pkgs/development/python-modules/alibabacloud-gateway-sls/default.nix +++ b/pkgs/development/python-modules/alibabacloud-gateway-sls/default.nix @@ -19,8 +19,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_gateway_sls"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-gateway-spi/default.nix b/pkgs/development/python-modules/alibabacloud-gateway-spi/default.nix index eaeca6fb43a8..ff513166e549 100644 --- a/pkgs/development/python-modules/alibabacloud-gateway-spi/default.nix +++ b/pkgs/development/python-modules/alibabacloud-gateway-spi/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_gateway_spi"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-oss-util/default.nix b/pkgs/development/python-modules/alibabacloud-oss-util/default.nix index 3e792fd07dec..f1f49804f2ba 100644 --- a/pkgs/development/python-modules/alibabacloud-oss-util/default.nix +++ b/pkgs/development/python-modules/alibabacloud-oss-util/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_oss_util"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-oss20190517/default.nix b/pkgs/development/python-modules/alibabacloud-oss20190517/default.nix index d1d8f72b3e16..5a43a6ce7b71 100644 --- a/pkgs/development/python-modules/alibabacloud-oss20190517/default.nix +++ b/pkgs/development/python-modules/alibabacloud-oss20190517/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_oss20190517"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-ram20150501/default.nix b/pkgs/development/python-modules/alibabacloud-ram20150501/default.nix index 8c8a667350d7..17971b3a3ca4 100644 --- a/pkgs/development/python-modules/alibabacloud-ram20150501/default.nix +++ b/pkgs/development/python-modules/alibabacloud-ram20150501/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_ram20150501"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-rds20140815/default.nix b/pkgs/development/python-modules/alibabacloud-rds20140815/default.nix index 897677e5b470..b8024598d7c6 100644 --- a/pkgs/development/python-modules/alibabacloud-rds20140815/default.nix +++ b/pkgs/development/python-modules/alibabacloud-rds20140815/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "16.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_rds20140815"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-sas20181203/default.nix b/pkgs/development/python-modules/alibabacloud-sas20181203/default.nix index 108c27ae245c..171428cfe18f 100644 --- a/pkgs/development/python-modules/alibabacloud-sas20181203/default.nix +++ b/pkgs/development/python-modules/alibabacloud-sas20181203/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "10.3.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_sas20181203"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-sls20201230/default.nix b/pkgs/development/python-modules/alibabacloud-sls20201230/default.nix index f57828702108..a9cb45c3627e 100644 --- a/pkgs/development/python-modules/alibabacloud-sls20201230/default.nix +++ b/pkgs/development/python-modules/alibabacloud-sls20201230/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "5.15.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_sls20201230"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-sts20150401/default.nix b/pkgs/development/python-modules/alibabacloud-sts20150401/default.nix index 553e38a09bfe..24a124736bf8 100644 --- a/pkgs/development/python-modules/alibabacloud-sts20150401/default.nix +++ b/pkgs/development/python-modules/alibabacloud-sts20150401/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_sts20150401"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-tea-util/default.nix b/pkgs/development/python-modules/alibabacloud-tea-util/default.nix index b33dfa243c98..86a8074558f0 100644 --- a/pkgs/development/python-modules/alibabacloud-tea-util/default.nix +++ b/pkgs/development/python-modules/alibabacloud-tea-util/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.15"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_tea_util"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/alibabacloud-vpc20160428/default.nix b/pkgs/development/python-modules/alibabacloud-vpc20160428/default.nix index fc1cad999ead..ca03a32da17b 100644 --- a/pkgs/development/python-modules/alibabacloud-vpc20160428/default.nix +++ b/pkgs/development/python-modules/alibabacloud-vpc20160428/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "7.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "alibabacloud_vpc20160428"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/aliyun-log-fastpb/default.nix b/pkgs/development/python-modules/aliyun-log-fastpb/default.nix index f6ed9f4bdfe1..89b36f7b2244 100644 --- a/pkgs/development/python-modules/aliyun-log-fastpb/default.nix +++ b/pkgs/development/python-modules/aliyun-log-fastpb/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "aliyun_log_fastpb"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/amazon-ion/default.nix b/pkgs/development/python-modules/amazon-ion/default.nix index 96c07ff28a2c..5e94cac249f2 100644 --- a/pkgs/development/python-modules/amazon-ion/default.nix +++ b/pkgs/development/python-modules/amazon-ion/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "amazon-ion"; version = "0.15.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "amazon-ion"; diff --git a/pkgs/development/python-modules/anki-mac-helper/default.nix b/pkgs/development/python-modules/anki-mac-helper/default.nix index 63ef7380fc28..83d54158786c 100644 --- a/pkgs/development/python-modules/anki-mac-helper/default.nix +++ b/pkgs/development/python-modules/anki-mac-helper/default.nix @@ -27,7 +27,7 @@ buildPythonPackage (finalAttrs: { # but targets the platform directly instead of universal binary + lipo. preBuild = '' swiftc \ - -target ${stdenv.hostPlatform.darwinArch}-apple-macos11 \ + -target ${stdenv.hostPlatform.swift.triple} \ -emit-library \ -module-name ankihelper \ -O \ diff --git a/pkgs/development/python-modules/anndata/default.nix b/pkgs/development/python-modules/anndata/default.nix index 4117ac0ec2c7..70c9c8801046 100644 --- a/pkgs/development/python-modules/anndata/default.nix +++ b/pkgs/development/python-modules/anndata/default.nix @@ -42,7 +42,6 @@ buildPythonPackage (finalAttrs: { pname = "anndata"; version = "0.13.3.post0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scverse"; diff --git a/pkgs/development/python-modules/anthropic/0.nix b/pkgs/development/python-modules/anthropic/0.nix index b20d75c55d3f..ff2ed6a84fce 100644 --- a/pkgs/development/python-modules/anthropic/0.nix +++ b/pkgs/development/python-modules/anthropic/0.nix @@ -133,8 +133,6 @@ buildPythonPackage (finalAttrs: { "-Wignore::DeprecationWarning" ]; - __structuredAttrs = true; - meta = { description = "Anthropic's safety-first language model APIs"; homepage = "https://github.com/anthropics/anthropic-sdk-python"; diff --git a/pkgs/development/python-modules/anthropic/default.nix b/pkgs/development/python-modules/anthropic/default.nix index bea437ce633b..f46a68a7ba6c 100644 --- a/pkgs/development/python-modules/anthropic/default.nix +++ b/pkgs/development/python-modules/anthropic/default.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "anthropic"; version = "1.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "anthropics"; diff --git a/pkgs/development/python-modules/apache-beam/default.nix b/pkgs/development/python-modules/apache-beam/default.nix index 6ad5f4f07e41..3e11f7efa3c8 100644 --- a/pkgs/development/python-modules/apache-beam/default.nix +++ b/pkgs/development/python-modules/apache-beam/default.nix @@ -68,7 +68,6 @@ buildPythonPackage (finalAttrs: { pname = "apache-beam"; version = "2.77.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "apache"; diff --git a/pkgs/development/python-modules/apache-tvm-ffi/default.nix b/pkgs/development/python-modules/apache-tvm-ffi/default.nix index bc93c5ba1fc0..05ba10629867 100644 --- a/pkgs/development/python-modules/apache-tvm-ffi/default.nix +++ b/pkgs/development/python-modules/apache-tvm-ffi/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "apache-tvm-ffi"; version = "0.1.15-post2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "apache"; diff --git a/pkgs/development/python-modules/apex/default.nix b/pkgs/development/python-modules/apex/default.nix index 53600233cc64..f3c589fc946d 100644 --- a/pkgs/development/python-modules/apex/default.nix +++ b/pkgs/development/python-modules/apex/default.nix @@ -38,7 +38,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "apex"; version = "26.09"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nvidia"; diff --git a/pkgs/development/python-modules/apksigtool/default.nix b/pkgs/development/python-modules/apksigtool/default.nix index 7b8d2f82717d..ab9fef574b5b 100644 --- a/pkgs/development/python-modules/apksigtool/default.nix +++ b/pkgs/development/python-modules/apksigtool/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "apksigtool"; version = "0.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "obfusk"; diff --git a/pkgs/development/python-modules/applicationinsights/default.nix b/pkgs/development/python-modules/applicationinsights/default.nix index 49f58a6f8cfe..21f05475e67b 100644 --- a/pkgs/development/python-modules/applicationinsights/default.nix +++ b/pkgs/development/python-modules/applicationinsights/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { pyproject = true; pname = "applicationinsights"; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-C3YfPvBoCs9HMZBt/BgH+qbypXFornRZLbAISmCZ97M="; diff --git a/pkgs/development/python-modules/apscheduler/default.nix b/pkgs/development/python-modules/apscheduler/default.nix index 0d03b1775976..2edee08e2b08 100644 --- a/pkgs/development/python-modules/apscheduler/default.nix +++ b/pkgs/development/python-modules/apscheduler/default.nix @@ -28,8 +28,14 @@ buildPythonPackage rec { hash = "sha256-AhVlACRg0Xwy9XmFRl29of5uM2aJa5Gv2SzFuJXVCpE="; }; + patches = [ + # unclear how apscheduler could ever work since _offset has been removed from pytz for ages + ./pytz-offset.patch + ]; + postPatch = '' - sed -i "/addopts/d" pyproject.toml + substituteInPlace pyproject.toml \ + --replace-fail 'addopts = "-rsx --tb=short"' "" ''; build-system = [ diff --git a/pkgs/development/python-modules/apscheduler/pytz-offset.patch b/pkgs/development/python-modules/apscheduler/pytz-offset.patch new file mode 100644 index 000000000000..f05f8087a9b9 --- /dev/null +++ b/pkgs/development/python-modules/apscheduler/pytz-offset.patch @@ -0,0 +1,11 @@ +--- a/src/apscheduler/util.py 1970-01-01 01:00:01.000000000 +0100 ++++ b/src/apscheduler/util.py 2026-11-02 01:03:59.743158612 +0100 +@@ -115,7 +115,7 @@ + if obj.zone: + return ZoneInfo(obj.zone) + +- return timezone(obj._offset) ++ return timezone(obj._utcoffset) + + return obj + diff --git a/pkgs/development/python-modules/area/default.nix b/pkgs/development/python-modules/area/default.nix index b9fbb93227d2..53294072ea2a 100644 --- a/pkgs/development/python-modules/area/default.nix +++ b/pkgs/development/python-modules/area/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-yuu5Zmjd7dtQ5/Vu0jbaO4RFn262fwMGplLBTiuHZaI="; diff --git a/pkgs/development/python-modules/argparse-addons/default.nix b/pkgs/development/python-modules/argparse-addons/default.nix index 3b47ee009c21..cca5718296d2 100644 --- a/pkgs/development/python-modules/argparse-addons/default.nix +++ b/pkgs/development/python-modules/argparse-addons/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.12.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "argparse_addons"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/arpeggio/default.nix b/pkgs/development/python-modules/arpeggio/default.nix index a2a2d0844231..38d09312daad 100644 --- a/pkgs/development/python-modules/arpeggio/default.nix +++ b/pkgs/development/python-modules/arpeggio/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "Arpeggio"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/arpy/default.nix b/pkgs/development/python-modules/arpy/default.nix index f4dc4ca11a1a..00c2a71be2d8 100644 --- a/pkgs/development/python-modules/arpy/default.nix +++ b/pkgs/development/python-modules/arpy/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "2.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "viraptor"; repo = "arpy"; diff --git a/pkgs/development/python-modules/array-api-compat/default.nix b/pkgs/development/python-modules/array-api-compat/default.nix index 383dd9cc332b..577711e55a45 100644 --- a/pkgs/development/python-modules/array-api-compat/default.nix +++ b/pkgs/development/python-modules/array-api-compat/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "array-api-compat"; version = "1.15"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "data-apis"; diff --git a/pkgs/development/python-modules/arviz-base/default.nix b/pkgs/development/python-modules/arviz-base/default.nix index c85c438ea8a2..2451862a6c39 100644 --- a/pkgs/development/python-modules/arviz-base/default.nix +++ b/pkgs/development/python-modules/arviz-base/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "arviz-base"; inherit (arviz) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arviz-devs"; diff --git a/pkgs/development/python-modules/arviz-plots/default.nix b/pkgs/development/python-modules/arviz-plots/default.nix index 985551deab73..40ce8bf8214c 100644 --- a/pkgs/development/python-modules/arviz-plots/default.nix +++ b/pkgs/development/python-modules/arviz-plots/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "arviz-plots"; inherit (arviz) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arviz-devs"; diff --git a/pkgs/development/python-modules/arviz-stats/default.nix b/pkgs/development/python-modules/arviz-stats/default.nix index cb8c29bf0f7f..5b5e1fb36882 100644 --- a/pkgs/development/python-modules/arviz-stats/default.nix +++ b/pkgs/development/python-modules/arviz-stats/default.nix @@ -41,7 +41,6 @@ buildPythonPackage (finalAttrs: { pname = "arviz-stats"; inherit (arviz) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arviz-devs"; diff --git a/pkgs/development/python-modules/arviz/default.nix b/pkgs/development/python-modules/arviz/default.nix index db1e5b500e39..261592a6644d 100644 --- a/pkgs/development/python-modules/arviz/default.nix +++ b/pkgs/development/python-modules/arviz/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "arviz"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arviz-devs"; diff --git a/pkgs/development/python-modules/arxiv2bib/default.nix b/pkgs/development/python-modules/arxiv2bib/default.nix index a27a25aed637..18986454ec75 100644 --- a/pkgs/development/python-modules/arxiv2bib/default.nix +++ b/pkgs/development/python-modules/arxiv2bib/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.8"; pyproject = true; - __structuredAttrs = true; - # Missing tests on Pypi src = fetchFromGitHub { owner = "nathangrigg"; @@ -28,9 +26,8 @@ buildPythonPackage (finalAttrs: { unittestCheckHook mock ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonImportsCheck = [ "arxiv2bib" ]; diff --git a/pkgs/development/python-modules/asgiref/default.nix b/pkgs/development/python-modules/asgiref/default.nix index 516fb48f8b5f..209913f89afe 100644 --- a/pkgs/development/python-modules/asgiref/default.nix +++ b/pkgs/development/python-modules/asgiref/default.nix @@ -10,7 +10,7 @@ }: buildPythonPackage (finalAttrs: { - version = "3.11.1"; + version = "3.13.0"; pname = "asgiref"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage (finalAttrs: { owner = "django"; repo = "asgiref"; tag = finalAttrs.version; - hash = "sha256-Mhnaowgv5a+O2hN0ZSdtdhCBQx8HoKSwtRC3gHodgKY="; + hash = "sha256-Qsg0PwD6XYZkcBIcnwEjPC+2fCro35MQyXMPWm64014="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/asndb/default.nix b/pkgs/development/python-modules/asndb/default.nix index 5058b59362a6..6339734fc597 100644 --- a/pkgs/development/python-modules/asndb/default.nix +++ b/pkgs/development/python-modules/asndb/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Q1qXQepm1ouBfJwQVHKfiMPV66lLlsqZGxWa1Asj0Mo="; diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index 02291cdfef73..55bb4db82bb1 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -153,6 +153,14 @@ buildPythonPackage rec { pytestFlags = [ "--hypothesis-profile=ci" ]; + disabledTests = [ + # Depends on the build date: Asserts that the IERS-B table bundled in + # `astropy-iers-data` covers `Time.now() - 300 days`, so it fails for any + # build more than 300 days after the end of that table. + # Tests run by nixpkgs should not be time-dependent for reproducibility. + # See https://github.com/astropy/astropy/issues/20725 + "test_iers_b_out_of_range_handling" + ]; postCheck = '' rm conftest.py ''; diff --git a/pkgs/development/python-modules/asynch/default.nix b/pkgs/development/python-modules/asynch/default.nix index ef360881b2d7..c32a3e468444 100644 --- a/pkgs/development/python-modules/asynch/default.nix +++ b/pkgs/development/python-modules/asynch/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "asynch"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "long2ice"; diff --git a/pkgs/development/python-modules/asyncpraw/default.nix b/pkgs/development/python-modules/asyncpraw/default.nix index 82cee3aaaa6e..d93ca750fea4 100644 --- a/pkgs/development/python-modules/asyncpraw/default.nix +++ b/pkgs/development/python-modules/asyncpraw/default.nix @@ -20,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "8.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "praw-dev"; repo = "asyncpraw"; diff --git a/pkgs/development/python-modules/auditok/default.nix b/pkgs/development/python-modules/auditok/default.nix index 6c14b827f766..e6df43998a34 100644 --- a/pkgs/development/python-modules/auditok/default.nix +++ b/pkgs/development/python-modules/auditok/default.nix @@ -32,9 +32,8 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonImportsCheck = [ "auditok" ]; diff --git a/pkgs/development/python-modules/autofaiss/default.nix b/pkgs/development/python-modules/autofaiss/default.nix index 654fdb48380b..890e7c8cb8c3 100644 --- a/pkgs/development/python-modules/autofaiss/default.nix +++ b/pkgs/development/python-modules/autofaiss/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "autofaiss"; version = "2.18.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "criteo"; diff --git a/pkgs/development/python-modules/autopxd2/default.nix b/pkgs/development/python-modules/autopxd2/default.nix index 220fa2cbd00f..aed92811a1ae 100644 --- a/pkgs/development/python-modules/autopxd2/default.nix +++ b/pkgs/development/python-modules/autopxd2/default.nix @@ -13,7 +13,6 @@ buildPythonPackage rec { pname = "autopxd2"; version = "3.2.3"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "autopxd2"; diff --git a/pkgs/development/python-modules/av/default.nix b/pkgs/development/python-modules/av/default.nix index ed146e326bd8..fbd683ad2c0a 100644 --- a/pkgs/development/python-modules/av/default.nix +++ b/pkgs/development/python-modules/av/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "av"; version = "19.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "PyAV-Org"; diff --git a/pkgs/development/python-modules/awkward-cpp/default.nix b/pkgs/development/python-modules/awkward-cpp/default.nix index 508fd4536990..637ec42f2898 100644 --- a/pkgs/development/python-modules/awkward-cpp/default.nix +++ b/pkgs/development/python-modules/awkward-cpp/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "awkward-cpp"; version = "57"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "awkward_cpp"; diff --git a/pkgs/development/python-modules/awkward/default.nix b/pkgs/development/python-modules/awkward/default.nix index 0bead4f2d926..c79e30f21746 100644 --- a/pkgs/development/python-modules/awkward/default.nix +++ b/pkgs/development/python-modules/awkward/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "awkward"; version = "2.14.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scikit-hep"; diff --git a/pkgs/development/python-modules/ax-platform/default.nix b/pkgs/development/python-modules/ax-platform/default.nix index 6254cf13b416..e5381b7a7ed8 100644 --- a/pkgs/development/python-modules/ax-platform/default.nix +++ b/pkgs/development/python-modules/ax-platform/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, @@ -35,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "ax-platform"; version = "1.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "facebook"; @@ -131,10 +129,6 @@ buildPythonPackage (finalAttrs: { # Timeout "test_efficient_loo_cv_with_fully_bayesian_model" "test_fitting_auxiliary_experiment_dataset" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # flaky - "test_gen_with_expanded_parameter_space" ]; pythonImportsCheck = [ "ax" ]; diff --git a/pkgs/development/python-modules/azure-ai-vision-imageanalysis/default.nix b/pkgs/development/python-modules/azure-ai-vision-imageanalysis/default.nix index 7a6830b4cc53..15f53351c7db 100644 --- a/pkgs/development/python-modules/azure-ai-vision-imageanalysis/default.nix +++ b/pkgs/development/python-modules/azure-ai-vision-imageanalysis/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "azure-ai-vision-imageanalysis"; version = "1.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Azure"; diff --git a/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix b/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix index ef7d647e03a8..caf461f3323c 100644 --- a/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-keyvault/default.nix b/pkgs/development/python-modules/azure-keyvault/default.nix index 07a2a407f1b8..fa14fc299dba 100644 --- a/pkgs/development/python-modules/azure-keyvault/default.nix +++ b/pkgs/development/python-modules/azure-keyvault/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "4.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-kusto-data/default.nix b/pkgs/development/python-modules/azure-kusto-data/default.nix index 4aece96fb20b..9dc667615e7d 100644 --- a/pkgs/development/python-modules/azure-kusto-data/default.nix +++ b/pkgs/development/python-modules/azure-kusto-data/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "azure-kusto-data"; version = "6.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Azure"; diff --git a/pkgs/development/python-modules/azure-loganalytics/default.nix b/pkgs/development/python-modules/azure-loganalytics/default.nix index 5224e1c61b2e..525423e3d986 100644 --- a/pkgs/development/python-modules/azure-loganalytics/default.nix +++ b/pkgs/development/python-modules/azure-loganalytics/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.1"; pyproject = true; - __structuredAttrs = true; pname = "azure-loganalytics"; src = fetchPypi { diff --git a/pkgs/development/python-modules/azure-mgmt-authorization/default.nix b/pkgs/development/python-modules/azure-mgmt-authorization/default.nix index c3fe9442a19b..276e2554ecca 100644 --- a/pkgs/development/python-modules/azure-mgmt-authorization/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-authorization/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "4.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-batchai/default.nix b/pkgs/development/python-modules/azure-mgmt-batchai/default.nix index 04f8506fdbeb..78f67d8983b9 100644 --- a/pkgs/development/python-modules/azure-mgmt-batchai/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-batchai/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "7.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "azure_mgmt_batchai"; diff --git a/pkgs/development/python-modules/azure-mgmt-cdn/default.nix b/pkgs/development/python-modules/azure-mgmt-cdn/default.nix index 42fd03a6dee8..8b3341db7710 100644 --- a/pkgs/development/python-modules/azure-mgmt-cdn/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-cdn/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "13.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-RmMwTzG2Zy3sMgx857qXFcK5nn2LaEs3XwtO/9qQIQw="; diff --git a/pkgs/development/python-modules/azure-mgmt-common/default.nix b/pkgs/development/python-modules/azure-mgmt-common/default.nix index 10a38123b846..e03a0078b3b0 100644 --- a/pkgs/development/python-modules/azure-mgmt-common/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-common/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.20.0"; pyproject = true; - __structuredAttrs = true; pname = "azure-mgmt-common"; src = fetchPypi { diff --git a/pkgs/development/python-modules/azure-mgmt-core/default.nix b/pkgs/development/python-modules/azure-mgmt-core/default.nix index ab802204010e..201b5a0d33fe 100644 --- a/pkgs/development/python-modules/azure-mgmt-core/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-core/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "azure_mgmt_core"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix b/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix index 1e1ecd10b08a..d88641b92a81 100644 --- a/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix b/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix index f9c27c9929bb..6c2085696ced 100644 --- a/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix b/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix index 56e286dd4019..64117b682d8e 100644 --- a/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix b/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix index 4d2e0df42b4c..2e9867ae5658 100644 --- a/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "9.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-domainregistration/default.nix b/pkgs/development/python-modules/azure-mgmt-domainregistration/default.nix index 8ba6a9bac958..746fae309ab9 100644 --- a/pkgs/development/python-modules/azure-mgmt-domainregistration/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-domainregistration/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "azure-mgmt-domainregistration"; version = "1.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "azure_mgmt_domainregistration"; diff --git a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix index ad748df07389..ebc6b518b9dc 100644 --- a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix index abe83beecdf5..3e9370787762 100644 --- a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "9.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix b/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix index 55f3581a98f1..bc5201693893 100644 --- a/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix b/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix index 4c7e79bad362..45a250c879d6 100644 --- a/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "12.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix index ecea97d1ff64..0f3ec86c65aa 100644 --- a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix b/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix index b745239db374..98bdb1c0fb93 100644 --- a/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-maps/default.nix b/pkgs/development/python-modules/azure-mgmt-maps/default.nix index 713621e7c2eb..0c564f9427aa 100644 --- a/pkgs/development/python-modules/azure-mgmt-maps/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-maps/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-XVaml4UuVBanYYHxjB1YT/PvExzgAPbD4gI3Hbc0dI0="; diff --git a/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix b/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix index c1665509d223..64eb1d35b8b0 100644 --- a/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix index 10f3e7e3b1e8..65210a128cf1 100644 --- a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "8.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix b/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix index 18e8b06e0a8d..c75f2ea35632 100644 --- a/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix b/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix index 1fc4634c1474..0c6d054bde3d 100644 --- a/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "10.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-redis/default.nix b/pkgs/development/python-modules/azure-mgmt-redis/default.nix index 60f829c75b4e..aa173f035e82 100644 --- a/pkgs/development/python-modules/azure-mgmt-redis/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-redis/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "14.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "azure_mgmt_redis"; diff --git a/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix b/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix index d4a78e59962f..f962e7717d25 100644 --- a/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-QVw6Y9HachwBRwCbF0cSGLCAkSJtNnXBvsj5YX1TmJU="; diff --git a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix index dbd255d38d1e..7ddf473b67b7 100644 --- a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.0b2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "tar.gz"; diff --git a/pkgs/development/python-modules/azure-mgmt-sql/default.nix b/pkgs/development/python-modules/azure-mgmt-sql/default.nix index 26a058b44fbc..062d7df78b84 100644 --- a/pkgs/development/python-modules/azure-mgmt-sql/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-sql/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-subscription/default.nix b/pkgs/development/python-modules/azure-mgmt-subscription/default.nix index 15dd01bb3b28..5e8177ee95dc 100644 --- a/pkgs/development/python-modules/azure-mgmt-subscription/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-subscription/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "3.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix b/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix index 99a2ee0040ea..874445f418d6 100644 --- a/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-nspkg/default.nix b/pkgs/development/python-modules/azure-nspkg/default.nix index fcb7cfbe7cbe..b7bd892a5722 100644 --- a/pkgs/development/python-modules/azure-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-nspkg/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.2"; pyproject = true; - __structuredAttrs = true; pname = "azure-nspkg"; src = fetchPypi { diff --git a/pkgs/development/python-modules/azure-servicefabric/default.nix b/pkgs/development/python-modules/azure-servicefabric/default.nix index 9e10d5c81611..4f3af749f2d9 100644 --- a/pkgs/development/python-modules/azure-servicefabric/default.nix +++ b/pkgs/development/python-modules/azure-servicefabric/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "8.2.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; extension = "zip"; diff --git a/pkgs/development/python-modules/azure-storage-common/default.nix b/pkgs/development/python-modules/azure-storage-common/default.nix index 3b05afab23a2..8723b2fbca22 100644 --- a/pkgs/development/python-modules/azure-storage-common/default.nix +++ b/pkgs/development/python-modules/azure-storage-common/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-zO3vXGcie8TWZw/9N87Bj7UpobfDpeU+QJbrDPI9xz8="; diff --git a/pkgs/development/python-modules/azure-storage-file/default.nix b/pkgs/development/python-modules/azure-storage-file/default.nix index 440ba22c21ae..d6bacd8a7dee 100644 --- a/pkgs/development/python-modules/azure-storage-file/default.nix +++ b/pkgs/development/python-modules/azure-storage-file/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-NVm5x6sTRQxm6oM+uCwoIzvuJPG9jKGap9J/jCPVvFM="; diff --git a/pkgs/development/python-modules/azure-storage-nspkg/default.nix b/pkgs/development/python-modules/azure-storage-nspkg/default.nix index bbd7c2c59420..b6c5ba701843 100644 --- a/pkgs/development/python-modules/azure-storage-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-storage-nspkg/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-bzu+hlLV9UJ2fYQz5/lrjff1GHdAVax8ku18qF9lOBE="; diff --git a/pkgs/development/python-modules/azure-synapse-artifacts/default.nix b/pkgs/development/python-modules/azure-synapse-artifacts/default.nix index 7bb296f2e0e6..f8bad39ce660 100644 --- a/pkgs/development/python-modules/azure-synapse-artifacts/default.nix +++ b/pkgs/development/python-modules/azure-synapse-artifacts/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.22.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "azure_synapse_artifacts"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/babelgladeextractor/default.nix b/pkgs/development/python-modules/babelgladeextractor/default.nix index cce37be7548d..e6df9049c06b 100644 --- a/pkgs/development/python-modules/babelgladeextractor/default.nix +++ b/pkgs/development/python-modules/babelgladeextractor/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.2"; pyproject = true; - __structuredAttrs = true; - disabled = (!isPy3k); # uses python3 specific file io in setup.py src = fetchPypi { diff --git a/pkgs/development/python-modules/backports-zstd/default.nix b/pkgs/development/python-modules/backports-zstd/default.nix index 8f33e0385e94..3ca752600804 100644 --- a/pkgs/development/python-modules/backports-zstd/default.nix +++ b/pkgs/development/python-modules/backports-zstd/default.nix @@ -7,20 +7,20 @@ zstd, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "backports-zstd"; - version = "1.7.0"; + version = "1.8.0"; pyproject = true; src = fetchFromGitHub { owner = "rogdham"; repo = "backports.zstd"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; fetchSubmodules = true; postFetch = '' rm -r "$out/src/c/zstd" ''; - hash = "sha256-d5dkWhsRyUkLD0AiauQuLrNYtbPbwUVN8jpKk6N3/R0="; + hash = "sha256-Rq9ofN84GNzBZAg1tkw526k1dJHg8xPRGfnNOLmAieg="; }; postPatch = '' @@ -52,10 +52,10 @@ buildPythonPackage rec { ]; meta = { - changelog = "https://github.com/rogdham/backports.zstd/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/rogdham/backports.zstd/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Backport of compression.zstd"; homepage = "https://github.com/rogdham/backports.zstd"; license = lib.licenses.psfl; maintainers = [ lib.maintainers.dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/bahttext/default.nix b/pkgs/development/python-modules/bahttext/default.nix index 5f8500900ada..c766f413ecfe 100644 --- a/pkgs/development/python-modules/bahttext/default.nix +++ b/pkgs/development/python-modules/bahttext/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "bahttext"; version = "1.0.2-unstable-2020-05-31"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sekz"; diff --git a/pkgs/development/python-modules/bambi/default.nix b/pkgs/development/python-modules/bambi/default.nix index 77c26e40b298..7cb23f02ab71 100644 --- a/pkgs/development/python-modules/bambi/default.nix +++ b/pkgs/development/python-modules/bambi/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "bambi"; version = "0.21.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "bambinos"; @@ -133,7 +132,7 @@ buildPythonPackage (finalAttrs: { "test_with_groups" "test_with_user_values" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Python crash (in matplotlib) # Fatal Python error: Aborted "test_categorical_response" diff --git a/pkgs/development/python-modules/bandcamp-api/default.nix b/pkgs/development/python-modules/bandcamp-api/default.nix index a1fbaaffc8bb..c70e1659c48c 100644 --- a/pkgs/development/python-modules/bandcamp-api/default.nix +++ b/pkgs/development/python-modules/bandcamp-api/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "bandcamp_api"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/bangla/default.nix b/pkgs/development/python-modules/bangla/default.nix index ce3ff769ef0e..c44b7941bde9 100644 --- a/pkgs/development/python-modules/bangla/default.nix +++ b/pkgs/development/python-modules/bangla/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-r/5AaVajaWNRwTRkY3O59+aWewrJ2Rnclnc29n3GCxs="; diff --git a/pkgs/development/python-modules/bap/default.nix b/pkgs/development/python-modules/bap/default.nix index cecfbf1a1309..2a0f9487d240 100644 --- a/pkgs/development/python-modules/bap/default.nix +++ b/pkgs/development/python-modules/bap/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.3.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "BinaryAnalysisPlatform"; repo = "bap-python"; diff --git a/pkgs/development/python-modules/baron/default.nix b/pkgs/development/python-modules/baron/default.nix index 36421a2d87a5..0955bc9a4cec 100644 --- a/pkgs/development/python-modules/baron/default.nix +++ b/pkgs/development/python-modules/baron/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.10.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-r4Iq1E1OtCXIUW30I5rE/bqf2zmO935JJM18m0BFvC8="; diff --git a/pkgs/development/python-modules/base36/default.nix b/pkgs/development/python-modules/base36/default.nix index 69555c07ce71..58b502c32897 100644 --- a/pkgs/development/python-modules/base36/default.nix +++ b/pkgs/development/python-modules/base36/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "tonyseek"; repo = "python-base36"; diff --git a/pkgs/development/python-modules/base58check/default.nix b/pkgs/development/python-modules/base58check/default.nix index 378f7f84fc1b..da887bac8658 100644 --- a/pkgs/development/python-modules/base58check/default.nix +++ b/pkgs/development/python-modules/base58check/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.2"; pyproject = true; - __structuredAttrs = true; - build-system = [ setuptools ]; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/baseline/default.nix b/pkgs/development/python-modules/baseline/default.nix index 218888366bae..5a8378d79ce2 100644 --- a/pkgs/development/python-modules/baseline/default.nix +++ b/pkgs/development/python-modules/baseline/default.nix @@ -12,8 +12,6 @@ buildPythonPackage { version = "1.2.1"; pyproject = true; - __structuredAttrs = true; - disabled = !isPy3k; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/baselines/default.nix b/pkgs/development/python-modules/baselines/default.nix index 067ba844d4f0..563952f43915 100644 --- a/pkgs/development/python-modules/baselines/default.nix +++ b/pkgs/development/python-modules/baselines/default.nix @@ -24,7 +24,6 @@ buildPythonPackage { pname = "baselines"; version = "0.1.6"; # remember to manually adjust the rev pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "openai"; diff --git a/pkgs/development/python-modules/bashlex/default.nix b/pkgs/development/python-modules/bashlex/default.nix index 9bbabfbc6e98..afd6e10ed394 100644 --- a/pkgs/development/python-modules/bashlex/default.nix +++ b/pkgs/development/python-modules/bashlex/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "idank"; repo = "bashlex"; diff --git a/pkgs/development/python-modules/basiciw/default.nix b/pkgs/development/python-modules/basiciw/default.nix index 38c4f313ef31..9341e560e84f 100644 --- a/pkgs/development/python-modules/basiciw/default.nix +++ b/pkgs/development/python-modules/basiciw/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.2"; pyproject = true; - __structuredAttrs = true; - disabled = isPyPy; src = fetchPypi { diff --git a/pkgs/development/python-modules/batchspawner/default.nix b/pkgs/development/python-modules/batchspawner/default.nix index d580f493c553..7bb4be51f6c2 100644 --- a/pkgs/development/python-modules/batchspawner/default.nix +++ b/pkgs/development/python-modules/batchspawner/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "batchspawner"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterhub"; diff --git a/pkgs/development/python-modules/baycomp/default.nix b/pkgs/development/python-modules/baycomp/default.nix index 06d982616bdd..5ff3c41185e0 100644 --- a/pkgs/development/python-modules/baycomp/default.nix +++ b/pkgs/development/python-modules/baycomp/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-MrJa17FtWyUd259hEKMtezlTuYcJbaHSXvJ3k10l2uw="; diff --git a/pkgs/development/python-modules/bbpb/default.nix b/pkgs/development/python-modules/bbpb/default.nix index e92544a0a68b..6b0d587d9eeb 100644 --- a/pkgs/development/python-modules/bbpb/default.nix +++ b/pkgs/development/python-modules/bbpb/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-A0RpkbxQDPyd0gSebMlImXnhV8Xst5PieTarPVedNJY="; diff --git a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix index 59a20a28af2d..a8a7b86226bc 100644 --- a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.6.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "bridgecrewio"; repo = "jsonpath-ng"; diff --git a/pkgs/development/python-modules/bcdoc/default.nix b/pkgs/development/python-modules/bcdoc/default.nix index ac66aa8e5cd4..102fc03c5230 100644 --- a/pkgs/development/python-modules/bcdoc/default.nix +++ b/pkgs/development/python-modules/bcdoc/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.16.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-9WjBguBog77PcZbyJwUkNc/9RWBHAMgjYsp300J7YgI="; diff --git a/pkgs/development/python-modules/bcf/default.nix b/pkgs/development/python-modules/bcf/default.nix index a50da1f740da..64bb9f6e120f 100644 --- a/pkgs/development/python-modules/bcf/default.nix +++ b/pkgs/development/python-modules/bcf/default.nix @@ -19,8 +19,6 @@ buildPythonPackage (finalAttrs: { version = "1.9.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "hardwario"; repo = "bch-firmware-tool"; diff --git a/pkgs/development/python-modules/bcg/default.nix b/pkgs/development/python-modules/bcg/default.nix index c1a511defad5..66dcb6eed67a 100644 --- a/pkgs/development/python-modules/bcg/default.nix +++ b/pkgs/development/python-modules/bcg/default.nix @@ -19,8 +19,6 @@ buildPythonPackage (finalAttrs: { version = "1.17.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "hardwario"; repo = "bch-gateway"; diff --git a/pkgs/development/python-modules/bch/default.nix b/pkgs/development/python-modules/bch/default.nix index c947beafd19b..a389ac05b37f 100644 --- a/pkgs/development/python-modules/bch/default.nix +++ b/pkgs/development/python-modules/bch/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "hardwario"; repo = "bch-control-tool"; diff --git a/pkgs/development/python-modules/beanstalkc/default.nix b/pkgs/development/python-modules/beanstalkc/default.nix index 65e66ae844eb..af00d7ac16a4 100644 --- a/pkgs/development/python-modules/beanstalkc/default.nix +++ b/pkgs/development/python-modules/beanstalkc/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "bosondata"; repo = "beanstalkc"; diff --git a/pkgs/development/python-modules/beautiful-date/default.nix b/pkgs/development/python-modules/beautiful-date/default.nix index abaf49324d9f..c6e57a2f9577 100644 --- a/pkgs/development/python-modules/beautiful-date/default.nix +++ b/pkgs/development/python-modules/beautiful-date/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "kuzmoyev"; repo = "beautiful-date"; diff --git a/pkgs/development/python-modules/beautifultable/default.nix b/pkgs/development/python-modules/beautifultable/default.nix index c78f95c6da7e..275974dfc111 100644 --- a/pkgs/development/python-modules/beautifultable/default.nix +++ b/pkgs/development/python-modules/beautifultable/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "pri22296"; repo = "beautifultable"; diff --git a/pkgs/development/python-modules/bech32/default.nix b/pkgs/development/python-modules/bech32/default.nix index 2a754b268943..21c18068c8ee 100644 --- a/pkgs/development/python-modules/bech32/default.nix +++ b/pkgs/development/python-modules/bech32/default.nix @@ -9,8 +9,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-fW24IUYDvXhx/PpsCCbvaLhbCr2Q+iHChanF4h0r2Jk="; diff --git a/pkgs/development/python-modules/before-after/default.nix b/pkgs/development/python-modules/before-after/default.nix index 5d6a58aad6d4..26b9f69db923 100644 --- a/pkgs/development/python-modules/before-after/default.nix +++ b/pkgs/development/python-modules/before-after/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "before_after"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/bencode-py/default.nix b/pkgs/development/python-modules/bencode-py/default.nix index c79d2d71e040..4c2fa7077f8d 100644 --- a/pkgs/development/python-modules/bencode-py/default.nix +++ b/pkgs/development/python-modules/bencode-py/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "4.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "fuzeman"; repo = "bencode.py"; diff --git a/pkgs/development/python-modules/bencoder/default.nix b/pkgs/development/python-modules/bencoder/default.nix index 51ab63bab42e..dec61d902245 100644 --- a/pkgs/development/python-modules/bencoder/default.nix +++ b/pkgs/development/python-modules/bencoder/default.nix @@ -9,8 +9,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-rENvM/3X51stkFdJHSq+77VjHvsTyBNAPbCtsRq1L8I="; diff --git a/pkgs/development/python-modules/betacode/default.nix b/pkgs/development/python-modules/betacode/default.nix index 1bed1e9678ea..f4261ae60478 100644 --- a/pkgs/development/python-modules/betacode/default.nix +++ b/pkgs/development/python-modules/betacode/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-TKYetG25qcvnbyvWAfGlouYDLSg0MnPOsPlWUrLCUR4="; diff --git a/pkgs/development/python-modules/betamax-serializers/default.nix b/pkgs/development/python-modules/betamax-serializers/default.nix index 1935df0d69c8..b872cfb9be5b 100644 --- a/pkgs/development/python-modules/betamax-serializers/default.nix +++ b/pkgs/development/python-modules/betamax-serializers/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-NFxBmxtzFx8pUcYqw8cBd1rEt24T6GRk6/D/KpeOSUk="; diff --git a/pkgs/development/python-modules/bibtexparser/default.nix b/pkgs/development/python-modules/bibtexparser/default.nix index 9fb1748da118..cdb0374410a2 100644 --- a/pkgs/development/python-modules/bibtexparser/default.nix +++ b/pkgs/development/python-modules/bibtexparser/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "sciunto-org"; repo = "python-${finalAttrs.pname}"; diff --git a/pkgs/development/python-modules/binaryornot/default.nix b/pkgs/development/python-modules/binaryornot/default.nix index 5b2461587826..1027ece4085e 100644 --- a/pkgs/development/python-modules/binaryornot/default.nix +++ b/pkgs/development/python-modules/binaryornot/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-zI1Xz6cddP+MKKdyZzTVOoUdAvrZ46VYH7gH+Yn3AvA="; diff --git a/pkgs/development/python-modules/bincopy/default.nix b/pkgs/development/python-modules/bincopy/default.nix index 60e426e49590..3c9cff55daa6 100644 --- a/pkgs/development/python-modules/bincopy/default.nix +++ b/pkgs/development/python-modules/bincopy/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "20.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-6UpJi5pKvnZwPDdyqtRm8VY7T8mAnaeWXxG8dwlAk7k="; diff --git a/pkgs/development/python-modules/binho-host-adapter/default.nix b/pkgs/development/python-modules/binho-host-adapter/default.nix index 97ce7bfe5cf8..707f94ef2b61 100644 --- a/pkgs/development/python-modules/binho-host-adapter/default.nix +++ b/pkgs/development/python-modules/binho-host-adapter/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Hm2nqE4gjBO19IkGbwV3S/8dWT0PW/HKFJwrjoPq6FY="; diff --git a/pkgs/development/python-modules/biplist/default.nix b/pkgs/development/python-modules/biplist/default.nix index 00c7cc807262..a5c647ccd60b 100644 --- a/pkgs/development/python-modules/biplist/default.nix +++ b/pkgs/development/python-modules/biplist/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-TAVJdkxf5QsoBC7CGqLhT+GiIk4jmh2ud9nn85MqpMY="; diff --git a/pkgs/development/python-modules/bittensor-core/default.nix b/pkgs/development/python-modules/bittensor-core/default.nix index fff724f28cc4..03b9291fa579 100644 --- a/pkgs/development/python-modules/bittensor-core/default.nix +++ b/pkgs/development/python-modules/bittensor-core/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "bittensor_core"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/bittensor/default.nix b/pkgs/development/python-modules/bittensor/default.nix index f6a365db38aa..5bc4600fc509 100644 --- a/pkgs/development/python-modules/bittensor/default.nix +++ b/pkgs/development/python-modules/bittensor/default.nix @@ -24,8 +24,6 @@ buildPythonPackage (finalAttrs: { version = "11.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-l75+nVI8o22T7dx7ljGLQqe72VErU8dXxYB6fa+0Nx0="; diff --git a/pkgs/development/python-modules/bitvavo-aio/default.nix b/pkgs/development/python-modules/bitvavo-aio/default.nix index 3ee94a68f024..60bb17450f15 100644 --- a/pkgs/development/python-modules/bitvavo-aio/default.nix +++ b/pkgs/development/python-modules/bitvavo-aio/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "cyberjunky"; repo = "bitvavo-aio"; diff --git a/pkgs/development/python-modules/blackjax/default.nix b/pkgs/development/python-modules/blackjax/default.nix index dc69d3102673..3cc6e2e83982 100644 --- a/pkgs/development/python-modules/blackjax/default.nix +++ b/pkgs/development/python-modules/blackjax/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "blackjax"; version = "1.7.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "blackjax-devs"; diff --git a/pkgs/development/python-modules/blasthttp/default.nix b/pkgs/development/python-modules/blasthttp/default.nix index 529d5db44966..d32c4d5f49b2 100644 --- a/pkgs/development/python-modules/blasthttp/default.nix +++ b/pkgs/development/python-modules/blasthttp/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "0.10.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SA8tEo9Zd56laeiu3e5lw+thP7g2SWgolqJ7znTSuzk="; diff --git a/pkgs/development/python-modules/bleach-allowlist/default.nix b/pkgs/development/python-modules/bleach-allowlist/default.nix index 3cfdea9dc06c..870266a36292 100644 --- a/pkgs/development/python-modules/bleach-allowlist/default.nix +++ b/pkgs/development/python-modules/bleach-allowlist/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-VuIghgeaDmoxAK6Z5NuvIOslhUhlmOsOmUAIoRQo2ps="; diff --git a/pkgs/development/python-modules/blinkstick/default.nix b/pkgs/development/python-modules/blinkstick/default.nix index 61ac0b0c0670..8a71287045e2 100644 --- a/pkgs/development/python-modules/blinkstick/default.nix +++ b/pkgs/development/python-modules/blinkstick/default.nix @@ -11,8 +11,6 @@ buildPythonPackage { version = "1.2.0-unstable-2023-05-04"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "arvydas"; repo = "blinkstick-python"; diff --git a/pkgs/development/python-modules/blobfile/default.nix b/pkgs/development/python-modules/blobfile/default.nix index 432df8f753ad..d13e57f46867 100644 --- a/pkgs/development/python-modules/blobfile/default.nix +++ b/pkgs/development/python-modules/blobfile/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "3.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "christopher-hesse"; repo = "blobfile"; diff --git a/pkgs/development/python-modules/blockbuster/default.nix b/pkgs/development/python-modules/blockbuster/default.nix index f639ce3d1359..172e5d8ca81c 100644 --- a/pkgs/development/python-modules/blockbuster/default.nix +++ b/pkgs/development/python-modules/blockbuster/default.nix @@ -9,16 +9,16 @@ requests, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "blockbuster"; - version = "1.5.26"; + version = "1.5.29"; pyproject = true; src = fetchFromGitHub { owner = "cbornet"; repo = "blockbuster"; - tag = "v${version}"; - hash = "sha256-2p1xKThna33nhT3rkp1kfZPVkzsJd42OPs3cHenizJs="; + tag = "v${finalAttrs.version}"; + hash = "sha256-RIy5xjTpw6Bsxo1oiKQ5fbrBpkL8eujOY85G2GW2lrI="; }; build-system = [ hatchling ]; @@ -31,6 +31,8 @@ buildPythonPackage rec { requests ]; + enabledTestPaths = [ "tests" ]; + disabledTests = [ # network access "test_ssl_socket" @@ -43,7 +45,8 @@ buildPythonPackage rec { meta = { description = "Utility to detect blocking calls in the async event loop"; homepage = "https://github.com/cbornet/blockbuster"; + changelog = "https://github.com/cbornet/blockbuster/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/bluepy-devices/default.nix b/pkgs/development/python-modules/bluepy-devices/default.nix index 88dd89ab7099..eb07982023c9 100644 --- a/pkgs/development/python-modules/bluepy-devices/default.nix +++ b/pkgs/development/python-modules/bluepy-devices/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "bluepy_devices"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/bluepy/default.nix b/pkgs/development/python-modules/bluepy/default.nix index 910bd7e2996d..1b5b0e141516 100644 --- a/pkgs/development/python-modules/bluepy/default.nix +++ b/pkgs/development/python-modules/bluepy/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-KnHtr+EDVl+5kCVv82JMFlMDaoN9/JDh4yuDn4OXHOw="; diff --git a/pkgs/development/python-modules/bluezero/default.nix b/pkgs/development/python-modules/bluezero/default.nix index a14ee9c1789c..819ad804c017 100644 --- a/pkgs/development/python-modules/bluezero/default.nix +++ b/pkgs/development/python-modules/bluezero/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "bluezero"; version = "0.9.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ukBaz"; diff --git a/pkgs/development/python-modules/bnnumerizer/default.nix b/pkgs/development/python-modules/bnnumerizer/default.nix index a5544f9f4557..c63cc5f4b7b0 100644 --- a/pkgs/development/python-modules/bnnumerizer/default.nix +++ b/pkgs/development/python-modules/bnnumerizer/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Qd9v0Le1GqTsR3a2ZDzt6+5f0R4zXX1W1KIMCFFeXw0="; diff --git a/pkgs/development/python-modules/bnunicodenormalizer/default.nix b/pkgs/development/python-modules/bnunicodenormalizer/default.nix index a2ec53d92153..31db4a716274 100644 --- a/pkgs/development/python-modules/bnunicodenormalizer/default.nix +++ b/pkgs/development/python-modules/bnunicodenormalizer/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-hqNInMgcc9KvtOJlvS0Ni8UvyKI3TiEMiZ4CYJQLwJE="; diff --git a/pkgs/development/python-modules/boa-api/default.nix b/pkgs/development/python-modules/boa-api/default.nix index a47328534272..29d7d62c295c 100644 --- a/pkgs/development/python-modules/boa-api/default.nix +++ b/pkgs/development/python-modules/boa-api/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.14"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "boalang"; repo = "api-python"; diff --git a/pkgs/development/python-modules/bond-api/default.nix b/pkgs/development/python-modules/bond-api/default.nix index f950446355e3..f0f86201f87c 100644 --- a/pkgs/development/python-modules/bond-api/default.nix +++ b/pkgs/development/python-modules/bond-api/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.18"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "prystupa"; repo = "bond-api"; diff --git a/pkgs/development/python-modules/bond-async/default.nix b/pkgs/development/python-modules/bond-async/default.nix index 800f8ac7b725..6f7ae08bbe4b 100644 --- a/pkgs/development/python-modules/bond-async/default.nix +++ b/pkgs/development/python-modules/bond-async/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "bondhome"; repo = "bond-async"; diff --git a/pkgs/development/python-modules/boolean-py/default.nix b/pkgs/development/python-modules/boolean-py/default.nix index 66957c8846e7..c92cb6fbc4a3 100644 --- a/pkgs/development/python-modules/boolean-py/default.nix +++ b/pkgs/development/python-modules/boolean-py/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "bastikr"; repo = "boolean.py"; diff --git a/pkgs/development/python-modules/boost-histogram/default.nix b/pkgs/development/python-modules/boost-histogram/default.nix index 2b04a751713f..ba142d9c22be 100644 --- a/pkgs/development/python-modules/boost-histogram/default.nix +++ b/pkgs/development/python-modules/boost-histogram/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "boost-histogram"; version = "1.8.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scikit-hep"; @@ -73,7 +72,7 @@ buildPythonPackage (finalAttrs: { # Trace/BPT trap: 5 "test_round_trip_3d_histogram_json" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Segfaults: boost_histogram/_internal/hist.py", line 799 in sum # Fatal Python error: Segmentation fault "test_numpy_conversion_4" diff --git a/pkgs/development/python-modules/borb/2.nix b/pkgs/development/python-modules/borb/2.nix index 01a6d8a218eb..e56567067698 100644 --- a/pkgs/development/python-modules/borb/2.nix +++ b/pkgs/development/python-modules/borb/2.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "borb"; version = "2.1.25"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/botorch/default.nix b/pkgs/development/python-modules/botorch/default.nix index 0bcaf74767cd..2fb3294c0f80 100644 --- a/pkgs/development/python-modules/botorch/default.nix +++ b/pkgs/development/python-modules/botorch/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "botorch"; version = "0.18.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; @@ -115,7 +114,7 @@ buildPythonPackage (finalAttrs: { # RuntimeError: required keyword attribute 'value' has the wrong type "test_posterior_in_trace_mode" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Numerical error slightly above threshold # AssertionError: Tensor-likes are not close! "test_model_list_gpytorch_model" diff --git a/pkgs/development/python-modules/bottleneck/default.nix b/pkgs/development/python-modules/bottleneck/default.nix index 9d655d87f282..8f0f7c68162e 100644 --- a/pkgs/development/python-modules/bottleneck/default.nix +++ b/pkgs/development/python-modules/bottleneck/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Ao1G7ksCWtmrTXmSQROBb4JfYrF7h8nh0NjOFEpKDjE="; diff --git a/pkgs/development/python-modules/bqplot/default.nix b/pkgs/development/python-modules/bqplot/default.nix index 590614e4d586..a470f23f0c4c 100644 --- a/pkgs/development/python-modules/bqplot/default.nix +++ b/pkgs/development/python-modules/bqplot/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "bqplot"; version = "0.13.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "bqplot"; diff --git a/pkgs/development/python-modules/bqscales/default.nix b/pkgs/development/python-modules/bqscales/default.nix index 26acff9b8c84..388dac68b57d 100644 --- a/pkgs/development/python-modules/bqscales/default.nix +++ b/pkgs/development/python-modules/bqscales/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "bqscales"; version = "0.3.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "bqplot"; diff --git a/pkgs/development/python-modules/braintree/default.nix b/pkgs/development/python-modules/braintree/default.nix index c37571e14764..85da01a6a4c4 100644 --- a/pkgs/development/python-modules/braintree/default.nix +++ b/pkgs/development/python-modules/braintree/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "4.48.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "braintree"; repo = "braintree_python"; diff --git a/pkgs/development/python-modules/bravia-tv/default.nix b/pkgs/development/python-modules/bravia-tv/default.nix index 6198bd8a8dc2..3a9677b40d98 100644 --- a/pkgs/development/python-modules/bravia-tv/default.nix +++ b/pkgs/development/python-modules/bravia-tv/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.11"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "dcnielsen90"; repo = "python-bravia-tv"; diff --git a/pkgs/development/python-modules/brax/default.nix b/pkgs/development/python-modules/brax/default.nix index dbde33329245..9cec2db7179c 100644 --- a/pkgs/development/python-modules/brax/default.nix +++ b/pkgs/development/python-modules/brax/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "brax"; version = "0.14.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google"; diff --git a/pkgs/development/python-modules/brelpy/default.nix b/pkgs/development/python-modules/brelpy/default.nix index cb7d87995360..c35ef9ee5337 100644 --- a/pkgs/development/python-modules/brelpy/default.nix +++ b/pkgs/development/python-modules/brelpy/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-MYWSKYd7emHZfY+W/UweQtTg62GSUMybpecL9BR8dhg="; diff --git a/pkgs/development/python-modules/brotli-asgi/default.nix b/pkgs/development/python-modules/brotli-asgi/default.nix index ea364531ee6a..9a664cf154f9 100644 --- a/pkgs/development/python-modules/brotli-asgi/default.nix +++ b/pkgs/development/python-modules/brotli-asgi/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "1.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "fullonic"; repo = "brotli-asgi"; diff --git a/pkgs/development/python-modules/brotlicffi/default.nix b/pkgs/development/python-modules/brotlicffi/default.nix index 03cf43842f9b..dac352486917 100644 --- a/pkgs/development/python-modules/brotlicffi/default.nix +++ b/pkgs/development/python-modules/brotlicffi/default.nix @@ -14,14 +14,14 @@ buildPythonPackage rec { pname = "brotlicffi"; - version = "1.2.0.1"; + version = "1.2.1.0"; pyproject = true; src = fetchFromGitHub { owner = "python-hyper"; repo = "brotlicffi"; tag = "v${version}"; - hash = "sha256-NRPjTtAlsDohdn5PQ6TOYCrm2xlU9mpfMIplNv4zVMk="; + hash = "sha256-N2zxPLsCaXcLpthGvbaKerWayo3ZGMOQ0Is5cpgXGKA="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/brottsplatskartan/default.nix b/pkgs/development/python-modules/brottsplatskartan/default.nix index 8559aaff9dc3..6daa962178fb 100644 --- a/pkgs/development/python-modules/brottsplatskartan/default.nix +++ b/pkgs/development/python-modules/brottsplatskartan/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "chrillux"; repo = "brottsplatskartan"; diff --git a/pkgs/development/python-modules/brunt/default.nix b/pkgs/development/python-modules/brunt/default.nix index bb01d9cc5ae4..229174b2bc32 100644 --- a/pkgs/development/python-modules/brunt/default.nix +++ b/pkgs/development/python-modules/brunt/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-5wRifce5wKUMZ66Q8dMgsU+Z8rL8m/HvBGGxQdzxvOk="; diff --git a/pkgs/development/python-modules/bsdiff4/default.nix b/pkgs/development/python-modules/bsdiff4/default.nix index aed4d16511ac..1fe00bbeae71 100644 --- a/pkgs/development/python-modules/bsdiff4/default.nix +++ b/pkgs/development/python-modules/bsdiff4/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-1m/n1sUOpTOqhgrHZongXPsKP4x71nMN31CJqUj2asU="; diff --git a/pkgs/development/python-modules/bt-decode/default.nix b/pkgs/development/python-modules/bt-decode/default.nix index 94a4714a1bc0..15d4c4c0a570 100644 --- a/pkgs/development/python-modules/bt-decode/default.nix +++ b/pkgs/development/python-modules/bt-decode/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.8.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "latent-to"; repo = "bt-decode"; diff --git a/pkgs/development/python-modules/bt-proximity/default.nix b/pkgs/development/python-modules/bt-proximity/default.nix index 27f16ed0e0db..0649d5a73937 100644 --- a/pkgs/development/python-modules/bt-proximity/default.nix +++ b/pkgs/development/python-modules/bt-proximity/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "bt_proximity"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/cachy/default.nix b/pkgs/development/python-modules/cachy/default.nix index fbf8d9bddcdf..19f08a2a9ba9 100644 --- a/pkgs/development/python-modules/cachy/default.nix +++ b/pkgs/development/python-modules/cachy/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-GGWB9M60Kgu+BAxAfac8FAkjebHkwOMn/bcq5KmyabE="; diff --git a/pkgs/development/python-modules/caido-schema-proxy/default.nix b/pkgs/development/python-modules/caido-schema-proxy/default.nix index f9f6bce409d0..cc6d55c707d6 100644 --- a/pkgs/development/python-modules/caido-schema-proxy/default.nix +++ b/pkgs/development/python-modules/caido-schema-proxy/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.59.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "caido_schema_proxy"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/caido-sdk-client/default.nix b/pkgs/development/python-modules/caido-sdk-client/default.nix index 789fe086bdd0..c43ae15e741c 100644 --- a/pkgs/development/python-modules/caido-sdk-client/default.nix +++ b/pkgs/development/python-modules/caido-sdk-client/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "caido_sdk_client"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/caido-server-auth/default.nix b/pkgs/development/python-modules/caido-server-auth/default.nix index d13f58306b0d..5894b83641b7 100644 --- a/pkgs/development/python-modules/caido-server-auth/default.nix +++ b/pkgs/development/python-modules/caido-server-auth/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "caido_server_auth"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/caio/default.nix b/pkgs/development/python-modules/caio/default.nix index ede6dee15620..ac034a8bc261 100644 --- a/pkgs/development/python-modules/caio/default.nix +++ b/pkgs/development/python-modules/caio/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "caio"; version = "0.12.10"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mosquito"; diff --git a/pkgs/development/python-modules/cairosvg/default.nix b/pkgs/development/python-modules/cairosvg/default.nix index 7daab37c42a4..125a01c47f52 100644 --- a/pkgs/development/python-modules/cairosvg/default.nix +++ b/pkgs/development/python-modules/cairosvg/default.nix @@ -17,16 +17,16 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "cairosvg"; - version = "2.9.0"; + version = "2.9.1"; pyproject = true; src = fetchFromGitHub { owner = "Kozea"; repo = "CairoSVG"; - tag = version; - hash = "sha256-WtMFOYaN/cRrL1Q4ma/UkR3kNFObNhp0Gm7i9NQAqz8="; + tag = finalAttrs.version; + hash = "sha256-yIUuhBmq15xwHznEq8l5z8QSkhQQc3GjTbJw5L2ZX+I="; }; build-system = [ setuptools ]; @@ -49,10 +49,10 @@ buildPythonPackage rec { meta = { homepage = "https://cairosvg.org"; - changelog = "https://github.com/Kozea/CairoSVG/releases/tag/${version}"; + changelog = "https://github.com/Kozea/CairoSVG/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.lgpl3Plus; description = "SVG converter based on Cairo"; mainProgram = "cairosvg"; maintainers = [ lib.maintainers.sarahec ]; }; -} +}) diff --git a/pkgs/development/python-modules/calysto/default.nix b/pkgs/development/python-modules/calysto/default.nix index befb8548787d..7deaf543fe3a 100644 --- a/pkgs/development/python-modules/calysto/default.nix +++ b/pkgs/development/python-modules/calysto/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Calysto"; repo = "calysto"; diff --git a/pkgs/development/python-modules/capstone/4.nix b/pkgs/development/python-modules/capstone/4.nix index 7d87a84526e5..18ced668b487 100644 --- a/pkgs/development/python-modules/capstone/4.nix +++ b/pkgs/development/python-modules/capstone/4.nix @@ -32,7 +32,7 @@ buildPythonPackage { # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag. # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense. - setupPyBuildFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + setupPyBuildFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "--plat-name" "macosx_11_0" ]; diff --git a/pkgs/development/python-modules/capstone/default.nix b/pkgs/development/python-modules/capstone/default.nix index eaa600be1ba1..f8bd052fd1a4 100644 --- a/pkgs/development/python-modules/capstone/default.nix +++ b/pkgs/development/python-modules/capstone/default.nix @@ -24,7 +24,7 @@ buildPythonPackage rec { # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag. # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense. - setupPyBuildFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + setupPyBuildFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "--plat-name" "macosx_11_0" ]; diff --git a/pkgs/development/python-modules/captum/default.nix b/pkgs/development/python-modules/captum/default.nix index 858e9abc4110..73ded35f5d8e 100644 --- a/pkgs/development/python-modules/captum/default.nix +++ b/pkgs/development/python-modules/captum/default.nix @@ -58,7 +58,7 @@ buildPythonPackage rec { # to hardcoded port number used for rendezvous "tests/attr/test_data_parallel.py" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Issue reported upstream at https://github.com/pytorch/captum/issues/1447 "tests/concept/test_tcav.py" ]; diff --git a/pkgs/development/python-modules/cardimpose/default.nix b/pkgs/development/python-modules/cardimpose/default.nix index ce16b137cea7..fd613553ecae 100644 --- a/pkgs/development/python-modules/cardimpose/default.nix +++ b/pkgs/development/python-modules/cardimpose/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.2"; pyproject = true; - __structuredAttrs = true; - # Get source from Pypi as the GitHub repository doesn't have any version # indicators, so there's no way to tell when a new version is available or # what the version should be. diff --git a/pkgs/development/python-modules/cart/default.nix b/pkgs/development/python-modules/cart/default.nix index 9683ba9f0f52..fd1c20a84dc8 100644 --- a/pkgs/development/python-modules/cart/default.nix +++ b/pkgs/development/python-modules/cart/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "CybercentreCanada"; repo = "cart"; diff --git a/pkgs/development/python-modules/cartopy/default.nix b/pkgs/development/python-modules/cartopy/default.nix index 7eea1dea3d59..7025945d5f02 100644 --- a/pkgs/development/python-modules/cartopy/default.nix +++ b/pkgs/development/python-modules/cartopy/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "cartopy"; version = "0.26.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "SciTools"; diff --git a/pkgs/development/python-modules/category-encoders/default.nix b/pkgs/development/python-modules/category-encoders/default.nix index 75de0a2cc65a..86ff25157404 100644 --- a/pkgs/development/python-modules/category-encoders/default.nix +++ b/pkgs/development/python-modules/category-encoders/default.nix @@ -50,6 +50,21 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # AssertionError: Lists differ: [0.5, 0.5, 0.25, 0.5, 0.75, nan, nan, nan] !=... + "test_cat_boost_missing" + # AssertionError: False is not true + "test_ignored_columns_are_untouched" + # AssertionError: DataFrame.iloc[:, 0] (column name="0") are different + "test_missing_values" + # sklearn.exceptions.NotFittedError: Estimator has to be fitted to return featureS... + "test_feature_names_out" + "test_hierarchy_with_scikit_learn_column_transformer" + "test_sklearn_pandas_out_refit" + # AssertionError + "test_unknown_value" + ]; + pythonImportsCheck = [ "category_encoders" ]; diff --git a/pkgs/development/python-modules/cccolutils/default.nix b/pkgs/development/python-modules/cccolutils/default.nix index 569016231253..5cfd6348a4ea 100644 --- a/pkgs/development/python-modules/cccolutils/default.nix +++ b/pkgs/development/python-modules/cccolutils/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "CCColUtils"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/cel-python/default.nix b/pkgs/development/python-modules/cel-python/default.nix index 46ce25d69767..01fbc68ff0b9 100644 --- a/pkgs/development/python-modules/cel-python/default.nix +++ b/pkgs/development/python-modules/cel-python/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "cel-python"; version = "0.5.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "cloud-custodian"; diff --git a/pkgs/development/python-modules/certifi/default.nix b/pkgs/development/python-modules/certifi/default.nix index c0a94af0e9b3..a93ef93b0dee 100644 --- a/pkgs/development/python-modules/certifi/default.nix +++ b/pkgs/development/python-modules/certifi/default.nix @@ -9,14 +9,14 @@ buildPythonPackage (finalAttrs: { pname = "certifi"; - version = "2026.07.22"; + version = "2026.10.23"; pyproject = true; src = fetchFromGitHub { owner = "certifi"; repo = "python-certifi"; tag = finalAttrs.version; - hash = "sha256-euVWKJiFsx7F8YRMgRrrHswBmDBmrV/guiuvqtSUnSs="; + hash = "sha256-uESJgC07To+bUePmwi180SCtAzAZkmEn1UolTWpB4X0="; }; patches = [ diff --git a/pkgs/development/python-modules/certvalidator/default.nix b/pkgs/development/python-modules/certvalidator/default.nix index ff2967b46aa7..a444ac6a9d7a 100644 --- a/pkgs/development/python-modules/certvalidator/default.nix +++ b/pkgs/development/python-modules/certvalidator/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.11.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "wbond"; repo = "certvalidator"; diff --git a/pkgs/development/python-modules/chardet/5.nix b/pkgs/development/python-modules/chardet/5.nix index 50959e4753fd..1fd7dfbd5c03 100644 --- a/pkgs/development/python-modules/chardet/5.nix +++ b/pkgs/development/python-modules/chardet/5.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "5.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Gztv9HmoxBS8P6LAhSmVaVxKAm3NbQYzst0JLKOcHPc="; diff --git a/pkgs/development/python-modules/chat-downloader/default.nix b/pkgs/development/python-modules/chat-downloader/default.nix index 10e08d167a4b..7607f0b0d43c 100644 --- a/pkgs/development/python-modules/chat-downloader/default.nix +++ b/pkgs/development/python-modules/chat-downloader/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version pname; hash = "sha256-WBasBhefgRkOdMdz2K/agvS+cY6m3/33wiu+Jl4d1Cg="; diff --git a/pkgs/development/python-modules/chatlas/default.nix b/pkgs/development/python-modules/chatlas/default.nix index e22be2fab3af..61a6c21e1c1c 100644 --- a/pkgs/development/python-modules/chatlas/default.nix +++ b/pkgs/development/python-modules/chatlas/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "chatlas"; version = "0.17.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "posit-dev"; diff --git a/pkgs/development/python-modules/checksumdir/default.nix b/pkgs/development/python-modules/checksumdir/default.nix index d648dc07d257..625bc1ddc39d 100644 --- a/pkgs/development/python-modules/checksumdir/default.nix +++ b/pkgs/development/python-modules/checksumdir/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "checksumdir"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "to-mc"; diff --git a/pkgs/development/python-modules/chex/default.nix b/pkgs/development/python-modules/chex/default.nix index bdd741606efe..f3c6eecc7838 100644 --- a/pkgs/development/python-modules/chex/default.nix +++ b/pkgs/development/python-modules/chex/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "chex"; version = "0.1.92"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google-deepmind"; diff --git a/pkgs/development/python-modules/chirpstack-api/default.nix b/pkgs/development/python-modules/chirpstack-api/default.nix index 35629fb08b70..9993e5e77f65 100644 --- a/pkgs/development/python-modules/chirpstack-api/default.nix +++ b/pkgs/development/python-modules/chirpstack-api/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "4.20.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "chirpstack"; repo = "chirpstack"; diff --git a/pkgs/development/python-modules/chromadb/default.nix b/pkgs/development/python-modules/chromadb/default.nix index d829ca2056cb..c5d7b70b8a31 100644 --- a/pkgs/development/python-modules/chromadb/default.nix +++ b/pkgs/development/python-modules/chromadb/default.nix @@ -68,7 +68,6 @@ buildPythonPackage (finalAttrs: { pname = "chromadb"; version = "1.5.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "chroma-core"; diff --git a/pkgs/development/python-modules/ci-info/default.nix b/pkgs/development/python-modules/ci-info/default.nix index 19113e766c3f..a06f21102544 100644 --- a/pkgs/development/python-modules/ci-info/default.nix +++ b/pkgs/development/python-modules/ci-info/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "ci_info"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/ci-py/default.nix b/pkgs/development/python-modules/ci-py/default.nix index 66c2d4a8a257..dc67934de471 100644 --- a/pkgs/development/python-modules/ci-py/default.nix +++ b/pkgs/development/python-modules/ci-py/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-R/6bLsXOKGxiJDZUvvOuvLp3usEhfg698qvvgOwBXYk="; diff --git a/pkgs/development/python-modules/circuit-webhook/default.nix b/pkgs/development/python-modules/circuit-webhook/default.nix index 890ab09cb001..29b6fe132843 100644 --- a/pkgs/development/python-modules/circuit-webhook/default.nix +++ b/pkgs/development/python-modules/circuit-webhook/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-NhePKBfzdkw7iVHmVrOxf8ZcQrb1Sq2xMIfu4P9+Ppw="; diff --git a/pkgs/development/python-modules/circuitbreaker/default.nix b/pkgs/development/python-modules/circuitbreaker/default.nix index 03bab2d1eab0..a1fbb7c9145c 100644 --- a/pkgs/development/python-modules/circuitbreaker/default.nix +++ b/pkgs/development/python-modules/circuitbreaker/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "fabfuel"; repo = "circuitbreaker"; diff --git a/pkgs/development/python-modules/ciscomobilityexpress/default.nix b/pkgs/development/python-modules/ciscomobilityexpress/default.nix index fc2f4d186d96..c81d8023f54a 100644 --- a/pkgs/development/python-modules/ciscomobilityexpress/default.nix +++ b/pkgs/development/python-modules/ciscomobilityexpress/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-2HhyRVmOg3GoO6pNsd+UnYqULEPxNFT6Ju47CcPMr8A="; diff --git a/pkgs/development/python-modules/citeproc-py-styles/default.nix b/pkgs/development/python-modules/citeproc-py-styles/default.nix index 327f2b0679e6..6c2c8e87ecf4 100644 --- a/pkgs/development/python-modules/citeproc-py-styles/default.nix +++ b/pkgs/development/python-modules/citeproc-py-styles/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "citeproc-py-styles"; version = "0.1.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "inveniosoftware"; diff --git a/pkgs/development/python-modules/clarabel/default.nix b/pkgs/development/python-modules/clarabel/default.nix index 0f650f7f928b..adbaa94bbf18 100644 --- a/pkgs/development/python-modules/clarabel/default.nix +++ b/pkgs/development/python-modules/clarabel/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "0.11.1"; pyproject = true; - __structuredAttrs = true; - # upstream does not provide Cargo.lock outside of PyPI src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/classify-imports/default.nix b/pkgs/development/python-modules/classify-imports/default.nix index b526b1168d79..33b5431a2efc 100644 --- a/pkgs/development/python-modules/classify-imports/default.nix +++ b/pkgs/development/python-modules/classify-imports/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "4.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "asottile"; repo = "classify-imports"; diff --git a/pkgs/development/python-modules/clean-fid/default.nix b/pkgs/development/python-modules/clean-fid/default.nix index 7f1b5ce2c914..5254e98bccd9 100644 --- a/pkgs/development/python-modules/clean-fid/default.nix +++ b/pkgs/development/python-modules/clean-fid/default.nix @@ -19,8 +19,6 @@ buildPythonPackage { version = "0.1.35"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "GaParmar"; repo = "clean-fid"; diff --git a/pkgs/development/python-modules/clf/default.nix b/pkgs/development/python-modules/clf/default.nix index c52aa46c9bbf..85370074505d 100644 --- a/pkgs/development/python-modules/clf/default.nix +++ b/pkgs/development/python-modules/clf/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-q8kZoemWZ/Mv3eFd+0vFJ9viLPhqF6y3ikSdfy3+k34="; diff --git a/pkgs/development/python-modules/click-command-tree/default.nix b/pkgs/development/python-modules/click-command-tree/default.nix index bf1141b0c81c..6e67b31c24ae 100644 --- a/pkgs/development/python-modules/click-command-tree/default.nix +++ b/pkgs/development/python-modules/click-command-tree/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "whwright"; repo = "click-command-tree"; diff --git a/pkgs/development/python-modules/click-completion/default.nix b/pkgs/development/python-modules/click-completion/default.nix index 36a3cfcb5d6b..2d08ea98126a 100644 --- a/pkgs/development/python-modules/click-completion/default.nix +++ b/pkgs/development/python-modules/click-completion/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "click-completion"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/click-configfile/default.nix b/pkgs/development/python-modules/click-configfile/default.nix index ab9d11277324..f736a613d2f1 100644 --- a/pkgs/development/python-modules/click-configfile/default.nix +++ b/pkgs/development/python-modules/click-configfile/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "click-configfile"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/click-help-colors/default.nix b/pkgs/development/python-modules/click-help-colors/default.nix index d3c04fd8a10b..4b8d0624897c 100644 --- a/pkgs/development/python-modules/click-help-colors/default.nix +++ b/pkgs/development/python-modules/click-help-colors/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "click-help-colors"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/click-log/default.nix b/pkgs/development/python-modules/click-log/default.nix index b37c2293c082..3d94bd0ec960 100644 --- a/pkgs/development/python-modules/click-log/default.nix +++ b/pkgs/development/python-modules/click-log/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "click-log"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/clickhouse-driver/default.nix b/pkgs/development/python-modules/clickhouse-driver/default.nix index f0b154bd3494..3afa4fd27467 100644 --- a/pkgs/development/python-modules/clickhouse-driver/default.nix +++ b/pkgs/development/python-modules/clickhouse-driver/default.nix @@ -20,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.11"; pyproject = true; - __structuredAttrs = true; - # pypi source doesn't contain tests src = fetchFromGitHub { owner = "mymarilyn"; diff --git a/pkgs/development/python-modules/cligj/default.nix b/pkgs/development/python-modules/cligj/default.nix index 69231498e0b1..d52ebcde0208 100644 --- a/pkgs/development/python-modules/cligj/default.nix +++ b/pkgs/development/python-modules/cligj/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "mapbox"; repo = "cligj"; diff --git a/pkgs/development/python-modules/clintermission/default.nix b/pkgs/development/python-modules/clintermission/default.nix index 1223836774d0..15e319a7c63f 100644 --- a/pkgs/development/python-modules/clintermission/default.nix +++ b/pkgs/development/python-modules/clintermission/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "sebageek"; repo = "clintermission"; diff --git a/pkgs/development/python-modules/clip/default.nix b/pkgs/development/python-modules/clip/default.nix index c1051a15b140..5adc72d025a1 100644 --- a/pkgs/development/python-modules/clip/default.nix +++ b/pkgs/development/python-modules/clip/default.nix @@ -15,8 +15,6 @@ buildPythonPackage { version = "1.0-unstable-2022-07-27"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "openai"; repo = "clip"; diff --git a/pkgs/development/python-modules/clu/default.nix b/pkgs/development/python-modules/clu/default.nix index 5818e92219e3..b4f506dc347c 100644 --- a/pkgs/development/python-modules/clu/default.nix +++ b/pkgs/development/python-modules/clu/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "clu"; version = "0.0.12"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google"; diff --git a/pkgs/development/python-modules/clustershell/default.nix b/pkgs/development/python-modules/clustershell/default.nix index 6c18d2b35da6..861f7827c1f2 100644 --- a/pkgs/development/python-modules/clustershell/default.nix +++ b/pkgs/development/python-modules/clustershell/default.nix @@ -14,13 +14,14 @@ bash, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "clustershell"; version = "1.10.1"; pyproject = true; src = fetchPypi { - inherit pname version; + pname = "clustershell"; + inherit (finalAttrs) version; hash = "sha256-snrwuqnRsQrGonKXALA+WieWyDjLtqrxkCaYImq56oo="; }; @@ -61,10 +62,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "ClusterShell" ]; - unittestFlagsArray = [ - "tests" - "-p" - "'*Test.py'" + unittestFlags = [ + "--start-directory=tests" + "--pattern=*Test.py" ]; # Many tests want to open network connections @@ -93,4 +93,4 @@ buildPythonPackage rec { license = lib.licenses.lgpl21; maintainers = [ lib.maintainers.alexvorobiev ]; }; -} +}) diff --git a/pkgs/development/python-modules/cmake-parser/default.nix b/pkgs/development/python-modules/cmake-parser/default.nix index 2ad7294720c1..d9ea8d084b38 100644 --- a/pkgs/development/python-modules/cmake-parser/default.nix +++ b/pkgs/development/python-modules/cmake-parser/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "cmake-parser"; version = "0.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "roehling"; diff --git a/pkgs/development/python-modules/cmdline/default.nix b/pkgs/development/python-modules/cmdline/default.nix index 797bb24169f4..3807c561271d 100644 --- a/pkgs/development/python-modules/cmdline/default.nix +++ b/pkgs/development/python-modules/cmdline/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-fPavU1SYkrIhjC9WoZnf9UpzO+XFUVwP1iaBIHCwqGo="; diff --git a/pkgs/development/python-modules/cmigemo/default.nix b/pkgs/development/python-modules/cmigemo/default.nix index 8f187d6430a2..037c1b414484 100644 --- a/pkgs/development/python-modules/cmigemo/default.nix +++ b/pkgs/development/python-modules/cmigemo/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-cxOqMAf2dgCwZuBKSAXkRFY9FRNB3rMwE1tNzfZERiY="; diff --git a/pkgs/development/python-modules/cmudict/default.nix b/pkgs/development/python-modules/cmudict/default.nix index 819e349b7b97..8eec27da6aa3 100644 --- a/pkgs/development/python-modules/cmudict/default.nix +++ b/pkgs/development/python-modules/cmudict/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "prosegrinder"; repo = "python-cmudict"; diff --git a/pkgs/development/python-modules/co2signal/default.nix b/pkgs/development/python-modules/co2signal/default.nix index 3c2e674ab5ee..171e16f8b920 100644 --- a/pkgs/development/python-modules/co2signal/default.nix +++ b/pkgs/development/python-modules/co2signal/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "CO2Signal"; diff --git a/pkgs/development/python-modules/cobs/default.nix b/pkgs/development/python-modules/cobs/default.nix index 2dc6ba4641db..2c9a30c7454e 100644 --- a/pkgs/development/python-modules/cobs/default.nix +++ b/pkgs/development/python-modules/cobs/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-291eMhEdcnhvg9DCaSFdzWrGKbGsGWLGh4Ih87LKmNo="; diff --git a/pkgs/development/python-modules/cock/default.nix b/pkgs/development/python-modules/cock/default.nix index 7344a660f155..e3e16c8ac274 100644 --- a/pkgs/development/python-modules/cock/default.nix +++ b/pkgs/development/python-modules/cock/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.11.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Hi8aFxATsYcEO6qNzZnF73V8WLTQjb6Dw2xF4VgT2o4="; diff --git a/pkgs/development/python-modules/codecarbon/default.nix b/pkgs/development/python-modules/codecarbon/default.nix index c43e4d85f452..3817a47be147 100644 --- a/pkgs/development/python-modules/codecarbon/default.nix +++ b/pkgs/development/python-modules/codecarbon/default.nix @@ -50,7 +50,6 @@ buildPythonPackage (finalAttrs: { pname = "codecarbon"; version = "3.2.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mlco2"; diff --git a/pkgs/development/python-modules/coffea/default.nix b/pkgs/development/python-modules/coffea/default.nix index 56afeb0ef84f..cb43e37c715d 100644 --- a/pkgs/development/python-modules/coffea/default.nix +++ b/pkgs/development/python-modules/coffea/default.nix @@ -46,7 +46,6 @@ buildPythonPackage (finalAttrs: { pname = "coffea"; version = "2026.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "CoffeaTeam"; diff --git a/pkgs/development/python-modules/coiled/default.nix b/pkgs/development/python-modules/coiled/default.nix index 9a0d1852f8b0..d065c6cf4f9e 100644 --- a/pkgs/development/python-modules/coiled/default.nix +++ b/pkgs/development/python-modules/coiled/default.nix @@ -41,7 +41,6 @@ buildPythonPackage (finalAttrs: { pname = "coiled"; version = "1.135.4"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/colanderalchemy/default.nix b/pkgs/development/python-modules/colanderalchemy/default.nix index daa9a5371ed2..fdf710b356b5 100644 --- a/pkgs/development/python-modules/colanderalchemy/default.nix +++ b/pkgs/development/python-modules/colanderalchemy/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "ColanderAlchemy"; diff --git a/pkgs/development/python-modules/colored/default.nix b/pkgs/development/python-modules/colored/default.nix index 896a3dffc1b8..961acd06aef8 100644 --- a/pkgs/development/python-modules/colored/default.nix +++ b/pkgs/development/python-modules/colored/default.nix @@ -6,7 +6,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "colored"; version = "2.3.2"; pyproject = true; @@ -14,7 +14,7 @@ buildPythonPackage rec { src = fetchFromGitLab { owner = "dslackw"; repo = "colored"; - tag = version; + tag = finalAttrs.version; hash = "sha256-MnRWb9uQczkwikyorkS77PTpajCG6M/FZibm4ww+xC4="; }; @@ -22,15 +22,15 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "unittests" ]; + unittestFlags = [ "--start-directory=unittests" ]; pythonImportsCheck = [ "colored" ]; meta = { description = "Simple library for color and formatting to terminal"; homepage = "https://gitlab.com/dslackw/colored"; - changelog = "https://gitlab.com/dslackw/colored/-/raw/${version}/CHANGES.md"; + changelog = "https://gitlab.com/dslackw/colored/-/raw/${finalAttrs.version}/CHANGES.md"; maintainers = [ ]; license = lib.licenses.mit; }; -} +}) diff --git a/pkgs/development/python-modules/colorlover/default.nix b/pkgs/development/python-modules/colorlover/default.nix index 1a22b37d4b02..173825697c67 100644 --- a/pkgs/development/python-modules/colorlover/default.nix +++ b/pkgs/development/python-modules/colorlover/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-uPtyRqtG4fXmcVZJRTwXYuJFpRXeX/LStKq3puZ/pOI="; diff --git a/pkgs/development/python-modules/colorspacious/default.nix b/pkgs/development/python-modules/colorspacious/default.nix index a52c46e37bcd..4201090f9353 100644 --- a/pkgs/development/python-modules/colorspacious/default.nix +++ b/pkgs/development/python-modules/colorspacious/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-XpBy6M3KiJ2sRFw1yTYqIsz3WOl7ALef8NWnuj4Rthg="; diff --git a/pkgs/development/python-modules/colorthief/default.nix b/pkgs/development/python-modules/colorthief/default.nix index 90731608b21b..a4a966f649a3 100644 --- a/pkgs/development/python-modules/colorthief/default.nix +++ b/pkgs/development/python-modules/colorthief/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "fengsp"; repo = "color-thief-py"; diff --git a/pkgs/development/python-modules/colorzero/default.nix b/pkgs/development/python-modules/colorzero/default.nix index df23010b310c..4ea9623e594d 100644 --- a/pkgs/development/python-modules/colorzero/default.nix +++ b/pkgs/development/python-modules/colorzero/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "waveform80"; repo = "colorzero"; diff --git a/pkgs/development/python-modules/colout/default.nix b/pkgs/development/python-modules/colout/default.nix index 4dc1096fda69..148ba0a27f7b 100644 --- a/pkgs/development/python-modules/colout/default.nix +++ b/pkgs/development/python-modules/colout/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "nojhan"; repo = "colout"; diff --git a/pkgs/development/python-modules/comet-ml/default.nix b/pkgs/development/python-modules/comet-ml/default.nix index 3f5a0396db1f..99554e264d91 100644 --- a/pkgs/development/python-modules/comet-ml/default.nix +++ b/pkgs/development/python-modules/comet-ml/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "comet-ml"; version = "3.58.8"; pyproject = true; - __structuredAttrs = true; # No GitHub repository src = fetchPypi { diff --git a/pkgs/development/python-modules/cometblue-lite/default.nix b/pkgs/development/python-modules/cometblue-lite/default.nix index 10a10a284cee..81a8084a1762 100644 --- a/pkgs/development/python-modules/cometblue-lite/default.nix +++ b/pkgs/development/python-modules/cometblue-lite/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "neffs"; repo = "python-cometblue_lite"; diff --git a/pkgs/development/python-modules/commandparse/default.nix b/pkgs/development/python-modules/commandparse/default.nix index a3cc49b4b88f..a0858212cbd5 100644 --- a/pkgs/development/python-modules/commandparse/default.nix +++ b/pkgs/development/python-modules/commandparse/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-S9e90BtS6qMjFtYUmgC0w4IKQP8q1iR2tGqq5l2+n6o="; diff --git a/pkgs/development/python-modules/conda/default.nix b/pkgs/development/python-modules/conda/default.nix index 2d52d02e4574..155b17c250e0 100644 --- a/pkgs/development/python-modules/conda/default.nix +++ b/pkgs/development/python-modules/conda/default.nix @@ -26,7 +26,6 @@ defaultPkgPath ? "~/.conda/pkgs", # default path to store download conda packages }: buildPythonPackage rec { - __structuredAttrs = true; pname = "conda"; version = "26.9.4"; pyproject = true; diff --git a/pkgs/development/python-modules/conduit/default.nix b/pkgs/development/python-modules/conduit/default.nix index 837eec0364d1..4574c1456d88 100644 --- a/pkgs/development/python-modules/conduit/default.nix +++ b/pkgs/development/python-modules/conduit/default.nix @@ -30,7 +30,6 @@ buildPythonPackage { buildInputs ; pyproject = true; - __structuredAttrs = true; postPatch = (conduit.postPatch or "") + '' substituteInPlace pyproject.toml \ diff --git a/pkgs/development/python-modules/configclass/default.nix b/pkgs/development/python-modules/configclass/default.nix index 874bda10e19e..7531f2472ea1 100644 --- a/pkgs/development/python-modules/configclass/default.nix +++ b/pkgs/development/python-modules/configclass/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-aoDKBuDxJCeXbVwCXhse6FCbDDM30/Xa8p9qRvDkWBk="; diff --git a/pkgs/development/python-modules/configobj/default.nix b/pkgs/development/python-modules/configobj/default.nix index e534598e202a..bf22f73fd60c 100644 --- a/pkgs/development/python-modules/configobj/default.nix +++ b/pkgs/development/python-modules/configobj/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "5.0.9"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "DiffSK"; repo = "configobj"; diff --git a/pkgs/development/python-modules/configupdater/default.nix b/pkgs/development/python-modules/configupdater/default.nix index 78684ec66246..4bf6b8b1056d 100644 --- a/pkgs/development/python-modules/configupdater/default.nix +++ b/pkgs/development/python-modules/configupdater/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "3.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "ConfigUpdater"; diff --git a/pkgs/development/python-modules/confluent-kafka/default.nix b/pkgs/development/python-modules/confluent-kafka/default.nix index d016506f5344..b63cadf8c5fb 100644 --- a/pkgs/development/python-modules/confluent-kafka/default.nix +++ b/pkgs/development/python-modules/confluent-kafka/default.nix @@ -55,7 +55,6 @@ buildPythonPackage (finalAttrs: { pname = "confluent-kafka"; version = "2.15.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "confluentinc"; diff --git a/pkgs/development/python-modules/connection-pool/default.nix b/pkgs/development/python-modules/connection-pool/default.nix index d5a120da5bee..07ceccdc4acf 100644 --- a/pkgs/development/python-modules/connection-pool/default.nix +++ b/pkgs/development/python-modules/connection-pool/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.3"; pyproject = true; - __structuredAttrs = true; - disabled = !isPy3k; src = fetchPypi { diff --git a/pkgs/development/python-modules/connectrpc/default.nix b/pkgs/development/python-modules/connectrpc/default.nix index 48b39ddc61c9..817fd0ab6dc8 100644 --- a/pkgs/development/python-modules/connectrpc/default.nix +++ b/pkgs/development/python-modules/connectrpc/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "connectrpc"; version = "0.11.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "connectrpc"; diff --git a/pkgs/development/python-modules/connio/default.nix b/pkgs/development/python-modules/connio/default.nix index be94e342bea0..1412b7b783dc 100644 --- a/pkgs/development/python-modules/connio/default.nix +++ b/pkgs/development/python-modules/connio/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "tiagocoutinho"; repo = "connio"; diff --git a/pkgs/development/python-modules/contexter/default.nix b/pkgs/development/python-modules/contexter/default.nix index 26419faf1517..0498638686cf 100644 --- a/pkgs/development/python-modules/contexter/default.nix +++ b/pkgs/development/python-modules/contexter/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-xzCJCxqRUFFBSmNQ2Ooc3cp9Adj3Vrre2zC5vzBeoKg="; diff --git a/pkgs/development/python-modules/cookies/default.nix b/pkgs/development/python-modules/cookies/default.nix index 4cdf625dd0ea..77b7e066a68c 100644 --- a/pkgs/development/python-modules/cookies/default.nix +++ b/pkgs/development/python-modules/cookies/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "2.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-1raYeIyuTPpOYu+GQ6nKMyt5vZbLMUKUuGSujX6z7o4="; diff --git a/pkgs/development/python-modules/correctionlib/default.nix b/pkgs/development/python-modules/correctionlib/default.nix index b0848eccacae..b995cf50fec4 100644 --- a/pkgs/development/python-modules/correctionlib/default.nix +++ b/pkgs/development/python-modules/correctionlib/default.nix @@ -35,7 +35,6 @@ buildPythonPackage (finalAttrs: { pname = "correctionlib"; version = "2.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "cms-nanoAOD"; diff --git a/pkgs/development/python-modules/cot/default.nix b/pkgs/development/python-modules/cot/default.nix index afad1d849138..a2b41b80690f 100644 --- a/pkgs/development/python-modules/cot/default.nix +++ b/pkgs/development/python-modules/cot/default.nix @@ -22,8 +22,6 @@ buildPythonPackage (finalAttrs: { version = "2.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "cot"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/courlan/default.nix b/pkgs/development/python-modules/courlan/default.nix index 86da2f43e917..9e483cfe413c 100644 --- a/pkgs/development/python-modules/courlan/default.nix +++ b/pkgs/development/python-modules/courlan/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "courlan"; version = "1.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "adbar"; diff --git a/pkgs/development/python-modules/cramjam/default.nix b/pkgs/development/python-modules/cramjam/default.nix index 3dad097982ec..67230b6a4821 100644 --- a/pkgs/development/python-modules/cramjam/default.nix +++ b/pkgs/development/python-modules/cramjam/default.nix @@ -4,6 +4,8 @@ fetchFromGitHub, pyprojectVersionPatchHook, rustPlatform, + pkg-config, + zstd, # tests hypothesis, @@ -16,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "cramjam"; version = "2.14.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "milesgranger"; @@ -34,8 +35,11 @@ buildPythonPackage (finalAttrs: { rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook pyprojectVersionPatchHook + pkg-config ]; + buildInputs = [ zstd ]; + nativeCheckInputs = [ hypothesis numpy diff --git a/pkgs/development/python-modules/crawl4ai/default.nix b/pkgs/development/python-modules/crawl4ai/default.nix index 76367c8fbe48..b7694f94e335 100644 --- a/pkgs/development/python-modules/crawl4ai/default.nix +++ b/pkgs/development/python-modules/crawl4ai/default.nix @@ -55,8 +55,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "unclecode"; repo = "crawl4ai"; diff --git a/pkgs/development/python-modules/crayons/default.nix b/pkgs/development/python-modules/crayons/default.nix index 70c9181836a8..9d3036e21bfd 100644 --- a/pkgs/development/python-modules/crayons/default.nix +++ b/pkgs/development/python-modules/crayons/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-vTO3VHgA8s+9JrOEMfnmS0h6fedKlHsPr8ibRaYBgT8="; diff --git a/pkgs/development/python-modules/crcmod/default.nix b/pkgs/development/python-modules/crcmod/default.nix index 297092c167fc..b4c7aec73d10 100644 --- a/pkgs/development/python-modules/crcmod/default.nix +++ b/pkgs/development/python-modules/crcmod/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-3HBRoNtfK9SGZamQ0+wcwwWkZqdzWMpEkoJvQfKDYB4="; diff --git a/pkgs/development/python-modules/crewai-cli/default.nix b/pkgs/development/python-modules/crewai-cli/default.nix index e3a04429b1ba..d3d00f10fa6b 100644 --- a/pkgs/development/python-modules/crewai-cli/default.nix +++ b/pkgs/development/python-modules/crewai-cli/default.nix @@ -43,7 +43,6 @@ buildPythonPackage (finalAttrs: { pname = "crewai-cli"; version = "1.15.18"; pyproject = true; - __structuredAttrs = true; inherit (crewai-core) src; diff --git a/pkgs/development/python-modules/crewai-core/default.nix b/pkgs/development/python-modules/crewai-core/default.nix index 8d80fe2845ef..76f722743870 100644 --- a/pkgs/development/python-modules/crewai-core/default.nix +++ b/pkgs/development/python-modules/crewai-core/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "crewai-core"; version = "1.15.18"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "crewAIInc"; diff --git a/pkgs/development/python-modules/crewai/default.nix b/pkgs/development/python-modules/crewai/default.nix index 22ba8bb51314..1dae74988994 100644 --- a/pkgs/development/python-modules/crewai/default.nix +++ b/pkgs/development/python-modules/crewai/default.nix @@ -61,7 +61,6 @@ buildPythonPackage (finalAttrs: { pname = "crewai"; version = "1.15.18"; pyproject = true; - __structuredAttrs = true; inherit (crewai-core) src; diff --git a/pkgs/development/python-modules/croniter/default.nix b/pkgs/development/python-modules/croniter/default.nix index f3042d87f6bf..93f01f15fe95 100644 --- a/pkgs/development/python-modules/croniter/default.nix +++ b/pkgs/development/python-modules/croniter/default.nix @@ -30,6 +30,7 @@ buildPythonPackage (finalAttrs: { substituteInPlace pyproject.toml \ --replace-fail "hatchling==1.30.1" "hatchling>=1.30.1" \ --replace-fail "packaging==26.2" "packaging" \ + --replace-fail "pluggy==1.6.0" "pluggy" \ --replace-fail "trove-classifiers==2026.6.1.19" "trove-classifiers" ''; diff --git a/pkgs/development/python-modules/crossplane/default.nix b/pkgs/development/python-modules/crossplane/default.nix index 7593ca417249..e1cdbee5a46f 100644 --- a/pkgs/development/python-modules/crossplane/default.nix +++ b/pkgs/development/python-modules/crossplane/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "crossplane"; version = "0.5.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nginxinc"; diff --git a/pkgs/development/python-modules/crownstone-core/default.nix b/pkgs/development/python-modules/crownstone-core/default.nix index 7a08825f3e8f..48efa638f46a 100644 --- a/pkgs/development/python-modules/crownstone-core/default.nix +++ b/pkgs/development/python-modules/crownstone-core/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "3.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "crownstone"; repo = "crownstone-lib-python-core"; diff --git a/pkgs/development/python-modules/crownstone-uart/default.nix b/pkgs/development/python-modules/crownstone-uart/default.nix index 763c430f2499..a5d74a2802d2 100644 --- a/pkgs/development/python-modules/crownstone-uart/default.nix +++ b/pkgs/development/python-modules/crownstone-uart/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "2.7.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "crownstone"; repo = "crownstone-lib-python-uart"; diff --git a/pkgs/development/python-modules/cryptography/vectors.nix b/pkgs/development/python-modules/cryptography/vectors.nix index 42ae35c663dc..345c0a3da589 100644 --- a/pkgs/development/python-modules/cryptography/vectors.nix +++ b/pkgs/development/python-modules/cryptography/vectors.nix @@ -13,6 +13,11 @@ buildPythonPackage rec { sourceRoot = "${src.name}/vectors"; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'uv_build>=0.7.19,<0.13.0' uv_build + ''; + build-system = [ uv-build ]; # No tests included diff --git a/pkgs/development/python-modules/cryptomobile/default.nix b/pkgs/development/python-modules/cryptomobile/default.nix index 576b88aa0aae..c13994d80971 100644 --- a/pkgs/development/python-modules/cryptomobile/default.nix +++ b/pkgs/development/python-modules/cryptomobile/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "cryptomobile"; version = "0-unstable-2025-08-30"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mitshell"; diff --git a/pkgs/development/python-modules/cson/default.nix b/pkgs/development/python-modules/cson/default.nix index 341fdd05b92e..9873c4726c4c 100644 --- a/pkgs/development/python-modules/cson/default.nix +++ b/pkgs/development/python-modules/cson/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-7owBZvzR9ReJiHGX4+g1Sse++jlvwpcGvOta8l7cngE="; diff --git a/pkgs/development/python-modules/csrmesh/default.nix b/pkgs/development/python-modules/csrmesh/default.nix index 3bc3a6468d14..b0206feaf3c3 100644 --- a/pkgs/development/python-modules/csrmesh/default.nix +++ b/pkgs/development/python-modules/csrmesh/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.10.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-T6ETVrEjFoZ2LwE3F8OvLdK9Y9ZvwBk33o5dT0pVnw4="; diff --git a/pkgs/development/python-modules/cssmin/default.nix b/pkgs/development/python-modules/cssmin/default.nix index c2c727c4b921..60f3e215fb28 100644 --- a/pkgs/development/python-modules/cssmin/default.nix +++ b/pkgs/development/python-modules/cssmin/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-4BLwzIQB788mIDMjOQEVZHOK4yvoyEsuQ86L6uwQZ7Y="; diff --git a/pkgs/development/python-modules/ct3/default.nix b/pkgs/development/python-modules/ct3/default.nix index 74c48f1e5c85..14fa50b9338f 100644 --- a/pkgs/development/python-modules/ct3/default.nix +++ b/pkgs/development/python-modules/ct3/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "3.4.0.post5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "CheetahTemplate3"; repo = "cheetah3"; diff --git a/pkgs/development/python-modules/cuda-bindings/default.nix b/pkgs/development/python-modules/cuda-bindings/default.nix index d5053d73870b..b74e686f16d7 100644 --- a/pkgs/development/python-modules/cuda-bindings/default.nix +++ b/pkgs/development/python-modules/cuda-bindings/default.nix @@ -78,7 +78,6 @@ buildPythonPackage (finalAttrs: { pname = "cuda-bindings"; inherit (versionSpecificAttrs) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/cuda-cccl/default.nix b/pkgs/development/python-modules/cuda-cccl/default.nix index 91d94d95b6df..c5c00d2169d8 100644 --- a/pkgs/development/python-modules/cuda-cccl/default.nix +++ b/pkgs/development/python-modules/cuda-cccl/default.nix @@ -32,7 +32,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "cuda-cccl"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/cuda-core/default.nix b/pkgs/development/python-modules/cuda-core/default.nix index 04a80360db5d..8251a27fa3e6 100644 --- a/pkgs/development/python-modules/cuda-core/default.nix +++ b/pkgs/development/python-modules/cuda-core/default.nix @@ -38,7 +38,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "cuda-core"; version = "1.2.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/cuda-pathfinder/default.nix b/pkgs/development/python-modules/cuda-pathfinder/default.nix index 0d8a909148cd..db915fd0f80a 100644 --- a/pkgs/development/python-modules/cuda-pathfinder/default.nix +++ b/pkgs/development/python-modules/cuda-pathfinder/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "cuda-pathfinder"; version = "1.8.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/cuda-tile/default.nix b/pkgs/development/python-modules/cuda-tile/default.nix index c63021b61bcf..5ec832843a2a 100644 --- a/pkgs/development/python-modules/cuda-tile/default.nix +++ b/pkgs/development/python-modules/cuda-tile/default.nix @@ -53,7 +53,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "cuda-tile"; version = "1.7.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/cupti-python/default.nix b/pkgs/development/python-modules/cupti-python/default.nix index a876031c9308..f7381b0f012d 100644 --- a/pkgs/development/python-modules/cupti-python/default.nix +++ b/pkgs/development/python-modules/cupti-python/default.nix @@ -65,7 +65,6 @@ buildPythonPackage (finalAttrs: { pname = "cupti-python"; inherit version; format = "wheel"; - __structuredAttrs = true; src = srcs.${srcKey} or (throw "cupti-python: no wheel for ${srcKey}"); diff --git a/pkgs/development/python-modules/cupy/default.nix b/pkgs/development/python-modules/cupy/default.nix index c30d2e54a70f..8d68a027f657 100644 --- a/pkgs/development/python-modules/cupy/default.nix +++ b/pkgs/development/python-modules/cupy/default.nix @@ -21,7 +21,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "cupy"; version = "14.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "cupy"; diff --git a/pkgs/development/python-modules/curlify/default.nix b/pkgs/development/python-modules/curlify/default.nix index 7d591e4c2730..ac9c09711368 100644 --- a/pkgs/development/python-modules/curlify/default.nix +++ b/pkgs/development/python-modules/curlify/default.nix @@ -11,8 +11,6 @@ buildPythonPackage { version = "2.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ofw"; repo = "curlify"; diff --git a/pkgs/development/python-modules/cutie/default.nix b/pkgs/development/python-modules/cutie/default.nix index 60025fa60a4c..a072a1836a88 100644 --- a/pkgs/development/python-modules/cutie/default.nix +++ b/pkgs/development/python-modules/cutie/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "cutie"; version = "0.3.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "kamik423"; diff --git a/pkgs/development/python-modules/cutlass/default.nix b/pkgs/development/python-modules/cutlass/default.nix index 9a9b9951731d..ae34cfef8df2 100644 --- a/pkgs/development/python-modules/cutlass/default.nix +++ b/pkgs/development/python-modules/cutlass/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "cutlass"; version = "0.9.0"; pyproject = true; - __structuredAttrs = true; # No tags on GitHub src = fetchPypi { diff --git a/pkgs/development/python-modules/cvxopt/default.nix b/pkgs/development/python-modules/cvxopt/default.nix index 52ce851715f9..19d629fe3c36 100644 --- a/pkgs/development/python-modules/cvxopt/default.nix +++ b/pkgs/development/python-modules/cvxopt/default.nix @@ -24,8 +24,6 @@ buildPythonPackage (finalAttrs: { version = "1.3.3"; pyproject = true; - __structuredAttrs = true; - disabled = isPyPy; # hangs at [translation:info] src = fetchPypi { @@ -70,9 +68,8 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonImportsCheck = [ "cvxopt" ]; diff --git a/pkgs/development/python-modules/cvxpy/default.nix b/pkgs/development/python-modules/cvxpy/default.nix index d5bd7f374de5..d29aa44dc844 100644 --- a/pkgs/development/python-modules/cvxpy/default.nix +++ b/pkgs/development/python-modules/cvxpy/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "cvxpy"; version = "1.9.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "cvxpy"; diff --git a/pkgs/development/python-modules/cwsandbox/default.nix b/pkgs/development/python-modules/cwsandbox/default.nix index 97f44f37d234..335bd4d98683 100644 --- a/pkgs/development/python-modules/cwsandbox/default.nix +++ b/pkgs/development/python-modules/cwsandbox/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "cwsandbox"; version = "1.7.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "coreweave"; diff --git a/pkgs/development/python-modules/cyclebane/default.nix b/pkgs/development/python-modules/cyclebane/default.nix index f77eb533eed2..40e8fc676a3d 100644 --- a/pkgs/development/python-modules/cyclebane/default.nix +++ b/pkgs/development/python-modules/cyclebane/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "cyclebane"; version = "26.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scipp"; diff --git a/pkgs/development/python-modules/cyscale/default.nix b/pkgs/development/python-modules/cyscale/default.nix index 7cab3bef478d..32254fa10607 100644 --- a/pkgs/development/python-modules/cyscale/default.nix +++ b/pkgs/development/python-modules/cyscale/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.8.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "latent-to"; repo = "cyscale"; diff --git a/pkgs/development/python-modules/cython/default.nix b/pkgs/development/python-modules/cython/default.nix index b76112f697a8..ba58d4978df4 100644 --- a/pkgs/development/python-modules/cython/default.nix +++ b/pkgs/development/python-modules/cython/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, gdb, ncurses, numpy, @@ -25,6 +26,14 @@ buildPythonPackage (finalAttrs: { hash = "sha256-gIEqq8DAJF197gH1cMuq5JxI4rV/VHS70vg8hywXDqw="; }; + patches = [ + # https://github.com/cython/cython/issues/7942 + (fetchpatch { + url = "https://github.com/cython/cython/pull/7970.patch"; + hash = "sha256-dsc6Q7ySDt7m8zCJIaIRDvOM0T5HdMSBnv5JH1RwLoE="; + }) + ]; + build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/cyvcf2/default.nix b/pkgs/development/python-modules/cyvcf2/default.nix index 19949f756053..4f210affdf2d 100644 --- a/pkgs/development/python-modules/cyvcf2/default.nix +++ b/pkgs/development/python-modules/cyvcf2/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "cyvcf2"; version = "0.34.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "brentp"; diff --git a/pkgs/development/python-modules/daemonize/default.nix b/pkgs/development/python-modules/daemonize/default.nix index 303edd210447..0bc237a0cdee 100644 --- a/pkgs/development/python-modules/daemonize/default.nix +++ b/pkgs/development/python-modules/daemonize/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-3QJuT/jSLLAW7SEwvHOLfUsdpZfvk8B00q255N6gi8M="; diff --git a/pkgs/development/python-modules/daemonocle/default.nix b/pkgs/development/python-modules/daemonocle/default.nix index 0d6c8f55ada0..4167fa051b5e 100644 --- a/pkgs/development/python-modules/daemonocle/default.nix +++ b/pkgs/development/python-modules/daemonocle/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "jnrbsn"; repo = "daemonocle"; diff --git a/pkgs/development/python-modules/daff/default.nix b/pkgs/development/python-modules/daff/default.nix index 239b46660a09..7a2368c2d84c 100644 --- a/pkgs/development/python-modules/daff/default.nix +++ b/pkgs/development/python-modules/daff/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-R/A5Htp+K1AR98ysAGuReKzLRlvLlKLJ8oQlf/9dJoY="; diff --git a/pkgs/development/python-modules/daft/default.nix b/pkgs/development/python-modules/daft/default.nix index 92d21bcac4b6..323d2f73ca0f 100644 --- a/pkgs/development/python-modules/daft/default.nix +++ b/pkgs/development/python-modules/daft/default.nix @@ -80,7 +80,6 @@ buildPythonPackage (finalAttrs: { pname = "daft"; version = "0.7.26"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Eventual-Inc"; diff --git a/pkgs/development/python-modules/daqp/default.nix b/pkgs/development/python-modules/daqp/default.nix index e0f4da194dac..8bb73ad78bda 100644 --- a/pkgs/development/python-modules/daqp/default.nix +++ b/pkgs/development/python-modules/daqp/default.nix @@ -31,11 +31,9 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" - "-p" - "'*.py'" + unittestFlags = [ + "--start-directory=test" + "--pattern=*.py" "-v" ]; diff --git a/pkgs/development/python-modules/darabonba-core/default.nix b/pkgs/development/python-modules/darabonba-core/default.nix index ff257e87a14e..88a9c33873ec 100644 --- a/pkgs/development/python-modules/darabonba-core/default.nix +++ b/pkgs/development/python-modules/darabonba-core/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.10"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "darabonba_core"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/dash-core-components/default.nix b/pkgs/development/python-modules/dash-core-components/default.nix index 575b4e569e01..080e35bca6ef 100644 --- a/pkgs/development/python-modules/dash-core-components/default.nix +++ b/pkgs/development/python-modules/dash-core-components/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "dash_core_components"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/dash-html-components/default.nix b/pkgs/development/python-modules/dash-html-components/default.nix index 10abb56efcc3..afe2fc9c6826 100644 --- a/pkgs/development/python-modules/dash-html-components/default.nix +++ b/pkgs/development/python-modules/dash-html-components/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "dash_html_components"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/dash-table/default.nix b/pkgs/development/python-modules/dash-table/default.nix index 9e33d7d94978..9e8cb67b5706 100644 --- a/pkgs/development/python-modules/dash-table/default.nix +++ b/pkgs/development/python-modules/dash-table/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "5.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "dash_table"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/dashing/default.nix b/pkgs/development/python-modules/dashing/default.nix index 30c4bd106c12..07cfa5afb58e 100644 --- a/pkgs/development/python-modules/dashing/default.nix +++ b/pkgs/development/python-modules/dashing/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-JRRgjg8pp3Xb0bERFWEhnOg9U8+kuqL+QQH6uE/Vbxs="; diff --git a/pkgs/development/python-modules/dashscope/default.nix b/pkgs/development/python-modules/dashscope/default.nix index 013d53902bf7..541265676730 100644 --- a/pkgs/development/python-modules/dashscope/default.nix +++ b/pkgs/development/python-modules/dashscope/default.nix @@ -30,8 +30,6 @@ buildPythonPackage rec { version = "1.26.6"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "dashscope"; repo = "dashscope-sdk-python"; diff --git a/pkgs/development/python-modules/dask-glm/default.nix b/pkgs/development/python-modules/dask-glm/default.nix index 9c4045be8fc4..34d49bad47f3 100644 --- a/pkgs/development/python-modules/dask-glm/default.nix +++ b/pkgs/development/python-modules/dask-glm/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "dask-glm"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "dask"; diff --git a/pkgs/development/python-modules/dask-image/default.nix b/pkgs/development/python-modules/dask-image/default.nix index 7f90dcc8c18b..4f6cec9b9fb2 100644 --- a/pkgs/development/python-modules/dask-image/default.nix +++ b/pkgs/development/python-modules/dask-image/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "dask-image"; version = "2026.5.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "dask"; diff --git a/pkgs/development/python-modules/dask-ml/default.nix b/pkgs/development/python-modules/dask-ml/default.nix index 842cbad62466..7bef97f6a235 100644 --- a/pkgs/development/python-modules/dask-ml/default.nix +++ b/pkgs/development/python-modules/dask-ml/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "dask-ml"; version = "2025.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "dask"; diff --git a/pkgs/development/python-modules/dask/default.nix b/pkgs/development/python-modules/dask/default.nix index 691504cc6a98..190745a85582 100644 --- a/pkgs/development/python-modules/dask/default.nix +++ b/pkgs/development/python-modules/dask/default.nix @@ -46,7 +46,6 @@ buildPythonPackage (finalAttrs: { pname = "dask"; version = "2026.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "dask"; diff --git a/pkgs/development/python-modules/data-password-entropy/default.nix b/pkgs/development/python-modules/data-password-entropy/default.nix index 1cf30486671f..d8785a4f2253 100644 --- a/pkgs/development/python-modules/data-password-entropy/default.nix +++ b/pkgs/development/python-modules/data-password-entropy/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "alistratov"; repo = "password-entropy-py"; diff --git a/pkgs/development/python-modules/databricks-sdk/default.nix b/pkgs/development/python-modules/databricks-sdk/default.nix index 07cd5ad647c6..67af0008bedc 100644 --- a/pkgs/development/python-modules/databricks-sdk/default.nix +++ b/pkgs/development/python-modules/databricks-sdk/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "databricks-sdk"; version = "0.140.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "databricks"; diff --git a/pkgs/development/python-modules/datafusion/default.nix b/pkgs/development/python-modules/datafusion/default.nix index 1fc347993392..463a91b51168 100644 --- a/pkgs/development/python-modules/datafusion/default.nix +++ b/pkgs/development/python-modules/datafusion/default.nix @@ -7,10 +7,11 @@ pythonOlder, # nativeBuildInputs + pkg-config, protoc, # buildInputs - protobuf, + pkgsHostTarget, # dependencies cloudpickle, @@ -30,7 +31,6 @@ buildPythonPackage (finalAttrs: { # WARNING: Ensure rerun-sdk is compatible with this version of datafusion version = "54.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { name = "datafusion-source"; @@ -50,11 +50,13 @@ buildPythonPackage (finalAttrs: { nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook + pkg-config protoc ]; buildInputs = [ - protobuf + pkgsHostTarget.protobuf + pkgsHostTarget.zstd ]; dependencies = [ diff --git a/pkgs/development/python-modules/datalab-platform/default.nix b/pkgs/development/python-modules/datalab-platform/default.nix index 0c6d7302a28a..dd7a1d0a4491 100644 --- a/pkgs/development/python-modules/datalab-platform/default.nix +++ b/pkgs/development/python-modules/datalab-platform/default.nix @@ -55,7 +55,6 @@ buildPythonPackage (finalAttrs: { pname = "datalab-platform"; version = "1.2.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "DataLab-Platform"; diff --git a/pkgs/development/python-modules/datamodel-code-generator/default.nix b/pkgs/development/python-modules/datamodel-code-generator/default.nix index 14fd79024675..cfaf09c260ba 100644 --- a/pkgs/development/python-modules/datamodel-code-generator/default.nix +++ b/pkgs/development/python-modules/datamodel-code-generator/default.nix @@ -53,7 +53,6 @@ buildPythonPackage (finalAttrs: { pname = "datamodel-code-generator"; version = "0.71.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "datamodel-code-generator"; diff --git a/pkgs/development/python-modules/dataprep-ml/default.nix b/pkgs/development/python-modules/dataprep-ml/default.nix index 1fef0c21b590..e00f4d86271f 100644 --- a/pkgs/development/python-modules/dataprep-ml/default.nix +++ b/pkgs/development/python-modules/dataprep-ml/default.nix @@ -37,6 +37,7 @@ buildPythonPackage rec { }; pythonRelaxDeps = [ + "pandas" "pydantic" "numpy" ]; diff --git a/pkgs/development/python-modules/datashader/default.nix b/pkgs/development/python-modules/datashader/default.nix index 74c5e8f9c24e..37a7f7fdcf24 100644 --- a/pkgs/development/python-modules/datashader/default.nix +++ b/pkgs/development/python-modules/datashader/default.nix @@ -22,7 +22,7 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "datashader"; version = "0.19.1"; pyproject = true; @@ -30,7 +30,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "holoviz"; repo = "datashader"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-jP6e7YmLyg3wd8QQZ4Vzr7vRFsRmttjIrEgIFqd6+hQ="; }; @@ -54,6 +54,10 @@ buildPythonPackage rec { xarray ]; + pytestFlags = [ + "-W ignore::pytest.PytestRemovedIn10Warning" + ]; + nativeCheckInputs = [ pytestCheckHook pytest-xdist @@ -71,11 +75,11 @@ buildPythonPackage rec { description = "Data visualization toolchain based on aggregating into a grid"; mainProgram = "datashader"; homepage = "https://datashader.org"; - changelog = "https://github.com/holoviz/datashader/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/holoviz/datashader/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ nickcao locnide ]; }; -} +}) diff --git a/pkgs/development/python-modules/datefinder/default.nix b/pkgs/development/python-modules/datefinder/default.nix index e69eb68848fd..7d4a87e9cd2c 100644 --- a/pkgs/development/python-modules/datefinder/default.nix +++ b/pkgs/development/python-modules/datefinder/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "akoumjian"; repo = "datefinder"; diff --git a/pkgs/development/python-modules/dateutils/default.nix b/pkgs/development/python-modules/dateutils/default.nix index 193cc01e797b..9f06eec5a51b 100644 --- a/pkgs/development/python-modules/dateutils/default.nix +++ b/pkgs/development/python-modules/dateutils/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.6.12"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "dateutils"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/dawg-python/default.nix b/pkgs/development/python-modules/dawg-python/default.nix index cef1c82cd2ee..0e7e5e3def6b 100644 --- a/pkgs/development/python-modules/dawg-python/default.nix +++ b/pkgs/development/python-modules/dawg-python/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "DAWG-Python"; diff --git a/pkgs/development/python-modules/dbf/default.nix b/pkgs/development/python-modules/dbf/default.nix index f1af77599783..3032b869bfa7 100644 --- a/pkgs/development/python-modules/dbf/default.nix +++ b/pkgs/development/python-modules/dbf/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.99.11"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "dbf"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/dbfread/default.nix b/pkgs/development/python-modules/dbfread/default.nix index 2585a330dc32..5acf6b578cd1 100644 --- a/pkgs/development/python-modules/dbfread/default.nix +++ b/pkgs/development/python-modules/dbfread/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-B8iprwb/rT9vA+j+ka19JzPjGibStyxN1M+64H7jtz0="; diff --git a/pkgs/development/python-modules/dbus-client-gen/default.nix b/pkgs/development/python-modules/dbus-client-gen/default.nix index 7bc0ddb1e339..04dde58d844d 100644 --- a/pkgs/development/python-modules/dbus-client-gen/default.nix +++ b/pkgs/development/python-modules/dbus-client-gen/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-vRXo72aWoreH/VwzdEAOgoGSRzRf7vy8Z/IA+lnLoWw="; diff --git a/pkgs/development/python-modules/dbus-python-client-gen/default.nix b/pkgs/development/python-modules/dbus-python-client-gen/default.nix index ae980dd92afd..ea6f6c59346c 100644 --- a/pkgs/development/python-modules/dbus-python-client-gen/default.nix +++ b/pkgs/development/python-modules/dbus-python-client-gen/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.8.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "stratis-storage"; repo = "dbus-python-client-gen"; diff --git a/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix b/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix index 532f329c855e..a22206cf59eb 100644 --- a/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix +++ b/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "stratis-storage"; repo = "dbus-signature-pyparsing"; diff --git a/pkgs/development/python-modules/deap/default.nix b/pkgs/development/python-modules/deap/default.nix index 370aa72af51e..77cf0445f685 100644 --- a/pkgs/development/python-modules/deap/default.nix +++ b/pkgs/development/python-modules/deap/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "deap"; diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index 3e91f4bdf291..a4e842172b39 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -120,12 +120,12 @@ buildPythonPackage rec { typing-extensions ]; - preCheck = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + preCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 export no_proxy='*'; ''; - postCheck = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + postCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' unset no_proxy ''; diff --git a/pkgs/development/python-modules/deemix/default.nix b/pkgs/development/python-modules/deemix/default.nix index f431e762f5c5..5b6204308ec9 100644 --- a/pkgs/development/python-modules/deemix/default.nix +++ b/pkgs/development/python-modules/deemix/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "3.6.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-xEahzA1PIrGPfnnOcuXQLVQpSVOUFk6/0v9ViLgWCwk="; diff --git a/pkgs/development/python-modules/deep-gemm/default.nix b/pkgs/development/python-modules/deep-gemm/default.nix index d26d4ce8f2e0..c49bc724ad04 100644 --- a/pkgs/development/python-modules/deep-gemm/default.nix +++ b/pkgs/development/python-modules/deep-gemm/default.nix @@ -39,7 +39,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "deep-gemm"; version = "2.1.1.post3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "deepseek-ai"; diff --git a/pkgs/development/python-modules/deepsearch-toolkit/default.nix b/pkgs/development/python-modules/deepsearch-toolkit/default.nix index 6bcb4fb230e4..9cafe886b389 100644 --- a/pkgs/development/python-modules/deepsearch-toolkit/default.nix +++ b/pkgs/development/python-modules/deepsearch-toolkit/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "deepsearch-toolkit"; version = "2.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "DS4SD"; diff --git a/pkgs/development/python-modules/deepspeed/default.nix b/pkgs/development/python-modules/deepspeed/default.nix index 66341dc0f67e..a14be3ea3fb7 100644 --- a/pkgs/development/python-modules/deepspeed/default.nix +++ b/pkgs/development/python-modules/deepspeed/default.nix @@ -54,7 +54,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "deepspeed"; version = "0.19.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "deepspeedai"; diff --git a/pkgs/development/python-modules/deeptoolsintervals/default.nix b/pkgs/development/python-modules/deeptoolsintervals/default.nix index f94a2f59d303..09de932ad4ed 100644 --- a/pkgs/development/python-modules/deeptoolsintervals/default.nix +++ b/pkgs/development/python-modules/deeptoolsintervals/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.9"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-fZTDb9K28Q2LmeU20mcugiiXHx/IEEl9M1J7uixA1PY="; diff --git a/pkgs/development/python-modules/deepwave/default.nix b/pkgs/development/python-modules/deepwave/default.nix index 8c6f561dde13..226361c41262 100644 --- a/pkgs/development/python-modules/deepwave/default.nix +++ b/pkgs/development/python-modules/deepwave/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "deepwave"; version = "0.0.27"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ar4"; diff --git a/pkgs/development/python-modules/deezer-py/default.nix b/pkgs/development/python-modules/deezer-py/default.nix index 762d090c4083..d53b985a6084 100644 --- a/pkgs/development/python-modules/deezer-py/default.nix +++ b/pkgs/development/python-modules/deezer-py/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.3.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-saMy+IeAy6H9SgS8XHnZ9klFerGyr+vQqhuCtimgbEo="; diff --git a/pkgs/development/python-modules/defcon/default.nix b/pkgs/development/python-modules/defcon/default.nix index 94776ee4149d..90263ec50a19 100644 --- a/pkgs/development/python-modules/defcon/default.nix +++ b/pkgs/development/python-modules/defcon/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.12.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Jd/n/QFSzPKSyxkNGSikfViImcILBGhUKT4DnhyT5eA="; diff --git a/pkgs/development/python-modules/defusedcsv/default.nix b/pkgs/development/python-modules/defusedcsv/default.nix index 0979007e04d0..77b8a64d6838 100644 --- a/pkgs/development/python-modules/defusedcsv/default.nix +++ b/pkgs/development/python-modules/defusedcsv/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "raphaelm"; repo = "defusedcsv"; diff --git a/pkgs/development/python-modules/delorean/default.nix b/pkgs/development/python-modules/delorean/default.nix index b3e3f31eab2e..f103440eddf5 100644 --- a/pkgs/development/python-modules/delorean/default.nix +++ b/pkgs/development/python-modules/delorean/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "Delorean"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/demjson3/default.nix b/pkgs/development/python-modules/demjson3/default.nix index 2c6101fa4d3b..952d0dc932e9 100644 --- a/pkgs/development/python-modules/demjson3/default.nix +++ b/pkgs/development/python-modules/demjson3/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-N8g7DG6wjSXe/IjfCipIddWKeAmpZQvW7uev2AU826w="; diff --git a/pkgs/development/python-modules/dependency-injector/default.nix b/pkgs/development/python-modules/dependency-injector/default.nix index a5c1a78e34fe..1dda64477e3b 100644 --- a/pkgs/development/python-modules/dependency-injector/default.nix +++ b/pkgs/development/python-modules/dependency-injector/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "dependency-injector"; version = "4.49.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ets-labs"; diff --git a/pkgs/development/python-modules/devito/default.nix b/pkgs/development/python-modules/devito/default.nix index a647cfbd9eff..4d3a42e17f14 100644 --- a/pkgs/development/python-modules/devito/default.nix +++ b/pkgs/development/python-modules/devito/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "devito"; version = "4.8.23"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "devitocodes"; @@ -113,15 +112,10 @@ buildPythonPackage (finalAttrs: { # AssertionError: assert(np.allclose(grad_u.data, grad_v.data, rtol=tolerance, atol=tolerance)) "test_gradient_equivalence" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + # Numerical tests "test_lm_fb" "test_lm_ds" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Numerical error - "test_pow_precision" ]; disabledTestPaths = diff --git a/pkgs/development/python-modules/digi-xbee/default.nix b/pkgs/development/python-modules/digi-xbee/default.nix index 35e6bcc381de..f5ff2eb22c07 100644 --- a/pkgs/development/python-modules/digi-xbee/default.nix +++ b/pkgs/development/python-modules/digi-xbee/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "digi-xbee"; version = "1.5.0"; - __structuredAttrs = true; pyproject = true; src = fetchPypi { diff --git a/pkgs/development/python-modules/dirsearch/default.nix b/pkgs/development/python-modules/dirsearch/default.nix index c9dd706b79fb..974ad46ed4b6 100644 --- a/pkgs/development/python-modules/dirsearch/default.nix +++ b/pkgs/development/python-modules/dirsearch/default.nix @@ -35,7 +35,6 @@ buildPythonPackage (finalAttrs: { pname = "dirsearch"; version = "0.5.0"; - __structuredAttrs = true; src = fetchFromGitHub { owner = "maurosoria"; diff --git a/pkgs/development/python-modules/dirty-equals/default.nix b/pkgs/development/python-modules/dirty-equals/default.nix index c1d5812ac9c2..3cd944948113 100644 --- a/pkgs/development/python-modules/dirty-equals/default.nix +++ b/pkgs/development/python-modules/dirty-equals/default.nix @@ -44,8 +44,6 @@ let pythonImportsCheck = [ "dirty_equals" ]; - __structuredAttrs = true; - meta = { description = "Module for doing dirty (but extremely useful) things with equals"; homepage = "https://github.com/samuelcolvin/dirty-equals"; diff --git a/pkgs/development/python-modules/diskcache/default.nix b/pkgs/development/python-modules/diskcache/default.nix index 4d76e7462215..8a1e1a1c412d 100644 --- a/pkgs/development/python-modules/diskcache/default.nix +++ b/pkgs/development/python-modules/diskcache/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "5.6.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "grantjenks"; repo = "python-diskcache"; diff --git a/pkgs/development/python-modules/disposable-email-domains/default.nix b/pkgs/development/python-modules/disposable-email-domains/default.nix index 1301c46b631f..dd0c82f96f4a 100644 --- a/pkgs/development/python-modules/disposable-email-domains/default.nix +++ b/pkgs/development/python-modules/disposable-email-domains/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "disposable-email-domains"; version = "0.0.287"; pyproject = true; - __structuredAttrs = true; # No tags on GitHub src = fetchPypi { diff --git a/pkgs/development/python-modules/dissononce/default.nix b/pkgs/development/python-modules/dissononce/default.nix index 271244054cbb..8242dc93397e 100644 --- a/pkgs/development/python-modules/dissononce/default.nix +++ b/pkgs/development/python-modules/dissononce/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.34.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "tgalal"; repo = "dissononce"; diff --git a/pkgs/development/python-modules/distrax/default.nix b/pkgs/development/python-modules/distrax/default.nix index 966fb6097d1f..2ddcd78bbce8 100644 --- a/pkgs/development/python-modules/distrax/default.nix +++ b/pkgs/development/python-modules/distrax/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "distrax"; version = "0.1.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google-deepmind"; diff --git a/pkgs/development/python-modules/distributed/default.nix b/pkgs/development/python-modules/distributed/default.nix index a01910fa3853..a464d4e73234 100644 --- a/pkgs/development/python-modules/distributed/default.nix +++ b/pkgs/development/python-modules/distributed/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "distributed"; version = "2026.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "dask"; diff --git a/pkgs/development/python-modules/django-filingcabinet/default.nix b/pkgs/development/python-modules/django-filingcabinet/default.nix index adec72b02708..76492457443c 100644 --- a/pkgs/development/python-modules/django-filingcabinet/default.nix +++ b/pkgs/development/python-modules/django-filingcabinet/default.nix @@ -43,7 +43,6 @@ buildPythonPackage (finalAttrs: { pname = "django-filingcabinet"; version = "0.17-unstable-2026-05-07"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "okfde"; diff --git a/pkgs/development/python-modules/django-filter/default.nix b/pkgs/development/python-modules/django-filter/default.nix index ceff8f118502..4af7790ede89 100644 --- a/pkgs/development/python-modules/django-filter/default.nix +++ b/pkgs/development/python-modules/django-filter/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "django-filter"; version = "26.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "carltongibson"; diff --git a/pkgs/development/python-modules/django-otp-webauthn/default.nix b/pkgs/development/python-modules/django-otp-webauthn/default.nix index 780945f11ac1..6287de2de6c9 100644 --- a/pkgs/development/python-modules/django-otp-webauthn/default.nix +++ b/pkgs/development/python-modules/django-otp-webauthn/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "django-otp-webauthn"; version = "0.10.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Stormbase"; diff --git a/pkgs/development/python-modules/django-paintstore/default.nix b/pkgs/development/python-modules/django-paintstore/default.nix index e0bcbd7dcacd..cf6f80a174a2 100644 --- a/pkgs/development/python-modules/django-paintstore/default.nix +++ b/pkgs/development/python-modules/django-paintstore/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-j3MmV28GGOTwONWD27VgpZjdojp1nVj4wW4uHDZ/nYs="; diff --git a/pkgs/development/python-modules/django-pglocks/default.nix b/pkgs/development/python-modules/django-pglocks/default.nix index 7a672fd965a1..677b7415e289 100644 --- a/pkgs/development/python-modules/django-pglocks/default.nix +++ b/pkgs/development/python-modules/django-pglocks/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-PEfGb7+9Jo70YmlnOgUWoDlTmwlyuO0uyc/uRMS2VSM="; diff --git a/pkgs/development/python-modules/django-pgware/default.nix b/pkgs/development/python-modules/django-pgware/default.nix index f03fbcb1c98c..24b3cd30547c 100644 --- a/pkgs/development/python-modules/django-pgware/default.nix +++ b/pkgs/development/python-modules/django-pgware/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "django-pgware"; version = "1.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Xof"; diff --git a/pkgs/development/python-modules/django-querytagger/default.nix b/pkgs/development/python-modules/django-querytagger/default.nix index c0686faf3a1d..d90d0955ba62 100644 --- a/pkgs/development/python-modules/django-querytagger/default.nix +++ b/pkgs/development/python-modules/django-querytagger/default.nix @@ -27,8 +27,6 @@ buildPythonPackage (finalAttrs: { doCheck = false; # no tests - __structuredAttrs = true; - meta = { description = "Correlate SQL query logs in your database with your Django application and logs"; homepage = "https://github.com/pretix/django-querytagger"; diff --git a/pkgs/development/python-modules/django-ranged-response/default.nix b/pkgs/development/python-modules/django-ranged-response/default.nix index 418c49c533a3..caab7c7b9731 100644 --- a/pkgs/development/python-modules/django-ranged-response/default.nix +++ b/pkgs/development/python-modules/django-ranged-response/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-9x//NSo3MWub6tcX/Hbk3dbJuZxGgM30eDuXVa8c+YU="; diff --git a/pkgs/development/python-modules/django-rest-knox/default.nix b/pkgs/development/python-modules/django-rest-knox/default.nix index 3c2caa0a1f30..cf1231855f71 100644 --- a/pkgs/development/python-modules/django-rest-knox/default.nix +++ b/pkgs/development/python-modules/django-rest-knox/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "django-rest-knox"; version = "5.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jazzband"; diff --git a/pkgs/development/python-modules/django-vpg/default.nix b/pkgs/development/python-modules/django-vpg/default.nix index 3eb9db7f7047..f685765259e2 100644 --- a/pkgs/development/python-modules/django-vpg/default.nix +++ b/pkgs/development/python-modules/django-vpg/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "django-vpg"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitLab { owner = "glitchtip"; diff --git a/pkgs/development/python-modules/django/5.nix b/pkgs/development/python-modules/django/5.nix index 12424533b970..a47d599782a4 100644 --- a/pkgs/development/python-modules/django/5.nix +++ b/pkgs/development/python-modules/django/5.nix @@ -41,14 +41,14 @@ buildPythonPackage (finalAttrs: { pname = "django"; - version = "5.2.18"; + version = "5.2.19"; pyproject = true; src = fetchFromGitHub { owner = "django"; repo = "django"; tag = finalAttrs.version; - hash = "sha256-XoNmtE4gmpm/i9vfaQwHZw1q6ctxSvotu0I+02UZutk="; + hash = "sha256-XnSmncUWLnWLGRCvWC1AsBfNJnxg2dLnv5asLGXV3c0="; }; patches = [ diff --git a/pkgs/development/python-modules/djoser/default.nix b/pkgs/development/python-modules/djoser/default.nix index ae496817e9ee..be44ee53ff96 100644 --- a/pkgs/development/python-modules/djoser/default.nix +++ b/pkgs/development/python-modules/djoser/default.nix @@ -12,7 +12,6 @@ buildPythonPackage rec { pname = "djoser"; version = "2.3.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sunscrapers"; diff --git a/pkgs/development/python-modules/djvulibre-python/default.nix b/pkgs/development/python-modules/djvulibre-python/default.nix index b5212124bfda..ddd7ec7fd0ee 100644 --- a/pkgs/development/python-modules/djvulibre-python/default.nix +++ b/pkgs/development/python-modules/djvulibre-python/default.nix @@ -10,7 +10,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "djvulibre-python"; version = "0.9.3"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "FriedrichFroebel"; repo = "python-djvulibre"; - tag = version; + tag = finalAttrs.version; hash = "sha256-ntDRntNxVchZm+i+qBbiZlfHAXJRKMin9Hi+BoJQjTM="; }; @@ -42,8 +42,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "tests" + unittestFlags = [ + "--start-directory=tests" "-v" ]; @@ -51,7 +51,7 @@ buildPythonPackage rec { description = "Python support for the DjVu image format"; homepage = "https://github.com/FriedrichFroebel/python-djvulibre"; license = lib.licenses.gpl2Only; - changelog = "https://github.com/FriedrichFroebel/python-djvulibre/releases/tag/${src.tag}"; + changelog = "https://github.com/FriedrichFroebel/python-djvulibre/releases/tag/${finalAttrs.src.tag}"; maintainers = with lib.maintainers; [ dansbandit ]; }; -} +}) diff --git a/pkgs/development/python-modules/dm-control/default.nix b/pkgs/development/python-modules/dm-control/default.nix index 513098bfbb9a..3f6b7b062b3c 100644 --- a/pkgs/development/python-modules/dm-control/default.nix +++ b/pkgs/development/python-modules/dm-control/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "dm-control"; version = "1.0.50"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google-deepmind"; diff --git a/pkgs/development/python-modules/dmsuite/default.nix b/pkgs/development/python-modules/dmsuite/default.nix index 3f0907a2eaab..cc18b6477a6e 100644 --- a/pkgs/development/python-modules/dmsuite/default.nix +++ b/pkgs/development/python-modules/dmsuite/default.nix @@ -35,7 +35,7 @@ buildPythonPackage rec { ]; # Slight precision error probably due to different BLAS backend on Darwin - disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_cheb_scaled" ]; diff --git a/pkgs/development/python-modules/dnspython/default.nix b/pkgs/development/python-modules/dnspython/default.nix index 6204b0dd25e3..a14fa6fc7f25 100644 --- a/pkgs/development/python-modules/dnspython/default.nix +++ b/pkgs/development/python-modules/dnspython/default.nix @@ -6,28 +6,28 @@ fetchPypi, h2, httpcore, - httpx, + httpx2, idna, - hatchling, + uv-build, pytestCheckHook, trio, }: buildPythonPackage rec { pname = "dnspython"; - version = "2.8.0"; + version = "2.9.0"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-GB08aZZFLLEYnEBGxhWZuEpahuCZVi/9530mmE/ybQ8="; + hash = "sha256-tE3GsY8HqLHFZnahn7/bUglBWwRqnOzihrqvqH/z9/E="; }; - build-system = [ hatchling ]; + build-system = [ uv-build ]; optional-dependencies = { doh = [ - httpx + httpx2 h2 httpcore ]; @@ -37,13 +37,21 @@ buildPythonPackage rec { doq = [ aioquic ]; }; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + idna + ]; disabledTests = [ # dns.exception.SyntaxError: protocol not found "test_misc_good_WKS_text" ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'uv_build>=0.9.21,<0.13.0' "uv_build" + ''; + # disable network on all builds (including darwin) # see https://github.com/NixOS/nixpkgs/issues/356803 preCheck = '' diff --git a/pkgs/development/python-modules/doclang/default.nix b/pkgs/development/python-modules/doclang/default.nix index 12bb45649584..7d19feed6ccf 100644 --- a/pkgs/development/python-modules/doclang/default.nix +++ b/pkgs/development/python-modules/doclang/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "doclang"; version = "0.8.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "doclang-project"; diff --git a/pkgs/development/python-modules/docling-core/default.nix b/pkgs/development/python-modules/docling-core/default.nix index ff3e789c7cc9..53de7b5edf81 100644 --- a/pkgs/development/python-modules/docling-core/default.nix +++ b/pkgs/development/python-modules/docling-core/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "docling-core"; version = "2.105.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "docling-project"; diff --git a/pkgs/development/python-modules/docling-ibm-models/default.nix b/pkgs/development/python-modules/docling-ibm-models/default.nix index 5a13bac3bf1a..d86953e5b7b8 100644 --- a/pkgs/development/python-modules/docling-ibm-models/default.nix +++ b/pkgs/development/python-modules/docling-ibm-models/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "docling-ibm-models"; version = "4.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "docling-project"; diff --git a/pkgs/development/python-modules/docling-jobkit/default.nix b/pkgs/development/python-modules/docling-jobkit/default.nix index 9e766f8ed63b..57d747d9b687 100644 --- a/pkgs/development/python-modules/docling-jobkit/default.nix +++ b/pkgs/development/python-modules/docling-jobkit/default.nix @@ -48,7 +48,6 @@ buildPythonPackage (finalAttrs: { pname = "docling-jobkit"; version = "3.9.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "docling-project"; diff --git a/pkgs/development/python-modules/docling-parse/default.nix b/pkgs/development/python-modules/docling-parse/default.nix index 5b10e78bf712..5f1c4b9a15f8 100644 --- a/pkgs/development/python-modules/docling-parse/default.nix +++ b/pkgs/development/python-modules/docling-parse/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "docling-parse"; version = "7.24.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "docling-project"; diff --git a/pkgs/development/python-modules/docling-serve/default.nix b/pkgs/development/python-modules/docling-serve/default.nix index d0847b84d712..915be33e907d 100644 --- a/pkgs/development/python-modules/docling-serve/default.nix +++ b/pkgs/development/python-modules/docling-serve/default.nix @@ -53,7 +53,6 @@ buildPythonPackage (finalAttrs: { pname = "docling-serve"; version = "1.38.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "docling-project"; diff --git a/pkgs/development/python-modules/docling-slim/default.nix b/pkgs/development/python-modules/docling-slim/default.nix index 82ff7a000b54..e56538d49a45 100644 --- a/pkgs/development/python-modules/docling-slim/default.nix +++ b/pkgs/development/python-modules/docling-slim/default.nix @@ -106,7 +106,6 @@ buildPythonPackage (finalAttrs: { pname = "docling-slim"; version = "2.145.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "docling-project"; diff --git a/pkgs/development/python-modules/docling/default.nix b/pkgs/development/python-modules/docling/default.nix index e53352e7e101..ee8e4fcdb079 100644 --- a/pkgs/development/python-modules/docling/default.nix +++ b/pkgs/development/python-modules/docling/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "docling"; inherit (docling-slim) version src; pyproject = true; - __structuredAttrs = true; sourceRoot = "${finalAttrs.src.name}/packages/docling"; diff --git a/pkgs/development/python-modules/dpapi-ng/default.nix b/pkgs/development/python-modules/dpapi-ng/default.nix index fdb7a2d45487..a9961679a4ae 100644 --- a/pkgs/development/python-modules/dpapi-ng/default.nix +++ b/pkgs/development/python-modules/dpapi-ng/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "jborean93"; repo = "dpapi-ng"; diff --git a/pkgs/development/python-modules/dpcontracts/default.nix b/pkgs/development/python-modules/dpcontracts/default.nix index f2738e1a59fa..014a76842c94 100644 --- a/pkgs/development/python-modules/dpcontracts/default.nix +++ b/pkgs/development/python-modules/dpcontracts/default.nix @@ -11,8 +11,6 @@ buildPythonPackage { version = "0.6.0-unstable-2018-11-20"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "deadpixi"; repo = "contracts"; diff --git a/pkgs/development/python-modules/draccus/default.nix b/pkgs/development/python-modules/draccus/default.nix index a53c25d1e24f..f08a36f7a742 100644 --- a/pkgs/development/python-modules/draccus/default.nix +++ b/pkgs/development/python-modules/draccus/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "draccus"; version = "0.11.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "marin-community"; diff --git a/pkgs/development/python-modules/drf-standardized-errors/default.nix b/pkgs/development/python-modules/drf-standardized-errors/default.nix index 689f17b01d94..d67c2335d9a1 100644 --- a/pkgs/development/python-modules/drf-standardized-errors/default.nix +++ b/pkgs/development/python-modules/drf-standardized-errors/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "drf-standardized-errors"; version = "0.16.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ghazi-git"; diff --git a/pkgs/development/python-modules/drms/default.nix b/pkgs/development/python-modules/drms/default.nix index 21a3d265d703..1031b41c08fb 100644 --- a/pkgs/development/python-modules/drms/default.nix +++ b/pkgs/development/python-modules/drms/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "drms"; version = "0.9.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sunpy"; diff --git a/pkgs/development/python-modules/dspy/default.nix b/pkgs/development/python-modules/dspy/default.nix index 8f1e27308b9c..98774adb58d2 100644 --- a/pkgs/development/python-modules/dspy/default.nix +++ b/pkgs/development/python-modules/dspy/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "dspy"; version = "3.2.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "stanfordnlp"; diff --git a/pkgs/development/python-modules/dulwich/default.nix b/pkgs/development/python-modules/dulwich/default.nix index bd4f109e98e7..89e84d1eb587 100644 --- a/pkgs/development/python-modules/dulwich/default.nix +++ b/pkgs/development/python-modules/dulwich/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "dulwich"; version = "1.2.17"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jelmer"; diff --git a/pkgs/development/python-modules/dunamai/default.nix b/pkgs/development/python-modules/dunamai/default.nix index 88d4a309bf60..8912162c92bf 100644 --- a/pkgs/development/python-modules/dunamai/default.nix +++ b/pkgs/development/python-modules/dunamai/default.nix @@ -16,16 +16,16 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "dunamai"; - version = "1.26.2"; + version = "1.26.3"; pyproject = true; src = fetchFromGitHub { owner = "mtkennerly"; repo = "dunamai"; - tag = "v${version}"; - hash = "sha256-pP0KeQ1tThvBomQIlrWNCVzB8ghR9rfaLm5NeBKwiuE="; + tag = "v${finalAttrs.version}"; + hash = "sha256-8R9ASAkn7cBWC1ZI4/k9b9rISpAEgyL9NJQDvQnbj+o="; }; build-system = [ poetry-core ]; @@ -55,8 +55,8 @@ buildPythonPackage rec { description = "Dynamic version generation"; mainProgram = "dunamai"; homepage = "https://github.com/mtkennerly/dunamai"; - changelog = "https://github.com/mtkennerly/dunamai/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/mtkennerly/dunamai/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jmgilman ]; }; -} +}) diff --git a/pkgs/development/python-modules/e2b-code-interpreter/default.nix b/pkgs/development/python-modules/e2b-code-interpreter/default.nix index 3a4afdab7a73..a448de6f1c69 100644 --- a/pkgs/development/python-modules/e2b-code-interpreter/default.nix +++ b/pkgs/development/python-modules/e2b-code-interpreter/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "e2b-code-interpreter"; version = "2.9.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "e2b-dev"; diff --git a/pkgs/development/python-modules/e2b/default.nix b/pkgs/development/python-modules/e2b/default.nix index 6d06c6f399e9..97a649c87c55 100644 --- a/pkgs/development/python-modules/e2b/default.nix +++ b/pkgs/development/python-modules/e2b/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "e2b"; version = "2.51.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "e2b-dev"; diff --git a/pkgs/development/python-modules/e3nn/default.nix b/pkgs/development/python-modules/e3nn/default.nix index 372a0c7359e2..0eba948b2966 100644 --- a/pkgs/development/python-modules/e3nn/default.nix +++ b/pkgs/development/python-modules/e3nn/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "e3nn"; version = "0.6.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "e3nn"; diff --git a/pkgs/development/python-modules/earth2studio/default.nix b/pkgs/development/python-modules/earth2studio/default.nix index 51166b71c872..5408f6b7c9d1 100644 --- a/pkgs/development/python-modules/earth2studio/default.nix +++ b/pkgs/development/python-modules/earth2studio/default.nix @@ -47,7 +47,6 @@ buildPythonPackage (finalAttrs: { pname = "earth2studio"; version = "0.20.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/easydict/default.nix b/pkgs/development/python-modules/easydict/default.nix index 3e2ae4397b64..a33192a9cbbd 100644 --- a/pkgs/development/python-modules/easydict/default.nix +++ b/pkgs/development/python-modules/easydict/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.13"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-sRNd7bxByAEOK8H3fsl0TH+qQrzhoch0FnkUSdbId4A="; diff --git a/pkgs/development/python-modules/easygui/default.nix b/pkgs/development/python-modules/easygui/default.nix index ffd99c3a4f33..bfcd69fc8fba 100644 --- a/pkgs/development/python-modules/easygui/default.nix +++ b/pkgs/development/python-modules/easygui/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.98.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-1lP/ee4fQvY7WgkPL5jOAjNdhq2JY7POJmGAXK/pmgQ="; diff --git a/pkgs/development/python-modules/easyprocess/default.nix b/pkgs/development/python-modules/easyprocess/default.nix index c6cacf55bc67..7a6a829e2078 100644 --- a/pkgs/development/python-modules/easyprocess/default.nix +++ b/pkgs/development/python-modules/easyprocess/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAtrrs: { version = "1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "EasyProcess"; inherit (finalAtrrs) version; diff --git a/pkgs/development/python-modules/easywatch/default.nix b/pkgs/development/python-modules/easywatch/default.nix index bf07ea00279f..f40c08810c71 100644 --- a/pkgs/development/python-modules/easywatch/default.nix +++ b/pkgs/development/python-modules/easywatch/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-DN7XAQYIPq3m4y9m7vH5QAywOfTG9w6RxEmf/aJkgKw="; diff --git a/pkgs/development/python-modules/einops/default.nix b/pkgs/development/python-modules/einops/default.nix index ffeefb46a57e..d8e2ec8d93c3 100644 --- a/pkgs/development/python-modules/einops/default.nix +++ b/pkgs/development/python-modules/einops/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "einops"; version = "0.8.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arogozhnikov"; diff --git a/pkgs/development/python-modules/eliot/default.nix b/pkgs/development/python-modules/eliot/default.nix index 07fc87bbb1e4..2034ac4920e7 100644 --- a/pkgs/development/python-modules/eliot/default.nix +++ b/pkgs/development/python-modules/eliot/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "eliot"; version = "1.18.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "itamarst"; diff --git a/pkgs/development/python-modules/emerge/default.nix b/pkgs/development/python-modules/emerge/default.nix index 5a55d0e8261c..972d55bb3879 100644 --- a/pkgs/development/python-modules/emerge/default.nix +++ b/pkgs/development/python-modules/emerge/default.nix @@ -65,7 +65,6 @@ buildPythonPackage (finalAttrs: { pname = "emerge"; version = "2.8.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "FennisRobert"; diff --git a/pkgs/development/python-modules/emmiai-noether/default.nix b/pkgs/development/python-modules/emmiai-noether/default.nix index 5ee8d1ae22c3..9f8649dddf01 100644 --- a/pkgs/development/python-modules/emmiai-noether/default.nix +++ b/pkgs/development/python-modules/emmiai-noether/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "emmiai-noether"; version = "2026.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Emmi-AI"; diff --git a/pkgs/development/python-modules/emsutil/default.nix b/pkgs/development/python-modules/emsutil/default.nix index b7d315d28144..3b57d73c8b4e 100644 --- a/pkgs/development/python-modules/emsutil/default.nix +++ b/pkgs/development/python-modules/emsutil/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "emsutil"; version = "0.8.3-unstable-2026-08-03"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "FennisRobert"; diff --git a/pkgs/development/python-modules/enturclient/default.nix b/pkgs/development/python-modules/enturclient/default.nix index ad997121e576..8d6c79bc6598 100644 --- a/pkgs/development/python-modules/enturclient/default.nix +++ b/pkgs/development/python-modules/enturclient/default.nix @@ -33,7 +33,7 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "tests/dto/" ]; + unittestFlags = [ "--start-directory=tests/dto" ]; meta = { description = "Python library for interacting with the Entur.org API"; diff --git a/pkgs/development/python-modules/epitran/default.nix b/pkgs/development/python-modules/epitran/default.nix index 76806f40dc52..7e93cad84a18 100644 --- a/pkgs/development/python-modules/epitran/default.nix +++ b/pkgs/development/python-modules/epitran/default.nix @@ -15,7 +15,7 @@ requests, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "epitran"; version = "1.35.2"; pyproject = true; @@ -23,7 +23,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "dmort27"; repo = "epitran"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-O9AzL+snaL0WawsL00v0nnuUZqqC0gAmrlJWLsDnfyU="; }; @@ -42,9 +42,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" ]; pythonImportsCheck = [ @@ -56,8 +55,8 @@ buildPythonPackage rec { meta = { description = "Tools for transcribing languages into IPA"; homepage = "https://github.com/dmort27/epitran"; - changelog = "https://github.com/dmort27/epitran/releases/tag/${src.tag}"; + changelog = "https://github.com/dmort27/epitran/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ vizid ]; }; -} +}) diff --git a/pkgs/development/python-modules/equinox/default.nix b/pkgs/development/python-modules/equinox/default.nix index c91178541946..c23828e95b2c 100644 --- a/pkgs/development/python-modules/equinox/default.nix +++ b/pkgs/development/python-modules/equinox/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "equinox"; version = "0.13.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "patrick-kidger"; diff --git a/pkgs/development/python-modules/error-helper/default.nix b/pkgs/development/python-modules/error-helper/default.nix index 4a93a3df9655..e2676939607d 100644 --- a/pkgs/development/python-modules/error-helper/default.nix +++ b/pkgs/development/python-modules/error-helper/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "error-helper"; version = "1.5"; pyproject = true; - __structuredAttrs = true; # GitHub source doesn't build correctly (fails imports check) src = fetchPypi { diff --git a/pkgs/development/python-modules/eth-hash/default.nix b/pkgs/development/python-modules/eth-hash/default.nix index c2d6683d349c..bb6598ee9600 100644 --- a/pkgs/development/python-modules/eth-hash/default.nix +++ b/pkgs/development/python-modules/eth-hash/default.nix @@ -51,8 +51,6 @@ buildPythonPackage rec { pysha3 = [ safe-pysha3 ]; }; - __structuredAttrs = true; - meta = { description = "Ethereum hashing function keccak256"; homepage = "https://github.com/ethereum/eth-hash"; diff --git a/pkgs/development/python-modules/etils/default.nix b/pkgs/development/python-modules/etils/default.nix index e2b8e82ee4ec..e02cc4f9200d 100644 --- a/pkgs/development/python-modules/etils/default.nix +++ b/pkgs/development/python-modules/etils/default.nix @@ -42,7 +42,6 @@ buildPythonPackage (finalAttrs: { pname = "etils"; version = "1.15.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google"; diff --git a/pkgs/development/python-modules/evosax/default.nix b/pkgs/development/python-modules/evosax/default.nix index e1ce23063204..29928dd0b7fd 100644 --- a/pkgs/development/python-modules/evosax/default.nix +++ b/pkgs/development/python-modules/evosax/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "evosax"; version = "0.3.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "RobertTLange"; diff --git a/pkgs/development/python-modules/exa-py/default.nix b/pkgs/development/python-modules/exa-py/default.nix index 3f94eafb6f5b..8c9f31c557e0 100644 --- a/pkgs/development/python-modules/exa-py/default.nix +++ b/pkgs/development/python-modules/exa-py/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "exa-py"; version = "2.25.0"; pyproject = true; - __structuredAttrs = true; # pypi doesn't include tests but there aren't any upstream git tags src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/executorch/default.nix b/pkgs/development/python-modules/executorch/default.nix index 436d63a0eb50..03f9b0dbb990 100644 --- a/pkgs/development/python-modules/executorch/default.nix +++ b/pkgs/development/python-modules/executorch/default.nix @@ -69,7 +69,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "executorch"; version = "1.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pytorch"; diff --git a/pkgs/development/python-modules/fabric/default.nix b/pkgs/development/python-modules/fabric/default.nix index 343271e7c36d..91afb0a913f9 100644 --- a/pkgs/development/python-modules/fabric/default.nix +++ b/pkgs/development/python-modules/fabric/default.nix @@ -18,7 +18,6 @@ buildPythonPackage rec { pname = "fabric"; version = "3.2.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "fabric"; diff --git a/pkgs/development/python-modules/facenet-pytorch/default.nix b/pkgs/development/python-modules/facenet-pytorch/default.nix index 893d5bf43f68..fd3faa8b2a65 100644 --- a/pkgs/development/python-modules/facenet-pytorch/default.nix +++ b/pkgs/development/python-modules/facenet-pytorch/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "facenet-pytorch"; version = "2.5.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "timesler"; diff --git a/pkgs/development/python-modules/faiss/default.nix b/pkgs/development/python-modules/faiss/default.nix index bf0f5dcdad32..76bb135148f8 100644 --- a/pkgs/development/python-modules/faiss/default.nix +++ b/pkgs/development/python-modules/faiss/default.nix @@ -12,7 +12,6 @@ buildPythonPackage { inherit (faiss-build) pname version; pyproject = true; - __structuredAttrs = true; src = "${lib.getOutput "dist" faiss-build}"; diff --git a/pkgs/development/python-modules/fake-http-header/default.nix b/pkgs/development/python-modules/fake-http-header/default.nix index 9f5e78110fe4..4c031ddea6d3 100644 --- a/pkgs/development/python-modules/fake-http-header/default.nix +++ b/pkgs/development/python-modules/fake-http-header/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.5-unstable-2025-07-09"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "MichaelTatarski"; repo = "fake-http-header"; diff --git a/pkgs/development/python-modules/fakeredis/default.nix b/pkgs/development/python-modules/fakeredis/default.nix index f29f01d2d577..24ba198e9cd3 100644 --- a/pkgs/development/python-modules/fakeredis/default.nix +++ b/pkgs/development/python-modules/fakeredis/default.nix @@ -66,6 +66,8 @@ buildPythonPackage (finalAttrs: { disabledTests = [ # redis.exceptions.ResponseError: unknown command 'evalsha' "test_async_lock" + # behavior change in latest valkey + "test_zinterstore_nan_to_zero" ]; preCheck = '' diff --git a/pkgs/development/python-modules/farama-notifications/default.nix b/pkgs/development/python-modules/farama-notifications/default.nix index c897be03b2ac..b400f52492da 100644 --- a/pkgs/development/python-modules/farama-notifications/default.nix +++ b/pkgs/development/python-modules/farama-notifications/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { pname = "farama-notifications"; version = "0.0.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Farama-Foundation"; diff --git a/pkgs/development/python-modules/fastai/default.nix b/pkgs/development/python-modules/fastai/default.nix index 2b0a59fc5371..7309fb241438 100644 --- a/pkgs/development/python-modules/fastai/default.nix +++ b/pkgs/development/python-modules/fastai/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "fastai"; version = "2.8.12"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "fastai"; diff --git a/pkgs/development/python-modules/fastapi-pagination/default.nix b/pkgs/development/python-modules/fastapi-pagination/default.nix index 666cd3a98c1f..48d06b8a1247 100644 --- a/pkgs/development/python-modules/fastapi-pagination/default.nix +++ b/pkgs/development/python-modules/fastapi-pagination/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "fastapi-pagination"; version = "0.16.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "uriyyo"; diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index dd805f9b5a4e..033864f50246 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -43,7 +43,6 @@ buildPythonPackage (finalAttrs: { pname = "fastapi"; version = "0.141.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tiangolo"; diff --git a/pkgs/development/python-modules/fastcan/default.nix b/pkgs/development/python-modules/fastcan/default.nix index 72fead1ef8af..c2ce30210138 100644 --- a/pkgs/development/python-modules/fastcan/default.nix +++ b/pkgs/development/python-modules/fastcan/default.nix @@ -52,6 +52,13 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTestPaths = [ + # ValueError: ndarray is not Fortran contiguous + "fastcan/tests/test_fastcan.py::test_indices_include_exclude" + "fastcan/tests/test_fastcan.py::test_ssc_consistent_with_cca" + "fastcan/tests/test_fastcan.py::test_h_eta_consistency" + ]; + pythonImportsCheck = [ "fastcan" ]; meta = { diff --git a/pkgs/development/python-modules/fastexcel/default.nix b/pkgs/development/python-modules/fastexcel/default.nix index 3a7abb4b32a1..519ec6e6505b 100644 --- a/pkgs/development/python-modules/fastexcel/default.nix +++ b/pkgs/development/python-modules/fastexcel/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "fastexcel"; version = "0.21.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ToucanToco"; diff --git a/pkgs/development/python-modules/fastjet/default.nix b/pkgs/development/python-modules/fastjet/default.nix index 6fe940ed4b32..26b6adb2d1fd 100644 --- a/pkgs/development/python-modules/fastjet/default.nix +++ b/pkgs/development/python-modules/fastjet/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "fastjet"; version = "3.5.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scikit-hep"; diff --git a/pkgs/development/python-modules/fastmcp/default.nix b/pkgs/development/python-modules/fastmcp/default.nix index 72e8cad889ec..31ceae12d38d 100644 --- a/pkgs/development/python-modules/fastmcp/default.nix +++ b/pkgs/development/python-modules/fastmcp/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "fastmcp"; version = "3.4.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "PrefectHQ"; diff --git a/pkgs/development/python-modules/fastmri/default.nix b/pkgs/development/python-modules/fastmri/default.nix index e2e7405041e0..5aeeee76243a 100644 --- a/pkgs/development/python-modules/fastmri/default.nix +++ b/pkgs/development/python-modules/fastmri/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "fastmri"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "facebookresearch"; diff --git a/pkgs/development/python-modules/fastspec/default.nix b/pkgs/development/python-modules/fastspec/default.nix index 26c522943992..5af3ffbbbe6a 100644 --- a/pkgs/development/python-modules/fastspec/default.nix +++ b/pkgs/development/python-modules/fastspec/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "AnswerDotAI"; repo = "fastspec"; diff --git a/pkgs/development/python-modules/fasttransport/default.nix b/pkgs/development/python-modules/fasttransport/default.nix index 7544133ba364..2b3bd5476db4 100644 --- a/pkgs/development/python-modules/fasttransport/default.nix +++ b/pkgs/development/python-modules/fasttransport/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "AnswerDotAI"; repo = "fasttransport"; diff --git a/pkgs/development/python-modules/ffmpeg-normalize/default.nix b/pkgs/development/python-modules/ffmpeg-normalize/default.nix index 04d91b197b4f..ee9bbd1289fe 100644 --- a/pkgs/development/python-modules/ffmpeg-normalize/default.nix +++ b/pkgs/development/python-modules/ffmpeg-normalize/default.nix @@ -17,8 +17,6 @@ buildPythonPackage rec { version = "1.37.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "slhck"; repo = "ffmpeg-normalize"; diff --git a/pkgs/development/python-modules/ffpyplayer/default.nix b/pkgs/development/python-modules/ffpyplayer/default.nix index ce6b9c326709..5d259e5c675e 100644 --- a/pkgs/development/python-modules/ffpyplayer/default.nix +++ b/pkgs/development/python-modules/ffpyplayer/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "ffpyplayer"; version = "4.5.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "matham"; diff --git a/pkgs/development/python-modules/fica/default.nix b/pkgs/development/python-modules/fica/default.nix index 7572997f8303..afe3adf8f16d 100644 --- a/pkgs/development/python-modules/fica/default.nix +++ b/pkgs/development/python-modules/fica/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "fica"; version = "0.4.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "chrispyles"; diff --git a/pkgs/development/python-modules/filelock/default.nix b/pkgs/development/python-modules/filelock/default.nix index dea52117c354..2023f48314e0 100644 --- a/pkgs/development/python-modules/filelock/default.nix +++ b/pkgs/development/python-modules/filelock/default.nix @@ -12,14 +12,14 @@ buildPythonPackage (finalAttrs: { pname = "filelock"; - version = "3.32.4"; + version = "4.2.4"; pyproject = true; src = fetchFromGitHub { owner = "tox-dev"; repo = "filelock"; tag = finalAttrs.version; - hash = "sha256-pYtfPduGEkE1cbyDn72SqAnLIg63+BwARpI10agdTIc="; + hash = "sha256-oN4nr4p/vPpg5620LEpqYILofYl2rpaPN5lJqySR6ZE="; }; build-system = [ @@ -45,7 +45,7 @@ buildPythonPackage (finalAttrs: { ]; meta = { - changelog = "https://github.com/tox-dev/filelock/releases/tag/${finalAttrs.version}"; + changelog = "https://github.com/tox-dev/filelock/blob/${finalAttrs.src.tag}/docs/changelog.rst"; description = "Platform independent file lock for Python"; homepage = "https://github.com/benediktschmitt/py-filelock"; license = lib.licenses.mit; diff --git a/pkgs/development/python-modules/finetuning-scheduler/default.nix b/pkgs/development/python-modules/finetuning-scheduler/default.nix index 71214506a82c..418a32beb1a1 100644 --- a/pkgs/development/python-modules/finetuning-scheduler/default.nix +++ b/pkgs/development/python-modules/finetuning-scheduler/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "finetuning-scheduler"; version = "2.14.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "speediedan"; diff --git a/pkgs/development/python-modules/finufft/default.nix b/pkgs/development/python-modules/finufft/default.nix index 3d3098cef57f..2a963429d758 100644 --- a/pkgs/development/python-modules/finufft/default.nix +++ b/pkgs/development/python-modules/finufft/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { inherit (finufft) version src; format = "other"; dontBuild = true; - __structuredAttrs = true; dependencies = [ numpy diff --git a/pkgs/development/python-modules/fireworks-ai/default.nix b/pkgs/development/python-modules/fireworks-ai/default.nix index 6b2b632a5648..749e8c1cdd20 100644 --- a/pkgs/development/python-modules/fireworks-ai/default.nix +++ b/pkgs/development/python-modules/fireworks-ai/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "fireworks-ai"; version = "1.2.26"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "fw-ai-external"; diff --git a/pkgs/development/python-modules/fitfile/default.nix b/pkgs/development/python-modules/fitfile/default.nix index c4cbac1206b1..de1ba5c84ded 100644 --- a/pkgs/development/python-modules/fitfile/default.nix +++ b/pkgs/development/python-modules/fitfile/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "tcgoetz"; repo = "fit"; diff --git a/pkgs/development/python-modules/flake8/default.nix b/pkgs/development/python-modules/flake8/default.nix index 40160357f658..7d13f6f02d9f 100644 --- a/pkgs/development/python-modules/flake8/default.nix +++ b/pkgs/development/python-modules/flake8/default.nix @@ -12,14 +12,14 @@ buildPythonPackage rec { pname = "flake8"; - version = "7.3.0"; + version = "7.4.1"; pyproject = true; src = fetchFromGitHub { owner = "PyCQA"; repo = "flake8"; tag = version; - hash = "sha256-dZFIGyjqkd+MRz9NoOEcMuR9ZshFb/h+zO2OJZsQajc="; + hash = "sha256-r8Wx+fE8GjwONe4dJgGww6M2nPH6bAqXcXp834epAjQ="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/flare-capa/default.nix b/pkgs/development/python-modules/flare-capa/default.nix index 0280b64be003..bb5bdea4a8f4 100644 --- a/pkgs/development/python-modules/flare-capa/default.nix +++ b/pkgs/development/python-modules/flare-capa/default.nix @@ -50,8 +50,6 @@ buildPythonPackage (finalAttrs: { version = "10.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "mandiant"; repo = "capa"; diff --git a/pkgs/development/python-modules/flash-attn-3/default.nix b/pkgs/development/python-modules/flash-attn-3/default.nix index 19b6b11082b3..a835a49207c3 100644 --- a/pkgs/development/python-modules/flash-attn-3/default.nix +++ b/pkgs/development/python-modules/flash-attn-3/default.nix @@ -22,7 +22,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "flash-attn-3"; version = "3.0.0-unstable-2026-06-10"; pyproject = true; - __structuredAttrs = true; # We fetch the vendored CUTLASS submodule rather than relying on `cudaPackages.cutlass`. # FA3 reaches deep into private cute/cutlass internals and is likely to be incompatible with diff --git a/pkgs/development/python-modules/flash-attn-4/default.nix b/pkgs/development/python-modules/flash-attn-4/default.nix index 1f25c55b40e7..81a27a11f66d 100644 --- a/pkgs/development/python-modules/flash-attn-4/default.nix +++ b/pkgs/development/python-modules/flash-attn-4/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "flash-attn-4"; version = "4.0.0.beta38"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Dao-AILab"; diff --git a/pkgs/development/python-modules/flash-attn/default.nix b/pkgs/development/python-modules/flash-attn/default.nix index 55053bb56417..b13d8e2a0283 100644 --- a/pkgs/development/python-modules/flash-attn/default.nix +++ b/pkgs/development/python-modules/flash-attn/default.nix @@ -32,7 +32,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "flash-attn"; version = "2.8.3.post2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Dao-AILab"; diff --git a/pkgs/development/python-modules/flash-linear-attention/default.nix b/pkgs/development/python-modules/flash-linear-attention/default.nix index cd9884d39816..1315814f983c 100644 --- a/pkgs/development/python-modules/flash-linear-attention/default.nix +++ b/pkgs/development/python-modules/flash-linear-attention/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "flash-linear-attention"; inherit (fla-core) version src; pyproject = true; - __structuredAttrs = true; # Only ships fla/{layers,models}. The rest of `fla` is provided by fla-core. postPatch = '' diff --git a/pkgs/development/python-modules/flash-mla/default.nix b/pkgs/development/python-modules/flash-mla/default.nix index 34533a683320..befb7ea200a2 100644 --- a/pkgs/development/python-modules/flash-mla/default.nix +++ b/pkgs/development/python-modules/flash-mla/default.nix @@ -30,7 +30,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "flash-mla"; version = "0-unstable-2026-04-29"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "deepseek-ai"; diff --git a/pkgs/development/python-modules/flashinfer-python/default.nix b/pkgs/development/python-modules/flashinfer-python/default.nix index cccf61350789..e5d618e54206 100644 --- a/pkgs/development/python-modules/flashinfer-python/default.nix +++ b/pkgs/development/python-modules/flashinfer-python/default.nix @@ -51,7 +51,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "flashinfer-python"; version = "0.7.2.post1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "flashinfer-ai"; diff --git a/pkgs/development/python-modules/flask-apscheduler/default.nix b/pkgs/development/python-modules/flask-apscheduler/default.nix index 2a86c5c30881..642e888a43d9 100644 --- a/pkgs/development/python-modules/flask-apscheduler/default.nix +++ b/pkgs/development/python-modules/flask-apscheduler/default.nix @@ -14,7 +14,6 @@ buildPythonPackage rec { pname = "flask-apscheduler"; version = "1.13.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "viniciuschiele"; diff --git a/pkgs/development/python-modules/flask-expects-json/default.nix b/pkgs/development/python-modules/flask-expects-json/default.nix index d104e9f3e5b4..3f39b543b5c7 100644 --- a/pkgs/development/python-modules/flask-expects-json/default.nix +++ b/pkgs/development/python-modules/flask-expects-json/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.7.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Fischerfredl"; repo = "flask-expects-json"; diff --git a/pkgs/development/python-modules/flask-ldap3-login/default.nix b/pkgs/development/python-modules/flask-ldap3-login/default.nix index 8562a54af000..1b5e4454c4d3 100644 --- a/pkgs/development/python-modules/flask-ldap3-login/default.nix +++ b/pkgs/development/python-modules/flask-ldap3-login/default.nix @@ -16,7 +16,6 @@ buildPythonPackage rec { pname = "flask-ldap3-login"; version = "1.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nickw444"; diff --git a/pkgs/development/python-modules/flask-session/default.nix b/pkgs/development/python-modules/flask-session/default.nix index 3f73e276b9c5..c2e7fcd81481 100644 --- a/pkgs/development/python-modules/flask-session/default.nix +++ b/pkgs/development/python-modules/flask-session/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, fetchFromGitHub, buildPythonPackage, @@ -67,8 +66,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - # Hang indefinitely - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); + doCheck = true; meta = { description = "Flask extension that adds support for server-side sessions"; diff --git a/pkgs/development/python-modules/flask-static-digest/default.nix b/pkgs/development/python-modules/flask-static-digest/default.nix index e22833682455..7d6b3b44b79c 100644 --- a/pkgs/development/python-modules/flask-static-digest/default.nix +++ b/pkgs/development/python-modules/flask-static-digest/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "flask-static-digest"; version = "0.4.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nickjj"; diff --git a/pkgs/development/python-modules/flax/default.nix b/pkgs/development/python-modules/flax/default.nix index d5a73c4ccde6..88d7fdcfcb1b 100644 --- a/pkgs/development/python-modules/flax/default.nix +++ b/pkgs/development/python-modules/flax/default.nix @@ -38,7 +38,6 @@ buildPythonPackage (finalAttrs: { pname = "flax"; version = "0.12.12"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google"; diff --git a/pkgs/development/python-modules/formulas/default.nix b/pkgs/development/python-modules/formulas/default.nix index 9e9fd8db0ebf..45d71a7c4ff7 100644 --- a/pkgs/development/python-modules/formulas/default.nix +++ b/pkgs/development/python-modules/formulas/default.nix @@ -47,7 +47,6 @@ buildPythonPackage (finalAttrs: { pname = "formulas"; version = "1.3.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "vinci1it2000"; diff --git a/pkgs/development/python-modules/foss-flame/default.nix b/pkgs/development/python-modules/foss-flame/default.nix index e5d125716872..9c3ce73def53 100644 --- a/pkgs/development/python-modules/foss-flame/default.nix +++ b/pkgs/development/python-modules/foss-flame/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "foss-flame"; version = "0.21.8"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/fpdf2/default.nix b/pkgs/development/python-modules/fpdf2/default.nix index 888b5e0b7381..47a8b23a7fc6 100644 --- a/pkgs/development/python-modules/fpdf2/default.nix +++ b/pkgs/development/python-modules/fpdf2/default.nix @@ -17,14 +17,14 @@ buildPythonPackage rec { pname = "fpdf2"; - version = "2.8.9"; + version = "2.9.0"; pyproject = true; src = fetchFromGitHub { owner = "py-pdf"; repo = "fpdf2"; tag = version; - hash = "sha256-bMVi0ZNV9Al9dxH8t801y4zkJpNmQUVTeMoOh+DDzFA="; + hash = "sha256-/B+1NnNbahQe0Yc5wr7SzwUsugJRnTPc0JcMtY7OsKw="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/frictionless/default.nix b/pkgs/development/python-modules/frictionless/default.nix index 83b2e5aee9af..8e7b9986cbde 100644 --- a/pkgs/development/python-modules/frictionless/default.nix +++ b/pkgs/development/python-modules/frictionless/default.nix @@ -75,7 +75,6 @@ buildPythonPackage (finalAttrs: { pname = "frictionless"; version = "5.19.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "frictionlessdata"; diff --git a/pkgs/development/python-modules/friendly-traceback/default.nix b/pkgs/development/python-modules/friendly-traceback/default.nix index 652d8b32c481..54274a63f96a 100644 --- a/pkgs/development/python-modules/friendly-traceback/default.nix +++ b/pkgs/development/python-modules/friendly-traceback/default.nix @@ -14,7 +14,6 @@ buildPythonPackage { pname = "friendly-traceback"; version = "0-unstable-2025-04-13"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "friendly-traceback"; diff --git a/pkgs/development/python-modules/funsor/default.nix b/pkgs/development/python-modules/funsor/default.nix index 430e5df516bc..482fa0dabe61 100644 --- a/pkgs/development/python-modules/funsor/default.nix +++ b/pkgs/development/python-modules/funsor/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "funsor"; version = "0.4.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyro-ppl"; diff --git a/pkgs/development/python-modules/fuzzywuzzy/default.nix b/pkgs/development/python-modules/fuzzywuzzy/default.nix index 21b3fc9d7f7b..ad0895512792 100644 --- a/pkgs/development/python-modules/fuzzywuzzy/default.nix +++ b/pkgs/development/python-modules/fuzzywuzzy/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.18.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "fuzzywuzzy"; diff --git a/pkgs/development/python-modules/g2pkk/default.nix b/pkgs/development/python-modules/g2pkk/default.nix index a8799b75e2ec..aeb9c57d8eb8 100644 --- a/pkgs/development/python-modules/g2pkk/default.nix +++ b/pkgs/development/python-modules/g2pkk/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-YarV1Btn1x3Sm4Vw/JDSyJy3ZJMXAQHZJJJklSG0R+Q="; diff --git a/pkgs/development/python-modules/gcsfs/default.nix b/pkgs/development/python-modules/gcsfs/default.nix index 4a234157ded6..cebd466f1070 100644 --- a/pkgs/development/python-modules/gcsfs/default.nix +++ b/pkgs/development/python-modules/gcsfs/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "gcsfs"; version = "2026.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "fsspec"; diff --git a/pkgs/development/python-modules/gensim/default.nix b/pkgs/development/python-modules/gensim/default.nix index 9f962fe3ef5d..342ecb2d018c 100644 --- a/pkgs/development/python-modules/gensim/default.nix +++ b/pkgs/development/python-modules/gensim/default.nix @@ -24,8 +24,6 @@ buildPythonPackage (finalAttrs: { version = "4.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "piskvorky"; repo = "gensim"; diff --git a/pkgs/development/python-modules/geoarrow-pyarrow/default.nix b/pkgs/development/python-modules/geoarrow-pyarrow/default.nix index d77398ec5d0e..678f6640c5d5 100644 --- a/pkgs/development/python-modules/geoarrow-pyarrow/default.nix +++ b/pkgs/development/python-modules/geoarrow-pyarrow/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "geoarrow-pyarrow"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { repo = "geoarrow-python"; diff --git a/pkgs/development/python-modules/geoarrow-rust/default.nix b/pkgs/development/python-modules/geoarrow-rust/default.nix index 32161008b20e..711af3e1d30a 100644 --- a/pkgs/development/python-modules/geoarrow-rust/default.nix +++ b/pkgs/development/python-modules/geoarrow-rust/default.nix @@ -69,7 +69,6 @@ let sourceRoot = "${src.name}/python/${subdir}"; cargoRoot = ".."; - __structuredAttrs = true; nativeBuildInputs = with rustPlatform; [ cargoSetupHook diff --git a/pkgs/development/python-modules/geopandas/default.nix b/pkgs/development/python-modules/geopandas/default.nix index 08701406775a..dd0ea0aa62f8 100644 --- a/pkgs/development/python-modules/geopandas/default.nix +++ b/pkgs/development/python-modules/geopandas/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "geopandas"; version = "1.1.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "geopandas"; diff --git a/pkgs/development/python-modules/geopy/default.nix b/pkgs/development/python-modules/geopy/default.nix index 3914d857d799..9be68280d5f9 100644 --- a/pkgs/development/python-modules/geopy/default.nix +++ b/pkgs/development/python-modules/geopy/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "2.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "geopy"; repo = "geopy"; diff --git a/pkgs/development/python-modules/gepa/default.nix b/pkgs/development/python-modules/gepa/default.nix index ced60e9dd8d5..e95d5753a79e 100644 --- a/pkgs/development/python-modules/gepa/default.nix +++ b/pkgs/development/python-modules/gepa/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "gepa"; version = "0.1.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "gepa-ai"; diff --git a/pkgs/development/python-modules/gftools/default.nix b/pkgs/development/python-modules/gftools/default.nix index ca0596e09e8b..021b53b683e1 100644 --- a/pkgs/development/python-modules/gftools/default.nix +++ b/pkgs/development/python-modules/gftools/default.nix @@ -63,8 +63,6 @@ buildPythonPackage rec { version = "0.10.7"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "googlefonts"; repo = "gftools"; diff --git a/pkgs/development/python-modules/ggml-python/default.nix b/pkgs/development/python-modules/ggml-python/default.nix index acb346e7486a..0acddc64b843 100644 --- a/pkgs/development/python-modules/ggml-python/default.nix +++ b/pkgs/development/python-modules/ggml-python/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "ggml-python"; version = "0.0.45"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "abetlen"; diff --git a/pkgs/development/python-modules/gibberish-detector/default.nix b/pkgs/development/python-modules/gibberish-detector/default.nix index 522a7fcb4224..d126d6b5dc7f 100644 --- a/pkgs/development/python-modules/gibberish-detector/default.nix +++ b/pkgs/development/python-modules/gibberish-detector/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "domanchi"; repo = "gibberish-detector"; diff --git a/pkgs/development/python-modules/gilknocker/default.nix b/pkgs/development/python-modules/gilknocker/default.nix index 6b733d96efed..c3ce5e82d4bf 100644 --- a/pkgs/development/python-modules/gilknocker/default.nix +++ b/pkgs/development/python-modules/gilknocker/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "gilknocker"; version = "0.4.2-post3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "milesgranger"; diff --git a/pkgs/development/python-modules/git-dummy/default.nix b/pkgs/development/python-modules/git-dummy/default.nix index 4a5c6e4c3325..f3b71d669b30 100644 --- a/pkgs/development/python-modules/git-dummy/default.nix +++ b/pkgs/development/python-modules/git-dummy/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "git-dummy"; version = "0.1.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "initialcommit-com"; diff --git a/pkgs/development/python-modules/gliner/default.nix b/pkgs/development/python-modules/gliner/default.nix index 36e1e87e3749..8bb158e82408 100644 --- a/pkgs/development/python-modules/gliner/default.nix +++ b/pkgs/development/python-modules/gliner/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "gliner"; version = "0.2.30"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "urchade"; diff --git a/pkgs/development/python-modules/gluonts/default.nix b/pkgs/development/python-modules/gluonts/default.nix index fd823790f17c..052c502d65a3 100644 --- a/pkgs/development/python-modules/gluonts/default.nix +++ b/pkgs/development/python-modules/gluonts/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "gluonts"; version = "0.17.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "awslabs"; diff --git a/pkgs/development/python-modules/google-ai-generativelanguage/default.nix b/pkgs/development/python-modules/google-ai-generativelanguage/default.nix index df97942fa166..eb576e6f2ffd 100644 --- a/pkgs/development/python-modules/google-ai-generativelanguage/default.nix +++ b/pkgs/development/python-modules/google-ai-generativelanguage/default.nix @@ -22,14 +22,14 @@ buildPythonPackage (finalAttrs: { pname = "google-ai-generativelanguage"; - version = "0.12.0"; + version = "0.12.1"; pyproject = true; src = fetchFromGitHub { owner = "googleapis"; repo = "google-cloud-python"; tag = "google-ai-generativelanguage-v${finalAttrs.version}"; - hash = "sha256-M/7uDWWz4YCfxa4gyM9BaAo10iyTMvtR2MhNpdFYnis="; + hash = "sha256-b0FYupZU0ZNeIL9xJIqEXgg7ToRCQLjiswJ67YzX7OI="; }; sourceRoot = "${finalAttrs.src.name}/packages/google-ai-generativelanguage"; diff --git a/pkgs/development/python-modules/google-auth/default.nix b/pkgs/development/python-modules/google-auth/default.nix index 749c9f4dc194..c3300ac871c6 100644 --- a/pkgs/development/python-modules/google-auth/default.nix +++ b/pkgs/development/python-modules/google-auth/default.nix @@ -27,14 +27,14 @@ buildPythonPackage rec { pname = "google-auth"; - version = "2.50.0"; + version = "2.57.0"; pyproject = true; src = fetchFromGitHub { owner = "googleapis"; repo = "google-cloud-python"; tag = "google-auth-v${version}"; - hash = "sha256-Z3TsDEtDDfXO23gOlmEM5O4a9qS2+fTB7g0vJ4dOFH4="; + hash = "sha256-0g0uTpt03BrFLJ7vGptrUy3pVx8EAOKYV+uB2bJTJNQ="; }; sourceRoot = "${src.name}/packages/google-auth"; diff --git a/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix index e10f2d5e3850..67aa528a6503 100644 --- a/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix +++ b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix @@ -14,13 +14,13 @@ buildPythonPackage rec { pname = "google-cloud-artifact-registry"; - version = "1.22.0"; + version = "1.23.0"; pyproject = true; src = fetchPypi { pname = "google_cloud_artifact_registry"; inherit version; - hash = "sha256-DoFzqXrmld/PAsgyd6D9V04aOb5AnaY0W5Rb6+V3rZQ="; + hash = "sha256-PeA29DdEMfdCp8FH6Bm7FgpU0JiuEcVnq2XvHfX9JzQ="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/google-cloud-compute/default.nix b/pkgs/development/python-modules/google-cloud-compute/default.nix index 0e23f48da94c..ce8a08833276 100644 --- a/pkgs/development/python-modules/google-cloud-compute/default.nix +++ b/pkgs/development/python-modules/google-cloud-compute/default.nix @@ -13,13 +13,13 @@ buildPythonPackage rec { pname = "google-cloud-compute"; - version = "1.42.0"; + version = "1.56.0"; pyproject = true; src = fetchPypi { pname = "google_cloud_compute"; inherit version; - hash = "sha256-CLHbxXWLqlSRCHvO+1dOWdkRUgtxTtp5tOvxy0KdjZg="; + hash = "sha256-rWM5y65nl51skTH9eVy/rN657CTHjJwAcso3zDhfrjA="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/google-cloud-datacatalog/default.nix b/pkgs/development/python-modules/google-cloud-datacatalog/default.nix index 599dd3073cd2..6dba0af22fa8 100644 --- a/pkgs/development/python-modules/google-cloud-datacatalog/default.nix +++ b/pkgs/development/python-modules/google-cloud-datacatalog/default.nix @@ -16,14 +16,14 @@ buildPythonPackage (finalAttrs: { pname = "google-cloud-datacatalog"; - version = "3.31.0"; + version = "3.32.0"; pyproject = true; src = fetchFromGitHub { owner = "googleapis"; repo = "google-cloud-python"; tag = "google-cloud-datacatalog-v${finalAttrs.version}"; - hash = "sha256-M/7uDWWz4YCfxa4gyM9BaAo10iyTMvtR2MhNpdFYnis="; + hash = "sha256-b0FYupZU0ZNeIL9xJIqEXgg7ToRCQLjiswJ67YzX7OI="; }; sourceRoot = "${finalAttrs.src.name}/packages/google-cloud-datacatalog"; @@ -56,6 +56,7 @@ buildPythonPackage (finalAttrs: { skipBulkUpdate = true; updateScript = nix-update-script { extraArgs = [ + "--use-github-releases" "--version-regex" "google-cloud-datacatalog-v([0-9.]+)" ]; diff --git a/pkgs/development/python-modules/google-cloud-iam/default.nix b/pkgs/development/python-modules/google-cloud-iam/default.nix index b1108657a84f..f6ac9bbdb0fc 100644 --- a/pkgs/development/python-modules/google-cloud-iam/default.nix +++ b/pkgs/development/python-modules/google-cloud-iam/default.nix @@ -17,14 +17,14 @@ buildPythonPackage rec { pname = "google-cloud-iam"; - version = "2.24.0"; + version = "2.26.0"; pyproject = true; src = fetchFromGitHub { owner = "googleapis"; repo = "google-cloud-python"; tag = "google-cloud-iam-v${version}"; - hash = "sha256-ywRS1BfK6s+gcU8QRem0cSnfZq4BUQ2ABNcgnOa01LI="; + hash = "sha256-b0FYupZU0ZNeIL9xJIqEXgg7ToRCQLjiswJ67YzX7OI="; }; sourceRoot = "${src.name}/packages/google-cloud-iam"; diff --git a/pkgs/development/python-modules/google-cloud-kms/default.nix b/pkgs/development/python-modules/google-cloud-kms/default.nix index 7afa896fad59..b5390d1f3c04 100644 --- a/pkgs/development/python-modules/google-cloud-kms/default.nix +++ b/pkgs/development/python-modules/google-cloud-kms/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "google-cloud-kms"; - version = "3.14.0"; + version = "3.18.0"; pyproject = true; src = fetchFromGitHub { owner = "googleapis"; repo = "google-cloud-python"; tag = "google-cloud-kms-v${version}"; - hash = "sha256-ywRS1BfK6s+gcU8QRem0cSnfZq4BUQ2ABNcgnOa01LI="; + hash = "sha256-b0FYupZU0ZNeIL9xJIqEXgg7ToRCQLjiswJ67YzX7OI="; }; sourceRoot = "${src.name}/packages/google-cloud-kms"; diff --git a/pkgs/development/python-modules/google-cloud-monitoring/default.nix b/pkgs/development/python-modules/google-cloud-monitoring/default.nix index ceeb26b8db3f..f1230faedec7 100644 --- a/pkgs/development/python-modules/google-cloud-monitoring/default.nix +++ b/pkgs/development/python-modules/google-cloud-monitoring/default.nix @@ -15,13 +15,13 @@ buildPythonPackage (finalAttrs: { pname = "google-cloud-monitoring"; - version = "2.31.0"; + version = "2.32.0"; pyproject = true; src = fetchPypi { pname = "google_cloud_monitoring"; inherit (finalAttrs) version; - hash = "sha256-tMnTUoyGQ9TrS51ojLs8WRS8X2mzFP98XhtHvcBzqa4="; + hash = "sha256-UHUBzhw5FhwHF1T37RTNUneItOpEodBSvYFcEVpw6kg="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/google-play-scraper/default.nix b/pkgs/development/python-modules/google-play-scraper/default.nix index 3821ff5c4a9b..37b3d509ecd8 100644 --- a/pkgs/development/python-modules/google-play-scraper/default.nix +++ b/pkgs/development/python-modules/google-play-scraper/default.nix @@ -9,7 +9,6 @@ buildPythonPackage { pname = "google-play-scraper"; version = "1.2.7-unstable-2024-06-07"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "JoMingyu"; diff --git a/pkgs/development/python-modules/gpuctypes/default.nix b/pkgs/development/python-modules/gpuctypes/default.nix index e66bd124f35f..05af1fbbaca1 100644 --- a/pkgs/development/python-modules/gpuctypes/default.nix +++ b/pkgs/development/python-modules/gpuctypes/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "gpuctypes"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { repo = "gpuctypes"; diff --git a/pkgs/development/python-modules/gpxpy/default.nix b/pkgs/development/python-modules/gpxpy/default.nix index 9dadc39692bb..aa1583270b7f 100644 --- a/pkgs/development/python-modules/gpxpy/default.nix +++ b/pkgs/development/python-modules/gpxpy/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "gpxpy"; version = "1.6.2"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/gpytorch/default.nix b/pkgs/development/python-modules/gpytorch/default.nix index a2256c02a1ce..3e43646b5baf 100644 --- a/pkgs/development/python-modules/gpytorch/default.nix +++ b/pkgs/development/python-modules/gpytorch/default.nix @@ -66,14 +66,6 @@ buildPythonPackage (finalAttrs: { "test_half" ]; - disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Hang forever - "test/examples/test_spectral_mixture_gp_regression.py" - "test/kernels/test_spectral_mixture_kernel.py" - "test/utils/test_nearest_neighbors.py" - "test/variational/test_nearest_neighbor_variational_strategy.py" - ]; - meta = { description = "Highly efficient and modular implementation of Gaussian Processes, with GPU acceleration"; homepage = "https://gpytorch.ai"; diff --git a/pkgs/development/python-modules/gradio/default.nix b/pkgs/development/python-modules/gradio/default.nix index ede774967a31..bc4ed5ae3b28 100644 --- a/pkgs/development/python-modules/gradio/default.nix +++ b/pkgs/development/python-modules/gradio/default.nix @@ -84,7 +84,6 @@ buildPythonPackage (finalAttrs: { pname = "gradio"; version = "6.29.0"; # please always backport gradio changes pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "gradio-app"; diff --git a/pkgs/development/python-modules/graph-tool/default.nix b/pkgs/development/python-modules/graph-tool/default.nix index 2dc0c6d62a57..f9feb2b043b4 100644 --- a/pkgs/development/python-modules/graph-tool/default.nix +++ b/pkgs/development/python-modules/graph-tool/default.nix @@ -38,8 +38,6 @@ buildPythonPackage (finalAttrs: { version = "3.9"; pyproject = false; - __structuredAttrs = true; - src = fetchurl { url = "https://downloads.skewed.de/graph-tool/graph-tool-${finalAttrs.version}.tar.bz2"; hash = "sha256-gSqzV1yuE91vqtluTZMnl6enGoRICh6su4dPLrr8fGk="; diff --git a/pkgs/development/python-modules/graphqlclient/default.nix b/pkgs/development/python-modules/graphqlclient/default.nix index 2a8263a79ffc..efa282e7b544 100644 --- a/pkgs/development/python-modules/graphqlclient/default.nix +++ b/pkgs/development/python-modules/graphqlclient/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "graphqlclient"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/greek-accentuation/default.nix b/pkgs/development/python-modules/greek-accentuation/default.nix index fb7838425bff..9f8391af57e1 100644 --- a/pkgs/development/python-modules/greek-accentuation/default.nix +++ b/pkgs/development/python-modules/greek-accentuation/default.nix @@ -9,8 +9,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "greek-accentuation"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/green/default.nix b/pkgs/development/python-modules/green/default.nix index 9e5d11b502b5..e32e675551e0 100644 --- a/pkgs/development/python-modules/green/default.nix +++ b/pkgs/development/python-modules/green/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "4.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "green"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/greenlet/default.nix b/pkgs/development/python-modules/greenlet/default.nix index 6b44c66a2070..6a785a6065d6 100644 --- a/pkgs/development/python-modules/greenlet/default.nix +++ b/pkgs/development/python-modules/greenlet/default.nix @@ -15,13 +15,14 @@ }: let - greenlet = buildPythonPackage rec { + greenlet = buildPythonPackage (finalAttrs: { pname = "greenlet"; version = "3.5.5"; pyproject = true; src = fetchPypi { - inherit pname version; + pname = "greenlet"; + inherit (finalAttrs) version; hash = "sha256-rbS64C6RqOhj5IsXfkAUvcrIprXgR+od9oemFTS4Xmw="; }; @@ -45,7 +46,7 @@ let pushd ${placeholder "out"}/${python.sitePackages} ''; - unittestFlagsArray = [ "greenlet.tests" ]; + unittestFlags = [ "--start-directory=greenlet.tests" ]; postCheck = '' popd @@ -56,7 +57,7 @@ let }); meta = { - changelog = "https://github.com/python-greenlet/greenlet/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/python-greenlet/greenlet/blob/${finalAttrs.version}/CHANGES.rst"; homepage = "https://github.com/python-greenlet/greenlet"; description = "Module for lightweight in-process concurrent programming"; license = with lib.licenses; [ @@ -64,6 +65,6 @@ let mit ]; }; - }; + }); in greenlet diff --git a/pkgs/development/python-modules/gremlinpython/default.nix b/pkgs/development/python-modules/gremlinpython/default.nix index bf2ea26c0709..285f113817d9 100644 --- a/pkgs/development/python-modules/gremlinpython/default.nix +++ b/pkgs/development/python-modules/gremlinpython/default.nix @@ -15,7 +15,6 @@ }: buildPythonPackage rec { - __structuredAttrs = true; pname = "gremlinpython"; version = "3.8.2"; diff --git a/pkgs/development/python-modules/grequests/default.nix b/pkgs/development/python-modules/grequests/default.nix index dbe51a167420..19b9ec7f714f 100644 --- a/pkgs/development/python-modules/grequests/default.nix +++ b/pkgs/development/python-modules/grequests/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "grequests"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/grip/default.nix b/pkgs/development/python-modules/grip/default.nix index 53a81d5003e8..8f992e9df07c 100644 --- a/pkgs/development/python-modules/grip/default.nix +++ b/pkgs/development/python-modules/grip/default.nix @@ -22,8 +22,6 @@ buildPythonPackage (finalAttrs: { version = "4.6.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "joeyespo"; repo = "grip"; diff --git a/pkgs/development/python-modules/groestlcoin-hash/default.nix b/pkgs/development/python-modules/groestlcoin-hash/default.nix index 4806e76b6182..d036f6064990 100644 --- a/pkgs/development/python-modules/groestlcoin-hash/default.nix +++ b/pkgs/development/python-modules/groestlcoin-hash/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "groestlcoin_hash"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/grpcio-channelz/default.nix b/pkgs/development/python-modules/grpcio-channelz/default.nix index 5e674eaccd94..a64457914d9c 100644 --- a/pkgs/development/python-modules/grpcio-channelz/default.nix +++ b/pkgs/development/python-modules/grpcio-channelz/default.nix @@ -12,13 +12,13 @@ # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-channelz"; - version = "1.84.0"; + version = "1.84.1"; pyproject = true; src = fetchPypi { pname = "grpcio_channelz"; inherit version; - hash = "sha256-hCIO8ufsCjeSoVG2/7xwaRvw8JzQCf5zTylGuRdWVpQ="; + hash = "sha256-A9IIVBW94OMFFeTkKdDWjSVHGqBiRijOM12S9A+ERfk="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/grpcio-gcp/default.nix b/pkgs/development/python-modules/grpcio-gcp/default.nix index 7664744bc6c8..475acf2345b2 100644 --- a/pkgs/development/python-modules/grpcio-gcp/default.nix +++ b/pkgs/development/python-modules/grpcio-gcp/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "grpcio-gcp"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/grpcio-health-checking/default.nix b/pkgs/development/python-modules/grpcio-health-checking/default.nix index 665cb0577dc8..40b1e3bcb11f 100644 --- a/pkgs/development/python-modules/grpcio-health-checking/default.nix +++ b/pkgs/development/python-modules/grpcio-health-checking/default.nix @@ -11,13 +11,13 @@ # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-health-checking"; - version = "1.84.0"; + version = "1.84.1"; format = "setuptools"; src = fetchPypi { pname = "grpcio_health_checking"; inherit version; - hash = "sha256-xp6jd1pfkM0JTylIWd/QFQpWD3EBqJNr97Tgi3GGoU4="; + hash = "sha256-97211YZc8qZlH/wcyDdfypVVV/cvrFkCy09STQndZOo="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/grpcio-reflection/default.nix b/pkgs/development/python-modules/grpcio-reflection/default.nix index 793c3e7ae9bc..f4a2bfa155d3 100644 --- a/pkgs/development/python-modules/grpcio-reflection/default.nix +++ b/pkgs/development/python-modules/grpcio-reflection/default.nix @@ -12,13 +12,13 @@ # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-reflection"; - version = "1.84.0"; + version = "1.84.1"; pyproject = true; src = fetchPypi { pname = "grpcio_reflection"; inherit version; - hash = "sha256-Br89fYzvmvvMch7lIZFlK0SDgxd0JV4XRASw4FUXQbw="; + hash = "sha256-CdcmQvurr0X4+5yGsNPPRZRft8fBxKLdMyHf2wXL4vg="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/grpcio-status/default.nix b/pkgs/development/python-modules/grpcio-status/default.nix index c84e1a0007ef..675b1b7b3283 100644 --- a/pkgs/development/python-modules/grpcio-status/default.nix +++ b/pkgs/development/python-modules/grpcio-status/default.nix @@ -12,13 +12,13 @@ # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-status"; - version = "1.84.0"; + version = "1.84.1"; format = "setuptools"; src = fetchPypi { pname = "grpcio_status"; inherit version; - hash = "sha256-XK8ounGEuB9hi19/CUhZ/SVBv0KdIYm7vNcVycLNzuI="; + hash = "sha256-aQ7PR2yC1tmHA6gFeMwOxtC1IiGH94O9AVir0oOWy0I="; }; postPatch = '' diff --git a/pkgs/development/python-modules/grpcio-testing/default.nix b/pkgs/development/python-modules/grpcio-testing/default.nix index 817108ca63a6..10873d70d57d 100644 --- a/pkgs/development/python-modules/grpcio-testing/default.nix +++ b/pkgs/development/python-modules/grpcio-testing/default.nix @@ -12,13 +12,13 @@ # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-testing"; - version = "1.84.0"; + version = "1.84.1"; pyproject = true; src = fetchPypi { pname = "grpcio_testing"; inherit version; - hash = "sha256-QT0NHlyGab385gx380aoBryPcUtZfJC/IA9D3sYGJFg="; + hash = "sha256-LwZS368ySLe3ETXtK1BaVNRjfQLnOrOtWxfy0YQjPtw="; }; postPatch = '' diff --git a/pkgs/development/python-modules/grpcio-tools/default.nix b/pkgs/development/python-modules/grpcio-tools/default.nix index 82623084dfed..6100c9f5cb33 100644 --- a/pkgs/development/python-modules/grpcio-tools/default.nix +++ b/pkgs/development/python-modules/grpcio-tools/default.nix @@ -13,13 +13,13 @@ # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-tools"; - version = "1.84.0"; + version = "1.84.1"; pyproject = true; src = fetchPypi { pname = "grpcio_tools"; inherit version; - hash = "sha256-IQrFrJgDVpSQ7DNXS36ZW8CHgVsA2bd34BNMq17Zo3k="; + hash = "sha256-yooybfNEESfWcJ2ZJ3SES7SW2zCwj3btXRqRIIngPyw="; }; postPatch = '' diff --git a/pkgs/development/python-modules/grpcio/default.nix b/pkgs/development/python-modules/grpcio/default.nix index 6e85ffd1f59f..7968e33125e4 100644 --- a/pkgs/development/python-modules/grpcio/default.nix +++ b/pkgs/development/python-modules/grpcio/default.nix @@ -18,12 +18,12 @@ # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio"; - version = "1.84.0"; + version = "1.84.1"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-Garxcvwu2+/Mzj9uksUVCXXb5WxFdE6eh89y69+Fv74="; + hash = "sha256-RG54drm5kfoSTB1BSJn6fPlfiaPnEjfqAWGGPcCywJ8="; }; postPatch = '' diff --git a/pkgs/development/python-modules/gtts-token/default.nix b/pkgs/development/python-modules/gtts-token/default.nix index 11eef7782fc5..4a9fc1062b40 100644 --- a/pkgs/development/python-modules/gtts-token/default.nix +++ b/pkgs/development/python-modules/gtts-token/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "boudewijn26"; repo = "gTTS-token"; diff --git a/pkgs/development/python-modules/guessit/default.nix b/pkgs/development/python-modules/guessit/default.nix index d57a95009c9a..10f49b023a16 100644 --- a/pkgs/development/python-modules/guessit/default.nix +++ b/pkgs/development/python-modules/guessit/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "4.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "guessit"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/gviz-api/default.nix b/pkgs/development/python-modules/gviz-api/default.nix index 9486849445d1..7aeeb15fbda0 100644 --- a/pkgs/development/python-modules/gviz-api/default.nix +++ b/pkgs/development/python-modules/gviz-api/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.10.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-hGaS3YzHMiT8MbGOQVib2TThzAUJDGV2r0tLJsLnG5A="; diff --git a/pkgs/development/python-modules/gymnasium/default.nix b/pkgs/development/python-modules/gymnasium/default.nix index adee12c61634..3cf34a5ec3a5 100644 --- a/pkgs/development/python-modules/gymnasium/default.nix +++ b/pkgs/development/python-modules/gymnasium/default.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "gymnasium"; version = "1.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Farama-Foundation"; diff --git a/pkgs/development/python-modules/hakuin/default.nix b/pkgs/development/python-modules/hakuin/default.nix index 1f760768a110..0ebd4e0b74a5 100644 --- a/pkgs/development/python-modules/hakuin/default.nix +++ b/pkgs/development/python-modules/hakuin/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "pruzko"; repo = "hakuin"; diff --git a/pkgs/development/python-modules/harlequin-odbc/default.nix b/pkgs/development/python-modules/harlequin-odbc/default.nix index dbaa4a720fc1..4cbbc77e4bcc 100644 --- a/pkgs/development/python-modules/harlequin-odbc/default.nix +++ b/pkgs/development/python-modules/harlequin-odbc/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "harlequin-odbc"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tconbeer"; diff --git a/pkgs/development/python-modules/hatchling/default.nix b/pkgs/development/python-modules/hatchling/default.nix index 6b92181d680d..217361b822d3 100644 --- a/pkgs/development/python-modules/hatchling/default.nix +++ b/pkgs/development/python-modules/hatchling/default.nix @@ -20,12 +20,12 @@ buildPythonPackage (finalAttrs: { pname = "hatchling"; - version = "1.31.0"; + version = "1.32.0"; pyproject = true; src = fetchPypi { inherit (finalAttrs) pname version; - hash = "sha256-a0itQGikgu1yObOoIVvFW0eq0zRdWN/JTlU8XS1GIRs="; + hash = "sha256-C9veSlKwbDfj7KOV+Fp2K/DvBv43T9iuQp3GvhAjD18="; }; # listed in backend/pyproject.toml diff --git a/pkgs/development/python-modules/hebi-py/default.nix b/pkgs/development/python-modules/hebi-py/default.nix index 93f90a100c12..a5c4ad7fb7df 100644 --- a/pkgs/development/python-modules/hebi-py/default.nix +++ b/pkgs/development/python-modules/hebi-py/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { hash = "sha256-KvAUshMFDu+QCQcdSI2i4SmnLm+sOMPvu8JUCs912Go="; }; - __structuredAttrs = true; build-system = [ setuptools patchelfUnstable # Depends on --clear-execstack which is not in any tagged release yet diff --git a/pkgs/development/python-modules/hepdata-converter/default.nix b/pkgs/development/python-modules/hepdata-converter/default.nix index 1dc289c89e32..6ba25d5c48c6 100644 --- a/pkgs/development/python-modules/hepdata-converter/default.nix +++ b/pkgs/development/python-modules/hepdata-converter/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "hepdata-converter"; version = "0.3.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "HEPData"; diff --git a/pkgs/development/python-modules/hepdata-lib/default.nix b/pkgs/development/python-modules/hepdata-lib/default.nix index f1b22015df34..deb4b02a6b58 100644 --- a/pkgs/development/python-modules/hepdata-lib/default.nix +++ b/pkgs/development/python-modules/hepdata-lib/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "hepdata_lib"; version = "0.21.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "HEPData"; diff --git a/pkgs/development/python-modules/hepdata-validator/default.nix b/pkgs/development/python-modules/hepdata-validator/default.nix index a2b4bcd2524c..c07d048d3f3c 100644 --- a/pkgs/development/python-modules/hepdata-validator/default.nix +++ b/pkgs/development/python-modules/hepdata-validator/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "hepdata-validator"; version = "0.3.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "HEPData"; diff --git a/pkgs/development/python-modules/heretic-llm/default.nix b/pkgs/development/python-modules/heretic-llm/default.nix index df322e60aca3..b524a235f443 100644 --- a/pkgs/development/python-modules/heretic-llm/default.nix +++ b/pkgs/development/python-modules/heretic-llm/default.nix @@ -32,8 +32,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "p-e-w"; repo = "heretic"; diff --git a/pkgs/development/python-modules/hf-gradio/default.nix b/pkgs/development/python-modules/hf-gradio/default.nix index 7dfd59ce40a9..899896b88997 100644 --- a/pkgs/development/python-modules/hf-gradio/default.nix +++ b/pkgs/development/python-modules/hf-gradio/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "hf-gradio"; version = "0.4.1"; pyproject = true; - __structuredAttrs = true; # No tags on GitHub # https://github.com/gradio-app/hf-gradio/issues/2 diff --git a/pkgs/development/python-modules/hf-xet/default.nix b/pkgs/development/python-modules/hf-xet/default.nix index 4b586bb7d4f0..d988e927824a 100644 --- a/pkgs/development/python-modules/hf-xet/default.nix +++ b/pkgs/development/python-modules/hf-xet/default.nix @@ -4,7 +4,7 @@ fetchFromGitHub, pkg-config, rustPlatform, - openssl, + aws-lc, # tests cacert, @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "hf-xet"; version = "1.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; @@ -44,11 +43,9 @@ buildPythonPackage (finalAttrs: { ]; buildInputs = [ - openssl + aws-lc ]; - env.OPENSSL_NO_VENDOR = 1; - pythonImportsCheck = [ "hf_xet" ]; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/hist/default.nix b/pkgs/development/python-modules/hist/default.nix index 0acb768093bd..fb2505248d9f 100644 --- a/pkgs/development/python-modules/hist/default.nix +++ b/pkgs/development/python-modules/hist/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "hist"; version = "2.12.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scikit-hep"; diff --git a/pkgs/development/python-modules/hmmlearn/default.nix b/pkgs/development/python-modules/hmmlearn/default.nix index 2ab1afc02de0..657556bcfe0d 100644 --- a/pkgs/development/python-modules/hmmlearn/default.nix +++ b/pkgs/development/python-modules/hmmlearn/default.nix @@ -50,6 +50,8 @@ buildPythonPackage (finalAttrs: { pytestFlags = [ "--pyargs" "hmmlearn" + # DeprecationWarning: Setting the shape on a NumPy array has been deprecated + "-Wignore::DeprecationWarning" ]; meta = { diff --git a/pkgs/development/python-modules/hnswlib/default.nix b/pkgs/development/python-modules/hnswlib/default.nix index f3196685d3bd..c8cfea93f707 100644 --- a/pkgs/development/python-modules/hnswlib/default.nix +++ b/pkgs/development/python-modules/hnswlib/default.nix @@ -20,9 +20,9 @@ buildPythonPackage { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "tests/python" - "--pattern 'bindings_test*.py'" + unittestFlags = [ + "--start-directory=tests/python" + "--pattern=bindings_test*.py" ]; pythonImportsCheck = [ "hnswlib" ]; diff --git a/pkgs/development/python-modules/holoviews/default.nix b/pkgs/development/python-modules/holoviews/default.nix index 5e99d68eb4a1..3d64f204617b 100644 --- a/pkgs/development/python-modules/holoviews/default.nix +++ b/pkgs/development/python-modules/holoviews/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "holoviews"; version = "1.23.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "holoviz"; diff --git a/pkgs/development/python-modules/hoptorch/default.nix b/pkgs/development/python-modules/hoptorch/default.nix index 6c15e10de20b..ee136ae5a8cd 100644 --- a/pkgs/development/python-modules/hoptorch/default.nix +++ b/pkgs/development/python-modules/hoptorch/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "hoptorch"; version = "0.1.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "vmoens"; diff --git a/pkgs/development/python-modules/htmlgen/default.nix b/pkgs/development/python-modules/htmlgen/default.nix index 06dd10d30eb5..df0185d8bc35 100644 --- a/pkgs/development/python-modules/htmlgen/default.nix +++ b/pkgs/development/python-modules/htmlgen/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "htmlgen"; version = "2.0.0"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/http-tools/default.nix b/pkgs/development/python-modules/http-tools/default.nix index a4dbdc91e5a7..5f3d702bf5e6 100644 --- a/pkgs/development/python-modules/http-tools/default.nix +++ b/pkgs/development/python-modules/http-tools/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "http-tools"; version = "6.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "MobSF"; diff --git a/pkgs/development/python-modules/httpcore2/default.nix b/pkgs/development/python-modules/httpcore2/default.nix index f888b9cb524e..defacf585f6e 100644 --- a/pkgs/development/python-modules/httpcore2/default.nix +++ b/pkgs/development/python-modules/httpcore2/default.nix @@ -90,7 +90,6 @@ buildPythonPackage (finalAttrs: { }; __darwinAllowLocalNetworking = true; - __structuredAttrs = true; meta = { description = "A next generation HTTP client for Python"; diff --git a/pkgs/development/python-modules/httplib2shim/default.nix b/pkgs/development/python-modules/httplib2shim/default.nix index b11ceba962db..38911b1ed02d 100644 --- a/pkgs/development/python-modules/httplib2shim/default.nix +++ b/pkgs/development/python-modules/httplib2shim/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "GoogleCloudPlatform"; repo = "httplib2shim"; diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 1fbeb83e6aa8..c2af61fcd52e 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -65,7 +65,7 @@ buildPythonPackage rec { }; # trustme uses pyopenssl - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; nativeCheckInputs = [ chardet diff --git a/pkgs/development/python-modules/httpx2-pytest/default.nix b/pkgs/development/python-modules/httpx2-pytest/default.nix new file mode 100644 index 000000000000..4663ceead684 --- /dev/null +++ b/pkgs/development/python-modules/httpx2-pytest/default.nix @@ -0,0 +1,58 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + httpx2, + pytest, + + # check inputs + pytestCheckHook, + pytest-asyncio, + pytest-cov-stub, +}: + +# CAUTION: There is also a `pytest-httpx2` repo that exposes a different API. +buildPythonPackage (finalAttrs: { + pname = "httpx2-pytest"; + version = "2.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "angryfoxx"; + repo = "httpx2-pytest"; + tag = "v${finalAttrs.version}"; + hash = "sha256-EWoigrWtUVTBePEDAeJjeWnD+afEGs0wdSSY1RW5Q1w="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + httpx2 + pytest + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + pytest-cov-stub + ]; + + pythonImportsCheck = [ + "pytest_httpx2" + ]; + + meta = { + description = "Pytest-httpx fork for httpx2"; + homepage = "https://github.com/angryfoxx/httpx2-pytest"; + changelog = "https://github.com/angryfoxx/httpx2-pytest/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ sarahec ]; + }; +}) diff --git a/pkgs/development/python-modules/httpx2/default.nix b/pkgs/development/python-modules/httpx2/default.nix index 1f102c2173a8..56248cdfed2a 100644 --- a/pkgs/development/python-modules/httpx2/default.nix +++ b/pkgs/development/python-modules/httpx2/default.nix @@ -18,6 +18,7 @@ idna, # optional dependencies + backports-zstd, brotli, brotlicffi, click, @@ -26,7 +27,6 @@ rich, socksio, wsproto, - zstandard, # tests chardet, @@ -80,7 +80,7 @@ buildPythonPackage (finalAttrs: { http2 = [ h2 ]; socks = [ socksio ]; ws = [ wsproto ]; - zstd = lib.optionals (pythonOlder "3.14") [ zstandard ]; + zstd = lib.optionals (pythonOlder "3.14") [ backports-zstd ]; }; pythonImportsCheck = [ @@ -127,7 +127,6 @@ buildPythonPackage (finalAttrs: { }; __darwinAllowLocalNetworking = true; - __structuredAttrs = true; meta = { description = "A next generation HTTP client for Python"; diff --git a/pkgs/development/python-modules/huggingface-hub/default.nix b/pkgs/development/python-modules/huggingface-hub/default.nix index 04ba3d3f5b39..91c63e2727c8 100644 --- a/pkgs/development/python-modules/huggingface-hub/default.nix +++ b/pkgs/development/python-modules/huggingface-hub/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "huggingface-hub"; version = "2.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; diff --git a/pkgs/development/python-modules/hvplot/default.nix b/pkgs/development/python-modules/hvplot/default.nix index d74f699a0e80..da95dc44a9a6 100644 --- a/pkgs/development/python-modules/hvplot/default.nix +++ b/pkgs/development/python-modules/hvplot/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "hvplot"; version = "0.12.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "holoviz"; diff --git a/pkgs/development/python-modules/hydra-core/default.nix b/pkgs/development/python-modules/hydra-core/default.nix index ba3b417d887b..bf80bfb70c7a 100644 --- a/pkgs/development/python-modules/hydra-core/default.nix +++ b/pkgs/development/python-modules/hydra-core/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "hydra-core"; version = "1.3.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "facebookresearch"; diff --git a/pkgs/development/python-modules/hyperscan/default.nix b/pkgs/development/python-modules/hyperscan/default.nix index 747ca37bc0dd..20c8c4196a59 100644 --- a/pkgs/development/python-modules/hyperscan/default.nix +++ b/pkgs/development/python-modules/hyperscan/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "hyperscan"; version = "0.8.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "darvid"; diff --git a/pkgs/development/python-modules/hypothesis-jsonschema/default.nix b/pkgs/development/python-modules/hypothesis-jsonschema/default.nix index e57b566a2874..9a85974119ad 100644 --- a/pkgs/development/python-modules/hypothesis-jsonschema/default.nix +++ b/pkgs/development/python-modules/hypothesis-jsonschema/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.23.1"; pyproject = true; - __structuredAttrs = true; - # no git tags src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix index c94b4c916df1..f31279b145e4 100644 --- a/pkgs/development/python-modules/hypothesis/default.nix +++ b/pkgs/development/python-modules/hypothesis/default.nix @@ -20,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "6.168.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "HypothesisWorks"; repo = "hypothesis"; diff --git a/pkgs/development/python-modules/ibind/default.nix b/pkgs/development/python-modules/ibind/default.nix index 2dd1597e4275..3e18b4a54887 100644 --- a/pkgs/development/python-modules/ibind/default.nix +++ b/pkgs/development/python-modules/ibind/default.nix @@ -22,8 +22,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.22"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Voyz"; repo = "ibind"; diff --git a/pkgs/development/python-modules/ida-domain/default.nix b/pkgs/development/python-modules/ida-domain/default.nix index f23b15c7fcd3..cf35a33dfb84 100644 --- a/pkgs/development/python-modules/ida-domain/default.nix +++ b/pkgs/development/python-modules/ida-domain/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "HexRaysSA"; repo = "ida-domain"; diff --git a/pkgs/development/python-modules/ida-netnode/default.nix b/pkgs/development/python-modules/ida-netnode/default.nix index 42d75c4068c1..b96715d412b0 100644 --- a/pkgs/development/python-modules/ida-netnode/default.nix +++ b/pkgs/development/python-modules/ida-netnode/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "williballenthin"; repo = "ida-netnode"; diff --git a/pkgs/development/python-modules/ida-settings/default.nix b/pkgs/development/python-modules/ida-settings/default.nix index 1dbe81d800a7..154c5dfc35b1 100644 --- a/pkgs/development/python-modules/ida-settings/default.nix +++ b/pkgs/development/python-modules/ida-settings/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "3.5.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "williballenthin"; repo = "ida-settings"; diff --git a/pkgs/development/python-modules/idapro/default.nix b/pkgs/development/python-modules/idapro/default.nix index fb6dece8b7c8..38fd0024ffe6 100644 --- a/pkgs/development/python-modules/idapro/default.nix +++ b/pkgs/development/python-modules/idapro/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.12"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-1vEdUSamuat/AWVzxnSjtapFzzhYn4s9GyhMHI/M1p8="; diff --git a/pkgs/development/python-modules/idna/default.nix b/pkgs/development/python-modules/idna/default.nix index a8bda9b6f28f..6f665a2b3a67 100644 --- a/pkgs/development/python-modules/idna/default.nix +++ b/pkgs/development/python-modules/idna/default.nix @@ -3,26 +3,39 @@ buildPythonPackage, fetchFromGitHub, flit-core, + hypothesis, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "idna"; - version = "3.18"; + version = "3.20"; pyproject = true; src = fetchFromGitHub { owner = "kjd"; repo = "idna"; tag = "v${finalAttrs.version}"; - hash = "sha256-9nLy/9PNuLSQJsf4Jes0uN695+LGjz2LXlfiZxxvGV4="; + hash = "sha256-RLwFtWOxsf0s1DI5sdwYY/DuXbhyADqAbp0arREIc30="; }; build-system = [ flit-core ]; pythonImportsCheck = [ "idna" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; + + # infinite recursion via hypothesis + doCheck = false; + + passthru.tests = { + pytest = finalAttrs.finalPackage.overrideAttrs { + doInstallCheck = true; + }; + }; meta = { homepage = "https://github.com/kjd/idna/"; diff --git a/pkgs/development/python-modules/imbalanced-learn/default.nix b/pkgs/development/python-modules/imbalanced-learn/default.nix index f4e92b53fada..048c12b9bc34 100644 --- a/pkgs/development/python-modules/imbalanced-learn/default.nix +++ b/pkgs/development/python-modules/imbalanced-learn/default.nix @@ -29,6 +29,10 @@ buildPythonPackage rec { hash = "sha256-uWln6+r9QsGnH4I4JQm2/y80zTQkAflVPlIN9KQNzy0="; }; + postPatch = '' + echo '${version}' > imblearn/VERSION.txt + ''; + build-system = [ setuptools setuptools-scm diff --git a/pkgs/development/python-modules/indicio/default.nix b/pkgs/development/python-modules/indicio/default.nix index 432b74a63936..a5d7031c3f07 100644 --- a/pkgs/development/python-modules/indicio/default.nix +++ b/pkgs/development/python-modules/indicio/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "indicio"; version = "1.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromCodeberg { owner = "victorpoughon"; diff --git a/pkgs/development/python-modules/infisicalsdk/default.nix b/pkgs/development/python-modules/infisicalsdk/default.nix index 6dff77f43118..af7591e6f173 100644 --- a/pkgs/development/python-modules/infisicalsdk/default.nix +++ b/pkgs/development/python-modules/infisicalsdk/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.17"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Infisical"; repo = "python-sdk-official"; diff --git a/pkgs/development/python-modules/ini2toml/default.nix b/pkgs/development/python-modules/ini2toml/default.nix index e0f80f92afd0..310b829eecf3 100644 --- a/pkgs/development/python-modules/ini2toml/default.nix +++ b/pkgs/development/python-modules/ini2toml/default.nix @@ -23,8 +23,6 @@ buildPythonPackage (finalAttrs: { version = "0.16"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "abravalheri"; repo = "ini2toml"; diff --git a/pkgs/development/python-modules/insightface/default.nix b/pkgs/development/python-modules/insightface/default.nix index 95fdb9f918b4..2fd0961b4d91 100644 --- a/pkgs/development/python-modules/insightface/default.nix +++ b/pkgs/development/python-modules/insightface/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "insightface"; version = "1.0.1"; pyproject = true; - __structuredAttrs = true; # No tags on GitHub src = fetchPypi { diff --git a/pkgs/development/python-modules/intake/default.nix b/pkgs/development/python-modules/intake/default.nix index 0165169406a6..afa6cc993447 100644 --- a/pkgs/development/python-modules/intake/default.nix +++ b/pkgs/development/python-modules/intake/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "intake"; version = "2.0.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "intake"; diff --git a/pkgs/development/python-modules/interruptingcow/default.nix b/pkgs/development/python-modules/interruptingcow/default.nix index acb943c58880..8f167693e94b 100644 --- a/pkgs/development/python-modules/interruptingcow/default.nix +++ b/pkgs/development/python-modules/interruptingcow/default.nix @@ -9,8 +9,6 @@ buildPythonPackage (finalAttrs: { version = "0.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-PozVBYtlHmJXAsulPjsft216XsB6tpxSoWep94TjMGw="; diff --git a/pkgs/development/python-modules/intersphinx-registry/default.nix b/pkgs/development/python-modules/intersphinx-registry/default.nix index a2c7d3ca3e84..88d64ae1161d 100644 --- a/pkgs/development/python-modules/intersphinx-registry/default.nix +++ b/pkgs/development/python-modules/intersphinx-registry/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "intersphinx-registry"; version = "0.2705.27"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Quansight-labs"; diff --git a/pkgs/development/python-modules/inventree/default.nix b/pkgs/development/python-modules/inventree/default.nix index ef66862333ac..6a74998ea5a9 100644 --- a/pkgs/development/python-modules/inventree/default.nix +++ b/pkgs/development/python-modules/inventree/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "inventree"; version = "0.23.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "inventree"; diff --git a/pkgs/development/python-modules/ipydatagrid/default.nix b/pkgs/development/python-modules/ipydatagrid/default.nix index 909eb2ffb0f2..2c51bc936924 100644 --- a/pkgs/development/python-modules/ipydatagrid/default.nix +++ b/pkgs/development/python-modules/ipydatagrid/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "ipydatagrid"; version = "1.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyter-widgets"; diff --git a/pkgs/development/python-modules/ipydatawidgets/default.nix b/pkgs/development/python-modules/ipydatawidgets/default.nix index 68a1e2967d8a..05c282cecaec 100644 --- a/pkgs/development/python-modules/ipydatawidgets/default.nix +++ b/pkgs/development/python-modules/ipydatawidgets/default.nix @@ -12,7 +12,6 @@ }: buildPythonPackage rec { - __structuredAttrs = true; pname = "ipydatawidgets"; version = "4.3.5"; diff --git a/pkgs/development/python-modules/ipykernel/default.nix b/pkgs/development/python-modules/ipykernel/default.nix index 5d1945a46b45..dd8193ca1086 100644 --- a/pkgs/development/python-modules/ipykernel/default.nix +++ b/pkgs/development/python-modules/ipykernel/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "ipykernel"; version = "7.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/ipympl/default.nix b/pkgs/development/python-modules/ipympl/default.nix index c0cc3253b979..8f20837d27d9 100644 --- a/pkgs/development/python-modules/ipympl/default.nix +++ b/pkgs/development/python-modules/ipympl/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "ipympl"; version = "0.10.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "matplotlib"; diff --git a/pkgs/development/python-modules/ipytablewidgets/default.nix b/pkgs/development/python-modules/ipytablewidgets/default.nix index 99d36b764805..df92ab364326 100644 --- a/pkgs/development/python-modules/ipytablewidgets/default.nix +++ b/pkgs/development/python-modules/ipytablewidgets/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "ipytablewidgets"; version = "0.3.4"; pyproject = true; - __structuredAttrs = true; # The GitHub tarball does not ship the pre-built labextension assets, which # `jupyter_packaging` requires at build time. Only the sdist does. diff --git a/pkgs/development/python-modules/islpy/default.nix b/pkgs/development/python-modules/islpy/default.nix index 23fb30ef3781..6861a545b936 100644 --- a/pkgs/development/python-modules/islpy/default.nix +++ b/pkgs/development/python-modules/islpy/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "islpy"; version = "2026.2.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "inducer"; diff --git a/pkgs/development/python-modules/iso639-lang/default.nix b/pkgs/development/python-modules/iso639-lang/default.nix index 3ab1e8357a63..2591d2bf310f 100644 --- a/pkgs/development/python-modules/iso639-lang/default.nix +++ b/pkgs/development/python-modules/iso639-lang/default.nix @@ -11,8 +11,6 @@ buildPythonPackage rec { version = "2.6.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "LBeaudoux"; repo = "iso639"; diff --git a/pkgs/development/python-modules/isocodes/default.nix b/pkgs/development/python-modules/isocodes/default.nix index 5d6f88da1955..ca45568d0915 100644 --- a/pkgs/development/python-modules/isocodes/default.nix +++ b/pkgs/development/python-modules/isocodes/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "isocodes"; version = "2026.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Atem18"; diff --git a/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix b/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix index affa3461f26a..7877d90afe5c 100644 --- a/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix +++ b/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix @@ -47,7 +47,6 @@ buildPythonPackage (finalAttrs: { pname = "jax-cuda12-pjrt"; inherit version; pyproject = false; - __structuredAttrs = true; src = fetchPypi { pname = "jax_cuda12_pjrt"; diff --git a/pkgs/development/python-modules/jax-cuda12-plugin/default.nix b/pkgs/development/python-modules/jax-cuda12-plugin/default.nix index a2cbc8d9b506..55411b28ca42 100644 --- a/pkgs/development/python-modules/jax-cuda12-plugin/default.nix +++ b/pkgs/development/python-modules/jax-cuda12-plugin/default.nix @@ -43,7 +43,6 @@ buildPythonPackage { pname = "jax-cuda12-plugin"; inherit version; pyproject = false; - __structuredAttrs = true; src = fetchPypi { pname = "jax_cuda12_plugin"; diff --git a/pkgs/development/python-modules/jax-cuda13-pjrt/default.nix b/pkgs/development/python-modules/jax-cuda13-pjrt/default.nix index 30b3b301e1b2..1ec23dff40de 100644 --- a/pkgs/development/python-modules/jax-cuda13-pjrt/default.nix +++ b/pkgs/development/python-modules/jax-cuda13-pjrt/default.nix @@ -47,7 +47,6 @@ buildPythonPackage (finalAttrs: { pname = "jax-cuda13-pjrt"; inherit version; pyproject = false; - __structuredAttrs = true; src = fetchPypi { pname = "jax_cuda13_pjrt"; diff --git a/pkgs/development/python-modules/jax-cuda13-plugin/default.nix b/pkgs/development/python-modules/jax-cuda13-plugin/default.nix index 59be239c33fc..742c9b5461c3 100644 --- a/pkgs/development/python-modules/jax-cuda13-plugin/default.nix +++ b/pkgs/development/python-modules/jax-cuda13-plugin/default.nix @@ -43,7 +43,6 @@ buildPythonPackage { pname = "jax-cuda13-plugin"; inherit version; pyproject = false; - __structuredAttrs = true; src = fetchPypi { pname = "jax_cuda13_plugin"; diff --git a/pkgs/development/python-modules/jax-tap/default.nix b/pkgs/development/python-modules/jax-tap/default.nix index a92bbea958f9..7d8c468f8e4a 100644 --- a/pkgs/development/python-modules/jax-tap/default.nix +++ b/pkgs/development/python-modules/jax-tap/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "jax-tap"; version = "0.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "arcueil"; diff --git a/pkgs/development/python-modules/jax/default.nix b/pkgs/development/python-modules/jax/default.nix index 21d858d6fd2b..6acd44c2a3c4 100644 --- a/pkgs/development/python-modules/jax/default.nix +++ b/pkgs/development/python-modules/jax/default.nix @@ -46,7 +46,6 @@ buildPythonPackage (finalAttrs: { pname = "jax"; version = "0.12.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google"; diff --git a/pkgs/development/python-modules/jaxlib/bin.nix b/pkgs/development/python-modules/jaxlib/bin.nix index 0377e9b5fd66..1eef9834745b 100644 --- a/pkgs/development/python-modules/jaxlib/bin.nix +++ b/pkgs/development/python-modules/jaxlib/bin.nix @@ -98,8 +98,6 @@ buildPythonPackage { inherit version; format = "wheel"; - __structuredAttrs = true; - # See https://discourse.nixos.org/t/ofborg-does-not-respect-meta-platforms/27019/6. src = ( srcs."${pythonVersion}-${stdenv.hostPlatform.system}" diff --git a/pkgs/development/python-modules/jaxlib/default.nix b/pkgs/development/python-modules/jaxlib/default.nix index 767d8f5a1aee..25313e7a1af3 100644 --- a/pkgs/development/python-modules/jaxlib/default.nix +++ b/pkgs/development/python-modules/jaxlib/default.nix @@ -426,8 +426,6 @@ let platformTag = if effectiveStdenv.hostPlatform.isLinux then "manylinux2014_${arch}" - else if effectiveStdenv.system == "x86_64-darwin" then - "macosx_10_9_${arch}" else if effectiveStdenv.system == "aarch64-darwin" then "macosx_11_0_${arch}" else diff --git a/pkgs/development/python-modules/jaxtyping/default.nix b/pkgs/development/python-modules/jaxtyping/default.nix index 19df15b2aa7b..b7f84316813b 100644 --- a/pkgs/development/python-modules/jaxtyping/default.nix +++ b/pkgs/development/python-modules/jaxtyping/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "jaxtyping"; version = "0.3.11"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "patrick-kidger"; diff --git a/pkgs/development/python-modules/jiter/Cargo.lock b/pkgs/development/python-modules/jiter/Cargo.lock index b2a86580589f..6847248d23b0 100644 --- a/pkgs/development/python-modules/jiter/Cargo.lock +++ b/pkgs/development/python-modules/jiter/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "ahash" @@ -9,7 +9,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" dependencies = [ "cfg-if", - "getrandom", + "getrandom 0.3.4", "once_cell", "version_check", "zerocopy", @@ -17,9 +17,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" dependencies = [ "memchr", ] @@ -32,27 +32,57 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" [[package]] name = "anstyle" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" [[package]] -name = "arbitrary" -version = "1.4.2" +name = "anyhow" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "approx" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +dependencies = [ + "num-traits", +] [[package]] name = "autocfg" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" [[package]] name = "bitvec" -version = "1.0.1" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +checksum = "ddcec3d12c579d40898fe0a9a358a803c23e9c52ca3c425707f81c9436211837" dependencies = [ "funty", "radium", @@ -62,9 +92,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.19.0" +version = "3.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" [[package]] name = "cast" @@ -74,21 +104,25 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.2.45" +version = "1.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35900b6c8d709fb1d854671ae27aeaa9eec2f8b01b364e1619a40da3e6fe2afe" +checksum = "a3eb0f42d6c360dc3f8a821f6bf2fdea7f72bfd36b3076eb0e6d1e9e0752fff4" dependencies = [ "find-msvc-tools", - "jobserver", - "libc", "shlex", ] [[package]] name = "cfg-if" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" [[package]] name = "ciborium" @@ -119,18 +153,18 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.51" +version = "4.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c26d721170e0295f191a69bd9a1f93efcdb0aff38684b61ab5750468972e5f5" +checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.5.51" +version = "4.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75835f0c7bf681bfd05abe44e965760fea999a5286c6eb2d59883634fd02011a" +checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d" dependencies = [ "anstyle", "clap_lex", @@ -138,39 +172,46 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.6" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" +checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" [[package]] name = "codspeed" -version = "2.10.1" +version = "5.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93f4cce9c27c49c4f101fffeebb1826f41a9df2e7498b7cd4d95c0658b796c6c" +checksum = "c0379da47d0de730b2f7900e3f2d9c3b5efc21b46875282305300b4851f03e70" dependencies = [ + "anyhow", + "cc", "colored", + "getrandom 0.4.3", + "glob", "libc", + "nix", "serde", "serde_json", - "uuid", + "statrs", ] [[package]] name = "codspeed-criterion-compat" -version = "2.10.1" +version = "5.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3c23d880a28a2aab52d38ca8481dd7a3187157d0a952196b6db1db3c8499725" +checksum = "65f64942456bd4514b06ba4c72623bf197931d05d3d1db61b8a0c6289b30b2c7" dependencies = [ + "clap", "codspeed", "codspeed-criterion-compat-walltime", "colored", + "regex", ] [[package]] name = "codspeed-criterion-compat-walltime" -version = "2.10.1" +version = "5.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b0a2f7365e347f4f22a67e9ea689bf7bc89900a354e22e26cf8a531a42c8fbb" +checksum = "e86691354129085562c025293f9e8b35bf9054813bb9981be3a96aa8490c07d1" dependencies = [ "anes", "cast", @@ -195,12 +236,11 @@ dependencies = [ [[package]] name = "colored" -version = "2.2.0" +version = "3.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c" +checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" dependencies = [ - "lazy_static", - "windows-sys 0.59.0", + "windows-sys", ] [[package]] @@ -215,9 +255,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.6" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" dependencies = [ "crossbeam-epoch", "crossbeam-utils", @@ -225,18 +265,18 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.18" +version = "0.9.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" dependencies = [ "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.21" +version = "0.8.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" [[package]] name = "crunchy" @@ -246,9 +286,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "either" -version = "1.15.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" +checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34" [[package]] name = "equivalent" @@ -257,10 +297,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] -name = "find-msvc-tools" -version = "0.1.4" +name = "errno" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "find-msvc-tools" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "funty" @@ -269,16 +331,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] -name = "fuzz" -version = "0.12.0" +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" dependencies = [ - "indexmap", - "jiter", - "libfuzzer-sys", - "num-bigint", - "num-traits", - "serde", - "serde_json", + "futures-core", + "futures-task", + "pin-project-lite", + "slab", ] [[package]] @@ -289,10 +362,27 @@ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", "libc", - "r-efi", + "r-efi 5.3.0", "wasip2", ] +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + [[package]] name = "half" version = "2.7.1" @@ -306,9 +396,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.16.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" [[package]] name = "heck" @@ -318,29 +408,20 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" [[package]] name = "indexmap" -version = "2.12.0" +version = "2.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" dependencies = [ "equivalent", "hashbrown", ] -[[package]] -name = "indoc" -version = "2.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706" -dependencies = [ - "rustversion", -] - [[package]] name = "is-terminal" version = "0.4.17" @@ -349,7 +430,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46" dependencies = [ "hermit-abi", "libc", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -363,13 +444,13 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.15" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "jiter" -version = "0.12.0" +version = "0.17.0" dependencies = [ "ahash", "bitvec", @@ -378,6 +459,7 @@ dependencies = [ "num-bigint", "num-traits", "paste", + "proptest", "pyo3", "pyo3-build-config", "serde", @@ -387,38 +469,23 @@ dependencies = [ [[package]] name = "jiter-python" -version = "0.12.0" +version = "0.17.0" dependencies = [ "jiter", "pyo3", ] -[[package]] -name = "jobserver" -version = "0.1.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" -dependencies = [ - "getrandom", - "libc", -] - [[package]] name = "js-sys" -version = "0.3.82" +version = "0.3.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65" +checksum = "ce57d20d1ea864ce2ac172ab472d409214f4fd359f0b2a2775abdf522e2af99e" dependencies = [ - "once_cell", + "cfg-if", + "futures-util", "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" - [[package]] name = "lexical-parse-float" version = "1.0.6" @@ -446,40 +513,39 @@ checksum = "2604dd126bb14f13fb5d1bd6a66155079cb9fa655b37f875b3a742c705dbed17" [[package]] name = "libc" -version = "0.2.177" +version = "0.2.189" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" [[package]] -name = "libfuzzer-sys" -version = "0.4.10" +name = "linux-raw-sys" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5037190e1f70cbeef565bd267599242926f724d3b8a9f510fd7e0b540cfa4404" -dependencies = [ - "arbitrary", - "cc", -] +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "memchr" -version = "2.7.6" +version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] -name = "memoffset" -version = "0.9.1" +name = "nix" +version = "0.31.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" dependencies = [ - "autocfg", + "bitflags", + "cfg-if", + "cfg_aliases", + "libc", ] [[package]] name = "num-bigint" -version = "0.4.6" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367" dependencies = [ "num-integer", "num-traits", @@ -487,9 +553,9 @@ dependencies = [ [[package]] name = "num-integer" -version = "0.1.46" +version = "0.1.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b" dependencies = [ "num-traits", ] @@ -505,9 +571,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.21.3" +version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "oorandom" @@ -521,6 +587,12 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + [[package]] name = "plotters" version = "0.3.7" @@ -551,28 +623,54 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.11.1" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] [[package]] name = "proc-macro2" -version = "1.0.103" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" dependencies = [ "unicode-ident", ] [[package]] -name = "pyo3" -version = "0.27.1" +name = "proptest" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37a6df7eab65fc7bee654a421404947e10a0f7085b6951bf2ea395f4659fb0cf" +checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744" +dependencies = [ + "bit-set", + "bit-vec", + "bitflags", + "num-traits", + "rand", + "rand_chacha", + "rand_xorshift", + "regex-syntax", + "rusty-fork", + "tempfile", + "unarray", +] + +[[package]] +name = "pyo3" +version = "0.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b" dependencies = [ - "indoc", "libc", - "memoffset", "num-bigint", "num-traits", "once_cell", @@ -580,24 +678,22 @@ dependencies = [ "pyo3-build-config", "pyo3-ffi", "pyo3-macros", - "unindent", ] [[package]] name = "pyo3-build-config" -version = "0.27.1" +version = "0.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f77d387774f6f6eec64a004eac0ed525aab7fa1966d94b42f743797b3e395afb" +checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9" dependencies = [ - "python3-dll-a", "target-lexicon", ] [[package]] name = "pyo3-ffi" -version = "0.27.1" +version = "0.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dd13844a4242793e02df3e2ec093f540d948299a6a77ea9ce7afd8623f542be" +checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327" dependencies = [ "libc", "pyo3-build-config", @@ -605,43 +701,39 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.27.1" +version = "0.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaf8f9f1108270b90d3676b8679586385430e5c0bb78bb5f043f95499c821a71" +checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c" dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn", + "syn 2.0.119", ] [[package]] name = "pyo3-macros-backend" -version = "0.27.1" +version = "0.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a3b2274450ba5288bc9b8c1b69ff569d1d61189d4bff38f8d22e03d17f932b" +checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952" dependencies = [ "heck", "proc-macro2", - "pyo3-build-config", "quote", - "syn", + "syn 2.0.119", ] [[package]] -name = "python3-dll-a" -version = "0.2.14" +name = "quick-error" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8" -dependencies = [ - "cc", -] +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] name = "quote" -version = "1.0.42" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" dependencies = [ "proc-macro2", ] @@ -652,6 +744,12 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "radium" version = "0.7.0" @@ -659,10 +757,48 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] -name = "rayon" -version = "1.11.0" +name = "rand" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f" +checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "rand_xorshift" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" +dependencies = [ + "rand_core", +] + +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" dependencies = [ "either", "rayon-core", @@ -680,9 +816,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.12.2" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" dependencies = [ "aho-corasick", "memchr", @@ -692,9 +828,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.13" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" dependencies = [ "aho-corasick", "memchr", @@ -703,21 +839,40 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.8" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "rustix" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] [[package]] name = "rustversion" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" [[package]] -name = "ryu" -version = "1.0.20" +name = "rusty-fork" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" +checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2" +dependencies = [ + "fnv", + "quick-error", + "tempfile", + "wait-timeout", +] [[package]] name = "same-file" @@ -730,9 +885,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" dependencies = [ "serde_core", "serde_derive", @@ -740,55 +895,82 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", ] [[package]] name = "serde_json" -version = "1.0.145" +version = "1.0.151" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" dependencies = [ "indexmap", "itoa", "memchr", - "ryu", "serde", "serde_core", + "zmij", ] [[package]] name = "shlex" -version = "1.3.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.15.1" +version = "1.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" +checksum = "ba467056f1b547ed52077911161fc86985becbc60e8e1857c8a144dab0def891" + +[[package]] +name = "statrs" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a3fe7c28c6512e766b0874335db33c94ad7b8f9054228ae1c2abd47ce7d335e" +dependencies = [ + "approx", + "num-traits", +] [[package]] name = "syn" -version = "2.0.110" +version = "2.0.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" dependencies = [ "proc-macro2", "quote", @@ -803,9 +985,22 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.13.3" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c" +checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys", +] [[package]] name = "tinytemplate" @@ -817,28 +1012,17 @@ dependencies = [ "serde_json", ] +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + [[package]] name = "unicode-ident" -version = "1.0.22" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" - -[[package]] -name = "unindent" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3" - -[[package]] -name = "uuid" -version = "1.18.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2" -dependencies = [ - "getrandom", - "js-sys", - "wasm-bindgen", -] +checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" [[package]] name = "version_check" @@ -846,6 +1030,15 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +[[package]] +name = "wait-timeout" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11" +dependencies = [ + "libc", +] + [[package]] name = "walkdir" version = "2.5.0" @@ -858,18 +1051,18 @@ dependencies = [ [[package]] name = "wasip2" -version = "1.0.1+wasi-0.2.4" +version = "1.0.4+wasi-0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" dependencies = [ "wit-bindgen", ] [[package]] name = "wasm-bindgen" -version = "0.2.105" +version = "0.2.128" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60" +checksum = "aecb87a33d3b0c5e3b7aa46336eaf486cffafbd281b195e4c8b80d50df2351bf" dependencies = [ "cfg-if", "once_cell", @@ -880,9 +1073,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.105" +version = "0.2.128" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2" +checksum = "a690d511e3c1a8b3a55e33511e3c2c00c78415cd23650f32b808627f5696b9ed" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -890,31 +1083,31 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.105" +version = "0.2.128" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc" +checksum = "411e4887f0071ef2d2164a9d5fdf2d20efbef78fccd3a78b0c10a1dc5295e48a" dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn", + "syn 3.0.6", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.105" +version = "0.2.128" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76" +checksum = "81941cd78d0c92026c33e5e01312845a4cb1e9af3407f9134b100dd03144103e" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" -version = "0.3.82" +version = "0.3.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1" +checksum = "9fbddc4a036f00ec4f18c83445bd3115cb306a91da554919a099d9222fe4a7f8" dependencies = [ "js-sys", "wasm-bindgen", @@ -926,7 +1119,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -935,15 +1128,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets", -] - [[package]] name = "windows-sys" version = "0.61.2" @@ -953,75 +1137,11 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" - [[package]] name = "wit-bindgen" -version = "0.46.0" +version = "0.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" [[package]] name = "wyz" @@ -1034,20 +1154,26 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.27" +version = "0.8.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c" +checksum = "d35102a9f36d089ccae9e4c6802bc118be4487b80aaffc0ab4e0cf5ce92d2873" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.27" +version = "0.8.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831" +checksum = "146c01f5ab44258da43cf276c74a2763db2ff3969c9c652c3f2de07041d0b2bc" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.119", ] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/pkgs/development/python-modules/jiter/default.nix b/pkgs/development/python-modules/jiter/default.nix index 5ee0d5846d89..2eebf0726e50 100644 --- a/pkgs/development/python-modules/jiter/default.nix +++ b/pkgs/development/python-modules/jiter/default.nix @@ -9,16 +9,16 @@ nix-update-script, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "jiter"; - version = "0.12.0"; + version = "0.17.0"; pyproject = true; src = fetchFromGitHub { owner = "pydantic"; repo = "jiter"; - tag = "v${version}"; - hash = "sha256-d87RUXKEmZXxVQZnAvjwRKSP6F3Z+kXxg/LdY2l9B+k="; + tag = "v${finalAttrs.version}"; + hash = "sha256-ZYLxywATUWU/KmzVyBBsGIqGuWWyQoQHIOXPxHGkk9E="; }; postPatch = '' @@ -47,8 +47,11 @@ buildPythonPackage rec { meta = { description = "Fast iterable JSON parser"; homepage = "https://github.com/pydantic/jiter/"; - changelog = "https://github.com/pydantic/jiter/releases/tag/v${version}"; + changelog = "https://github.com/pydantic/jiter/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ natsukium ]; + maintainers = with lib.maintainers; [ + natsukium + sarahec + ]; }; -} +}) diff --git a/pkgs/development/python-modules/jmp/default.nix b/pkgs/development/python-modules/jmp/default.nix index 821106332e47..8fbf44af45b2 100644 --- a/pkgs/development/python-modules/jmp/default.nix +++ b/pkgs/development/python-modules/jmp/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "jmp"; version = "0.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "deepmind"; diff --git a/pkgs/development/python-modules/jsonlines/default.nix b/pkgs/development/python-modules/jsonlines/default.nix index 7dde945c5028..382d58d158ca 100644 --- a/pkgs/development/python-modules/jsonlines/default.nix +++ b/pkgs/development/python-modules/jsonlines/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "jsonlines"; version = "4.0.0"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/jsonmerge/default.nix b/pkgs/development/python-modules/jsonmerge/default.nix index 9a5494e6bb34..d0ca4644f7d8 100644 --- a/pkgs/development/python-modules/jsonmerge/default.nix +++ b/pkgs/development/python-modules/jsonmerge/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "jsonmerge"; version = "1.9.2"; - __structuredAttrs = true; pyproject = true; src = fetchPypi { diff --git a/pkgs/development/python-modules/jsonpatch/default.nix b/pkgs/development/python-modules/jsonpatch/default.nix index ebff042dfe12..1713cd5fb864 100644 --- a/pkgs/development/python-modules/jsonpatch/default.nix +++ b/pkgs/development/python-modules/jsonpatch/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "jsonpatch"; version = "1.33"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/jug/default.nix b/pkgs/development/python-modules/jug/default.nix index 73f357575a4f..d6ee9692cccc 100644 --- a/pkgs/development/python-modules/jug/default.nix +++ b/pkgs/development/python-modules/jug/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "2.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "luispedro"; repo = "jug"; diff --git a/pkgs/development/python-modules/june-analytics-python/default.nix b/pkgs/development/python-modules/june-analytics-python/default.nix index 37d0a4c204c4..f1445dfa8be1 100644 --- a/pkgs/development/python-modules/june-analytics-python/default.nix +++ b/pkgs/development/python-modules/june-analytics-python/default.nix @@ -37,7 +37,7 @@ buildPythonPackage { unittestCheckHook ]; - unittestFlagsArray = [ "june" ]; + unittestFlags = [ "--start-directory=june" ]; pythonImportsCheck = [ "june" ]; diff --git a/pkgs/development/python-modules/jupysql/default.nix b/pkgs/development/python-modules/jupysql/default.nix index c7db947e148d..78e831aebbf3 100644 --- a/pkgs/development/python-modules/jupysql/default.nix +++ b/pkgs/development/python-modules/jupysql/default.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "jupysql"; version = "0.11.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ploomber"; diff --git a/pkgs/development/python-modules/jupyter-book/default.nix b/pkgs/development/python-modules/jupyter-book/default.nix index cd94bcf70589..c515d911d83e 100644 --- a/pkgs/development/python-modules/jupyter-book/default.nix +++ b/pkgs/development/python-modules/jupyter-book/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-book"; version = "2.1.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyter-book"; diff --git a/pkgs/development/python-modules/jupyter-builder/default.nix b/pkgs/development/python-modules/jupyter-builder/default.nix index 9937acede927..b356eac765e7 100644 --- a/pkgs/development/python-modules/jupyter-builder/default.nix +++ b/pkgs/development/python-modules/jupyter-builder/default.nix @@ -20,15 +20,14 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-builder"; - version = "1.2.2"; + version = "1.2.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterlab"; repo = "jupyter-builder"; tag = "v${finalAttrs.version}"; - hash = "sha256-G6Do2g/WNULgLQo18v9FgVIbug4ls/KXNrMl8+gvD9s="; + hash = "sha256-FUCK2tKzL4sj5kld+Z/b/82RSRbyZjGNAqlwST9XH1w="; }; build-system = [ diff --git a/pkgs/development/python-modules/jupyter-client/default.nix b/pkgs/development/python-modules/jupyter-client/default.nix index e6cd0295f48a..a34371367eaa 100644 --- a/pkgs/development/python-modules/jupyter-client/default.nix +++ b/pkgs/development/python-modules/jupyter-client/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-client"; version = "8.9.1"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "jupyter_client"; diff --git a/pkgs/development/python-modules/jupyter-collaboration-ui/default.nix b/pkgs/development/python-modules/jupyter-collaboration-ui/default.nix index 36cfbadd9c95..aae6bb8e7ebc 100644 --- a/pkgs/development/python-modules/jupyter-collaboration-ui/default.nix +++ b/pkgs/development/python-modules/jupyter-collaboration-ui/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-collaboration-ui"; version = "3.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "jupyter_collaboration_ui"; diff --git a/pkgs/development/python-modules/jupyter-collaboration/default.nix b/pkgs/development/python-modules/jupyter-collaboration/default.nix index 6357b3a67e3e..3e8952498adf 100644 --- a/pkgs/development/python-modules/jupyter-collaboration/default.nix +++ b/pkgs/development/python-modules/jupyter-collaboration/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-collaboration"; version = "5.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterlab"; diff --git a/pkgs/development/python-modules/jupyter-docprovider/default.nix b/pkgs/development/python-modules/jupyter-docprovider/default.nix index 5589acdb03f7..b3dc70bb0cb0 100644 --- a/pkgs/development/python-modules/jupyter-docprovider/default.nix +++ b/pkgs/development/python-modules/jupyter-docprovider/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-docprovider"; version = "3.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "jupyter_docprovider"; diff --git a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix index e527875a1ce7..0cd712ce4fc2 100644 --- a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix +++ b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-nbextensions-configurator"; version = "0.6.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyter-contrib"; diff --git a/pkgs/development/python-modules/jupyter-server-ydoc/default.nix b/pkgs/development/python-modules/jupyter-server-ydoc/default.nix index 82001c4abf1b..f796bf6e8c62 100644 --- a/pkgs/development/python-modules/jupyter-server-ydoc/default.nix +++ b/pkgs/development/python-modules/jupyter-server-ydoc/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-server-ydoc"; version = "3.0.4"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "jupyter_server_ydoc"; diff --git a/pkgs/development/python-modules/jupyter-server/default.nix b/pkgs/development/python-modules/jupyter-server/default.nix index 89a176de3e4a..2859b2ff0596 100644 --- a/pkgs/development/python-modules/jupyter-server/default.nix +++ b/pkgs/development/python-modules/jupyter-server/default.nix @@ -45,7 +45,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-server"; version = "2.21.0"; pyproject = true; - __structuredAttrs = true; # Using the pypi archive to avoid building the node artifacts from source src = fetchPypi { diff --git a/pkgs/development/python-modules/jupyter-ydoc/default.nix b/pkgs/development/python-modules/jupyter-ydoc/default.nix index d948a595852c..0a2d80e60bb2 100644 --- a/pkgs/development/python-modules/jupyter-ydoc/default.nix +++ b/pkgs/development/python-modules/jupyter-ydoc/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyter-ydoc"; version = "4.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyter-server"; diff --git a/pkgs/development/python-modules/jupyterhub/default.nix b/pkgs/development/python-modules/jupyterhub/default.nix index b36c0b279fff..43dcc10c5fcf 100644 --- a/pkgs/development/python-modules/jupyterhub/default.nix +++ b/pkgs/development/python-modules/jupyterhub/default.nix @@ -55,7 +55,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyterhub"; version = "6.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterhub"; diff --git a/pkgs/development/python-modules/jupyterlab-execute-time/default.nix b/pkgs/development/python-modules/jupyterlab-execute-time/default.nix index 8cadb7216adf..c7feac7a22f7 100644 --- a/pkgs/development/python-modules/jupyterlab-execute-time/default.nix +++ b/pkgs/development/python-modules/jupyterlab-execute-time/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyterlab-execute-time"; version = "3.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "deshaw"; diff --git a/pkgs/development/python-modules/jupyterlab-git-core/default.nix b/pkgs/development/python-modules/jupyterlab-git-core/default.nix index 9f51b0a75638..83689737fdc3 100644 --- a/pkgs/development/python-modules/jupyterlab-git-core/default.nix +++ b/pkgs/development/python-modules/jupyterlab-git-core/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyterlab-git-core"; version = "0.54.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterlab"; diff --git a/pkgs/development/python-modules/jupyterlab/default.nix b/pkgs/development/python-modules/jupyterlab/default.nix index caee4848e780..b00fc771ac53 100644 --- a/pkgs/development/python-modules/jupyterlab/default.nix +++ b/pkgs/development/python-modules/jupyterlab/default.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyterlab"; version = "4.6.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterlab"; diff --git a/pkgs/development/python-modules/jupyterlite-core/default.nix b/pkgs/development/python-modules/jupyterlite-core/default.nix index 35d62572ecff..a1825c0e6e36 100644 --- a/pkgs/development/python-modules/jupyterlite-core/default.nix +++ b/pkgs/development/python-modules/jupyterlite-core/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyterlite-core"; version = "0.8.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterlite"; diff --git a/pkgs/development/python-modules/jupyterlite-sphinx/default.nix b/pkgs/development/python-modules/jupyterlite-sphinx/default.nix index b5d584802208..6adb690952da 100644 --- a/pkgs/development/python-modules/jupyterlite-sphinx/default.nix +++ b/pkgs/development/python-modules/jupyterlite-sphinx/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "jupyterlite-sphinx"; version = "0.23.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterlite"; diff --git a/pkgs/development/python-modules/jxmlease/default.nix b/pkgs/development/python-modules/jxmlease/default.nix index 84b875707fe0..3515610072f8 100644 --- a/pkgs/development/python-modules/jxmlease/default.nix +++ b/pkgs/development/python-modules/jxmlease/default.nix @@ -6,13 +6,14 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "jxmlease"; version = "1.0.3"; format = "setuptools"; src = fetchPypi { - inherit pname version; + pname = "jxmlease"; + inherit (finalAttrs) version; hash = "sha256-YSwVddiocCbeoJa7dazscwLdaQQPoj2RFuceMNXgg54="; }; @@ -24,7 +25,7 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-v" ]; + unittestFlags = [ "-v" ]; meta = { description = "Converts between XML and intelligent Python data structures"; @@ -32,4 +33,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/kafka-python/default.nix b/pkgs/development/python-modules/kafka-python/default.nix index 326e0b879d69..035a7c13f17a 100644 --- a/pkgs/development/python-modules/kafka-python/default.nix +++ b/pkgs/development/python-modules/kafka-python/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "kafka-python"; version = "3.0.12"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "dpkp"; diff --git a/pkgs/development/python-modules/kaggle/default.nix b/pkgs/development/python-modules/kaggle/default.nix index 5c3b28753937..f764317a600a 100644 --- a/pkgs/development/python-modules/kaggle/default.nix +++ b/pkgs/development/python-modules/kaggle/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "kaggle"; version = "2.2.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Kaggle"; diff --git a/pkgs/development/python-modules/kagglehub/default.nix b/pkgs/development/python-modules/kagglehub/default.nix index db88d1797753..e22c2f9a95b9 100644 --- a/pkgs/development/python-modules/kagglehub/default.nix +++ b/pkgs/development/python-modules/kagglehub/default.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "kagglehub"; version = "1.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Kaggle"; diff --git a/pkgs/development/python-modules/kagglesdk/default.nix b/pkgs/development/python-modules/kagglesdk/default.nix index af940a9241f3..d46a1a773580 100644 --- a/pkgs/development/python-modules/kagglesdk/default.nix +++ b/pkgs/development/python-modules/kagglesdk/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "kagglesdk"; version = "0.1.37"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Kaggle"; diff --git a/pkgs/development/python-modules/kanjize/default.nix b/pkgs/development/python-modules/kanjize/default.nix index fb8999f1a159..8c9f6806b363 100644 --- a/pkgs/development/python-modules/kanjize/default.nix +++ b/pkgs/development/python-modules/kanjize/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.6.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "nagataaaas"; repo = "kanjize"; diff --git a/pkgs/development/python-modules/keras/default.nix b/pkgs/development/python-modules/keras/default.nix index 985d23df6f72..b01f20d6f0eb 100644 --- a/pkgs/development/python-modules/keras/default.nix +++ b/pkgs/development/python-modules/keras/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "keras"; version = "3.15.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "keras-team"; diff --git a/pkgs/development/python-modules/kestra/default.nix b/pkgs/development/python-modules/kestra/default.nix index eca72800cac0..65b89f124bb2 100644 --- a/pkgs/development/python-modules/kestra/default.nix +++ b/pkgs/development/python-modules/kestra/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "kestra"; version = "2.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "kestra-io"; diff --git a/pkgs/development/python-modules/keystone-engine/default.nix b/pkgs/development/python-modules/keystone-engine/default.nix index 29001fd86e70..9954e5c082a2 100644 --- a/pkgs/development/python-modules/keystone-engine/default.nix +++ b/pkgs/development/python-modules/keystone-engine/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-L3r2LasM5sJzLbtPMc+iGEqKFJ4oC5a5LrwNuExuUPU="; diff --git a/pkgs/development/python-modules/khanaa/default.nix b/pkgs/development/python-modules/khanaa/default.nix index 1d77ca276460..aa3f7d2871ea 100644 --- a/pkgs/development/python-modules/khanaa/default.nix +++ b/pkgs/development/python-modules/khanaa/default.nix @@ -8,7 +8,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "khanaa"; version = "0.1.1"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "cakimpei"; repo = "khanaa"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-QFvvahVEld3BooINeUYJDahZyfh5xmQNtWRLAOdr6lw="; }; @@ -28,9 +28,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonImportsCheck = [ "khanaa" ]; @@ -42,4 +41,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ vizid ]; }; -} +}) diff --git a/pkgs/development/python-modules/kiauto/default.nix b/pkgs/development/python-modules/kiauto/default.nix index cd39f8d051a1..2621835c51ca 100644 --- a/pkgs/development/python-modules/kiauto/default.nix +++ b/pkgs/development/python-modules/kiauto/default.nix @@ -37,8 +37,6 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "kiauto" ]; - __structuredAttrs = true; - meta = { description = "Automation scripts for KiCad"; homepage = "https://github.com/INTI-CMNB/KiAuto"; diff --git a/pkgs/development/python-modules/kneaddata/default.nix b/pkgs/development/python-modules/kneaddata/default.nix index 310d3ad10164..2106017bc72d 100644 --- a/pkgs/development/python-modules/kneaddata/default.nix +++ b/pkgs/development/python-modules/kneaddata/default.nix @@ -6,7 +6,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "kneaddata"; version = "0.12.1"; pyproject = true; @@ -16,13 +16,16 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "biobakery"; repo = "kneaddata"; - tag = version; + tag = finalAttrs.version; hash = "sha256-biZ6lS0a81CBAAhTOb1Ol38/YagLqXA3AbMr2nBmSEw="; }; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "kneaddata/tests/ '*.py'" ]; + unittestFlags = [ + "--start-directory=kneaddata/tests/" + "--pattern=*.py" + ]; pythonImportsCheck = [ "kneaddata" ]; @@ -35,4 +38,4 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ pandapip1 ]; mainProgram = "kneaddata"; }; -} +}) diff --git a/pkgs/development/python-modules/knx-telegram-store/default.nix b/pkgs/development/python-modules/knx-telegram-store/default.nix index 989f974d2128..754e7f2019c4 100644 --- a/pkgs/development/python-modules/knx-telegram-store/default.nix +++ b/pkgs/development/python-modules/knx-telegram-store/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "0.15.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "XKNX"; repo = "knx-telegram-store"; diff --git a/pkgs/development/python-modules/kotsu/default.nix b/pkgs/development/python-modules/kotsu/default.nix index 794d4f6e2998..754a703ae6d0 100644 --- a/pkgs/development/python-modules/kotsu/default.nix +++ b/pkgs/development/python-modules/kotsu/default.nix @@ -33,6 +33,13 @@ buildPythonPackage rec { pytest-mock scikit-learn ]; + + disabledTests = [ + # AssertionError: Attributes of DataFrame.iloc[:, 0] (column name="validation_id") are different + "test_form_results" + "test_force_rerun" + ]; + pythonImportsCheck = [ "kotsu" ]; meta = { diff --git a/pkgs/development/python-modules/kserve/default.nix b/pkgs/development/python-modules/kserve/default.nix index 540f206704f7..a430a0fcdefe 100644 --- a/pkgs/development/python-modules/kserve/default.nix +++ b/pkgs/development/python-modules/kserve/default.nix @@ -62,7 +62,6 @@ buildPythonPackage (finalAttrs: { pname = "kserve"; version = "0.21.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "kserve"; diff --git a/pkgs/development/python-modules/lance-namespace-urllib3-client/default.nix b/pkgs/development/python-modules/lance-namespace-urllib3-client/default.nix index 7fbd192755da..8e6c7c5f2b7f 100644 --- a/pkgs/development/python-modules/lance-namespace-urllib3-client/default.nix +++ b/pkgs/development/python-modules/lance-namespace-urllib3-client/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "lance-namespace-urllib3-client"; version = "0.13.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lancedb"; diff --git a/pkgs/development/python-modules/lance-namespace/default.nix b/pkgs/development/python-modules/lance-namespace/default.nix index 2fd45db0434d..0ff5f4385464 100644 --- a/pkgs/development/python-modules/lance-namespace/default.nix +++ b/pkgs/development/python-modules/lance-namespace/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "lance-namespace"; version = "0.13.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lancedb"; diff --git a/pkgs/development/python-modules/lancedb/default.nix b/pkgs/development/python-modules/lancedb/default.nix index 14aafc1da33f..9cffe7b26f43 100644 --- a/pkgs/development/python-modules/lancedb/default.nix +++ b/pkgs/development/python-modules/lancedb/default.nix @@ -42,7 +42,6 @@ buildPythonPackage (finalAttrs: { pname = "lancedb"; version = "0.40.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lancedb"; diff --git a/pkgs/development/python-modules/langchain-anthropic/default.nix b/pkgs/development/python-modules/langchain-anthropic/default.nix index 2f34adba6f95..1efb86ca0330 100644 --- a/pkgs/development/python-modules/langchain-anthropic/default.nix +++ b/pkgs/development/python-modules/langchain-anthropic/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-anthropic"; version = "1.7.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-aws/default.nix b/pkgs/development/python-modules/langchain-aws/default.nix index 63b72bc4623a..3a881dcd2c8d 100644 --- a/pkgs/development/python-modules/langchain-aws/default.nix +++ b/pkgs/development/python-modules/langchain-aws/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-aws"; version = "1.7.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-classic/default.nix b/pkgs/development/python-modules/langchain-classic/default.nix index efef505de075..cc95f39a76f1 100644 --- a/pkgs/development/python-modules/langchain-classic/default.nix +++ b/pkgs/development/python-modules/langchain-classic/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-classic"; version = "1.0.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-core/default.nix b/pkgs/development/python-modules/langchain-core/default.nix index 93a28ccec405..4b4ab300a209 100644 --- a/pkgs/development/python-modules/langchain-core/default.nix +++ b/pkgs/development/python-modules/langchain-core/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-core"; version = "1.6.10"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-fireworks/default.nix b/pkgs/development/python-modules/langchain-fireworks/default.nix index a4588b6fa8dd..a9d0552b6323 100644 --- a/pkgs/development/python-modules/langchain-fireworks/default.nix +++ b/pkgs/development/python-modules/langchain-fireworks/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-fireworks"; version = "1.6.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-google-genai/default.nix b/pkgs/development/python-modules/langchain-google-genai/default.nix index 39b88463fd19..5fedc4a4bc7b 100644 --- a/pkgs/development/python-modules/langchain-google-genai/default.nix +++ b/pkgs/development/python-modules/langchain-google-genai/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-google-genai"; version = "4.3.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-groq/default.nix b/pkgs/development/python-modules/langchain-groq/default.nix index 96931c62cfa3..019d0e760a2a 100644 --- a/pkgs/development/python-modules/langchain-groq/default.nix +++ b/pkgs/development/python-modules/langchain-groq/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-groq"; version = "1.1.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-huggingface/default.nix b/pkgs/development/python-modules/langchain-huggingface/default.nix index 8fbc76bdc0de..80e5eb053ab6 100644 --- a/pkgs/development/python-modules/langchain-huggingface/default.nix +++ b/pkgs/development/python-modules/langchain-huggingface/default.nix @@ -35,7 +35,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-huggingface"; version = "1.2.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-mistralai/default.nix b/pkgs/development/python-modules/langchain-mistralai/default.nix index ff71b424443f..74f35a671ab2 100644 --- a/pkgs/development/python-modules/langchain-mistralai/default.nix +++ b/pkgs/development/python-modules/langchain-mistralai/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-mistralai"; version = "1.1.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-mongodb/default.nix b/pkgs/development/python-modules/langchain-mongodb/default.nix index 05567fc20852..043eabbcc86b 100644 --- a/pkgs/development/python-modules/langchain-mongodb/default.nix +++ b/pkgs/development/python-modules/langchain-mongodb/default.nix @@ -38,7 +38,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-mongodb"; version = "0.12.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-ollama/default.nix b/pkgs/development/python-modules/langchain-ollama/default.nix index 93a4e135ce39..75f7fb4ba6c8 100644 --- a/pkgs/development/python-modules/langchain-ollama/default.nix +++ b/pkgs/development/python-modules/langchain-ollama/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-ollama"; version = "1.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-openai/default.nix b/pkgs/development/python-modules/langchain-openai/default.nix index a2f001d06322..69c7a62214fc 100644 --- a/pkgs/development/python-modules/langchain-openai/default.nix +++ b/pkgs/development/python-modules/langchain-openai/default.nix @@ -35,7 +35,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-openai"; version = "1.6.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-perplexity/default.nix b/pkgs/development/python-modules/langchain-perplexity/default.nix index 38c5a3dd080c..b81480b14e7f 100644 --- a/pkgs/development/python-modules/langchain-perplexity/default.nix +++ b/pkgs/development/python-modules/langchain-perplexity/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-perplexity"; version = "1.4.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain-protocol/default.nix b/pkgs/development/python-modules/langchain-protocol/default.nix index 4ee75b521a1a..813cb0a4e926 100644 --- a/pkgs/development/python-modules/langchain-protocol/default.nix +++ b/pkgs/development/python-modules/langchain-protocol/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-protocol"; version = "0.0.20"; pyproject = true; - __structuredAttrs = true; # Not available vis Github yet; required by langchain-core src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/langchain-tests/default.nix b/pkgs/development/python-modules/langchain-tests/default.nix index 367414938f26..b3c07665f230 100644 --- a/pkgs/development/python-modules/langchain-tests/default.nix +++ b/pkgs/development/python-modules/langchain-tests/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain-tests"; version = "1.1.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index 0764a00f5465..05b985f6d2f9 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -48,7 +48,6 @@ buildPythonPackage (finalAttrs: { pname = "langchain"; version = "1.4.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix b/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix index 58dfc1f90254..f1f43f8300bd 100644 --- a/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix +++ b/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "langgraph-checkpoint-postgres"; version = "3.1.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix b/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix index cc33d554868d..d95f3697a8d3 100644 --- a/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix +++ b/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "langgraph-checkpoint-sqlite"; version = "3.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langgraph-cli/default.nix b/pkgs/development/python-modules/langgraph-cli/default.nix index 2be750337954..5f6ea601b866 100644 --- a/pkgs/development/python-modules/langgraph-cli/default.nix +++ b/pkgs/development/python-modules/langgraph-cli/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "langgraph-cli"; version = "0.4.40"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langgraph-prebuilt/default.nix b/pkgs/development/python-modules/langgraph-prebuilt/default.nix index b37ebd432f84..773b466fdc31 100644 --- a/pkgs/development/python-modules/langgraph-prebuilt/default.nix +++ b/pkgs/development/python-modules/langgraph-prebuilt/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "langgraph-prebuilt"; version = "1.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langgraph-runtime-inmem/default.nix b/pkgs/development/python-modules/langgraph-runtime-inmem/default.nix index 26e57fbe3f2b..5b0339083331 100644 --- a/pkgs/development/python-modules/langgraph-runtime-inmem/default.nix +++ b/pkgs/development/python-modules/langgraph-runtime-inmem/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "langgraph-runtime-inmem"; version = "0.37.1"; pyproject = true; - __structuredAttrs = true; # Not available in any repository src = fetchPypi { diff --git a/pkgs/development/python-modules/langgraph-sdk/default.nix b/pkgs/development/python-modules/langgraph-sdk/default.nix index ee87ed62fc38..b9b88081c660 100644 --- a/pkgs/development/python-modules/langgraph-sdk/default.nix +++ b/pkgs/development/python-modules/langgraph-sdk/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "langgraph-sdk"; version = "0.4.10"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langgraph/default.nix b/pkgs/development/python-modules/langgraph/default.nix index 949133e39f9f..ea8bd822abe4 100644 --- a/pkgs/development/python-modules/langgraph/default.nix +++ b/pkgs/development/python-modules/langgraph/default.nix @@ -43,7 +43,6 @@ buildPythonPackage (finalAttrs: { pname = "langgraph"; version = "1.2.11"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "langchain-ai"; diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index af264722b262..01c34f11c11f 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -100,6 +100,8 @@ buildPythonPackage (finalAttrs: { "test_as_runnable_batch" "test_as_runnable_async" "test_as_runnable_async_batch" + # flaky + "test_admission_under_concurrency_never_mixes_destinations" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # flaky (timing sensitive) diff --git a/pkgs/development/python-modules/lbox-clients/default.nix b/pkgs/development/python-modules/lbox-clients/default.nix index 05a5866fa598..592b187c8019 100644 --- a/pkgs/development/python-modules/lbox-clients/default.nix +++ b/pkgs/development/python-modules/lbox-clients/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "lbox-clients"; version = "1.1.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Labelbox"; diff --git a/pkgs/development/python-modules/lerobot/default.nix b/pkgs/development/python-modules/lerobot/default.nix index a7805ece8aef..4654231c0417 100644 --- a/pkgs/development/python-modules/lerobot/default.nix +++ b/pkgs/development/python-modules/lerobot/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "lerobot"; version = "0.6.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; diff --git a/pkgs/development/python-modules/libarchive-c/default.nix b/pkgs/development/python-modules/libarchive-c/default.nix index 243b7b086786..581e3598edde 100644 --- a/pkgs/development/python-modules/libarchive-c/default.nix +++ b/pkgs/development/python-modules/libarchive-c/default.nix @@ -5,8 +5,6 @@ fetchFromGitHub, fetchpatch, libarchive, - glibcLocales, - mock, pytestCheckHook, setuptools, }: @@ -29,13 +27,19 @@ buildPythonPackage (finalAttrs: { url = "https://github.com/Changaco/python-libarchive-c/commit/e0e2a47b2403632642ee932dd56acd11e4a79efe.diff"; hash = "sha256-C9eD4cGQOIdBYy4ytom49lA/Jaarj7LbSIgjxCk/H84="; }) + # https://github.com/Changaco/python-libarchive-c/pull/145 + (fetchpatch { + url = "https://github.com/Changaco/python-libarchive-c/commit/f38073cfb0147beeb951ee4fa8ef13b442837b65.patch"; + hash = "sha256-QJD59oYSF1cY2h2GeczwkdVOLIqZF5CauBpmKYFDLCA="; + }) ]; - env.LC_ALL = "en_US.UTF-8"; - postPatch = '' substituteInPlace libarchive/ffi.py --replace-fail \ "find_library('archive')" "'${libarchive.lib}/lib/libarchive${stdenv.hostPlatform.extensions.sharedLibrary}'" + + substituteInPlace tests/test_entry.py \ + --replace-fail "nlink=0 " "" ''; build-system = [ setuptools ]; @@ -43,8 +47,6 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "libarchive" ]; nativeCheckInputs = [ - glibcLocales - mock pytestCheckHook ]; diff --git a/pkgs/development/python-modules/libmobility/default.nix b/pkgs/development/python-modules/libmobility/default.nix index e99cf9f8b0e6..e7b04e81829c 100644 --- a/pkgs/development/python-modules/libmobility/default.nix +++ b/pkgs/development/python-modules/libmobility/default.nix @@ -41,7 +41,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "libmobility"; version = "1.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "stochasticHydroTools"; diff --git a/pkgs/development/python-modules/libpass/default.nix b/pkgs/development/python-modules/libpass/default.nix index 412de0e08820..ff93897c47da 100644 --- a/pkgs/development/python-modules/libpass/default.nix +++ b/pkgs/development/python-modules/libpass/default.nix @@ -12,16 +12,16 @@ typing-extensions, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "libpass"; - version = "1.9.3"; + version = "1.9.4"; pyproject = true; src = fetchFromGitHub { owner = "ThirVondukr"; repo = "passlib"; - tag = version; - hash = "sha256-fzI9HpGE3wNK41ZSOeA5NAr5T4r3Jzdqe5+SHoWVXUs="; + tag = finalAttrs.version; + hash = "sha256-d+iBTJrUzzLXAnbIJ56NHg8dZrv7Qd3ikNWOhXBiUzM="; }; build-system = [ hatchling ]; @@ -37,7 +37,7 @@ buildPythonPackage rec { pytest-xdist pytestCheckHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; pythonImportsCheck = [ "passlib" ]; @@ -57,10 +57,10 @@ buildPythonPackage rec { ]; meta = { - changelog = "https://github.com/ThirVondukr/passlib/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/ThirVondukr/passlib/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Comprehensive password hashing framework supporting over 30 schemes"; homepage = "https://github.com/ThirVondukr/passlib"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/librosa/default.nix b/pkgs/development/python-modules/librosa/default.nix index 1844f03c9a3f..05c9f69243b2 100644 --- a/pkgs/development/python-modules/librosa/default.nix +++ b/pkgs/development/python-modules/librosa/default.nix @@ -35,7 +35,6 @@ buildPythonPackage (finalAttrs: { pname = "librosa"; version = "1.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "librosa"; @@ -92,7 +91,7 @@ buildPythonPackage (finalAttrs: { "test_load_resample" "test_loadx" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # AssertionError (numerical comparison fails) "test_beat_track_multi" "test_beat_track_multi_bpm_vector" diff --git a/pkgs/development/python-modules/libsast/default.nix b/pkgs/development/python-modules/libsast/default.nix index 96fba1b4b85a..bb15cd453b3e 100644 --- a/pkgs/development/python-modules/libsast/default.nix +++ b/pkgs/development/python-modules/libsast/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "libsast"; version = "3.1.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ajinabraham"; diff --git a/pkgs/development/python-modules/licomp-doubleopen/default.nix b/pkgs/development/python-modules/licomp-doubleopen/default.nix index 2243caa52b1f..e1db3aaa9724 100644 --- a/pkgs/development/python-modules/licomp-doubleopen/default.nix +++ b/pkgs/development/python-modules/licomp-doubleopen/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-doubleopen"; version = "0.1.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-dwheeler/default.nix b/pkgs/development/python-modules/licomp-dwheeler/default.nix index 39fb76e1905d..42313675f334 100644 --- a/pkgs/development/python-modules/licomp-dwheeler/default.nix +++ b/pkgs/development/python-modules/licomp-dwheeler/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-dwheeler"; version = "0.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-gnuguide/default.nix b/pkgs/development/python-modules/licomp-gnuguide/default.nix index 8d90a79f53a2..a18cd3d27a9e 100644 --- a/pkgs/development/python-modules/licomp-gnuguide/default.nix +++ b/pkgs/development/python-modules/licomp-gnuguide/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-gnuguide"; version = "0.5.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-hermione/default.nix b/pkgs/development/python-modules/licomp-hermione/default.nix index 9bf2a5f827cf..eba8b07359c5 100644 --- a/pkgs/development/python-modules/licomp-hermione/default.nix +++ b/pkgs/development/python-modules/licomp-hermione/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-hermione"; version = "0.5.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-osadl/default.nix b/pkgs/development/python-modules/licomp-osadl/default.nix index 7796128e0463..b57bc18dd801 100644 --- a/pkgs/development/python-modules/licomp-osadl/default.nix +++ b/pkgs/development/python-modules/licomp-osadl/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-osadl"; version = "0.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-oslc-handbook/default.nix b/pkgs/development/python-modules/licomp-oslc-handbook/default.nix index 837ccee0c3be..0605acda3cc3 100644 --- a/pkgs/development/python-modules/licomp-oslc-handbook/default.nix +++ b/pkgs/development/python-modules/licomp-oslc-handbook/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-oslc-handbook"; version = "0.1.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-proprietary/default.nix b/pkgs/development/python-modules/licomp-proprietary/default.nix index 4132f0e709ed..ad5df1c90ac8 100644 --- a/pkgs/development/python-modules/licomp-proprietary/default.nix +++ b/pkgs/development/python-modules/licomp-proprietary/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-proprietary"; version = "0.5.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-reclicense/default.nix b/pkgs/development/python-modules/licomp-reclicense/default.nix index 89b3822e3dc6..31861108e98c 100644 --- a/pkgs/development/python-modules/licomp-reclicense/default.nix +++ b/pkgs/development/python-modules/licomp-reclicense/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-reclicense"; version = "0.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/licomp-toolkit/default.nix b/pkgs/development/python-modules/licomp-toolkit/default.nix index 7728335e34c8..9fb6934bd482 100644 --- a/pkgs/development/python-modules/licomp-toolkit/default.nix +++ b/pkgs/development/python-modules/licomp-toolkit/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp-toolkit"; version = "0.5.20"; pyproject = true; - __structuredAttrs = true; src = fetchFromCodeberg { owner = "software-compliance-org"; diff --git a/pkgs/development/python-modules/licomp/default.nix b/pkgs/development/python-modules/licomp/default.nix index 9ec29e091b64..6c13caf3348a 100644 --- a/pkgs/development/python-modules/licomp/default.nix +++ b/pkgs/development/python-modules/licomp/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "licomp"; version = "0.5.22"; pyproject = true; - __structuredAttrs = true; src = fetchFromCodeberg { owner = "software-compliance-org"; diff --git a/pkgs/development/python-modules/lifelines/default.nix b/pkgs/development/python-modules/lifelines/default.nix index 096447e92795..1d644a33bb12 100644 --- a/pkgs/development/python-modules/lifelines/default.nix +++ b/pkgs/development/python-modules/lifelines/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "lifelines"; version = "0.30.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "CamDavidsonPilon"; diff --git a/pkgs/development/python-modules/lightning/default.nix b/pkgs/development/python-modules/lightning/default.nix index 14b8b762530c..7d2bf3cd046a 100644 --- a/pkgs/development/python-modules/lightning/default.nix +++ b/pkgs/development/python-modules/lightning/default.nix @@ -12,7 +12,6 @@ buildPythonPackage { pname = "lightning"; pyproject = true; - __structuredAttrs = true; inherit (pytorch-lightning) version diff --git a/pkgs/development/python-modules/lime/default.nix b/pkgs/development/python-modules/lime/default.nix index 7ce3a798f17c..e3a3868a2593 100644 --- a/pkgs/development/python-modules/lime/default.nix +++ b/pkgs/development/python-modules/lime/default.nix @@ -20,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-dpYOTwVf61Pom1AiODuvyHtj8lusYmWYSwozPRpX94E="; diff --git a/pkgs/development/python-modules/linearmodels/default.nix b/pkgs/development/python-modules/linearmodels/default.nix index 5e5bceb6daf8..603818e79e8e 100644 --- a/pkgs/development/python-modules/linearmodels/default.nix +++ b/pkgs/development/python-modules/linearmodels/default.nix @@ -74,6 +74,10 @@ buildPythonPackage (finalAttrs: { disabledTestPaths = [ # Skip long-running tests "linearmodels/tests/panel/test_panel_ols.py" + + # Duplicate parametrization IDs detected, but strict_parametrization_ids is set + "linearmodels/tests/system" + "linearmodels/tests/panel" ]; meta = { diff --git a/pkgs/development/python-modules/lineax/default.nix b/pkgs/development/python-modules/lineax/default.nix index 4afe341bd14c..57ad1480c04d 100644 --- a/pkgs/development/python-modules/lineax/default.nix +++ b/pkgs/development/python-modules/lineax/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "lineax"; version = "0.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "patrick-kidger"; diff --git a/pkgs/development/python-modules/linode-api4/default.nix b/pkgs/development/python-modules/linode-api4/default.nix index cfe9b8b146f5..62e3166bc5e7 100644 --- a/pkgs/development/python-modules/linode-api4/default.nix +++ b/pkgs/development/python-modules/linode-api4/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "5.49.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "linode"; repo = "linode_api4-python"; diff --git a/pkgs/development/python-modules/litellm/default.nix b/pkgs/development/python-modules/litellm/default.nix index 5446b40fc447..e60264992dbe 100644 --- a/pkgs/development/python-modules/litellm/default.nix +++ b/pkgs/development/python-modules/litellm/default.nix @@ -4,6 +4,7 @@ aiohttp, anthropic, apscheduler, + aws-lc, azure-ai-contentsafety, azure-identity, azure-keyvault-secrets, @@ -39,12 +40,14 @@ litellm-proxy-extras, llm-sandbox, mcp, + oniguruma, openai, opentelemetry-api, opentelemetry-exporter-otlp, opentelemetry-sdk, orjson, packaging, + pkg-config, polars, prisma, prometheus-client, @@ -91,6 +94,12 @@ buildPythonPackage (finalAttrs: { nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook + pkg-config + ]; + + buildInputs = [ + aws-lc + oniguruma ]; cargoRoot = "litellm-rust"; @@ -214,6 +223,7 @@ buildPythonPackage (finalAttrs: { "boto3" "certifi" "click" + "filelock" "huggingface-hub" "importlib-metadata" "jsonschema" diff --git a/pkgs/development/python-modules/llama-cpp-python/default.nix b/pkgs/development/python-modules/llama-cpp-python/default.nix index 397186d8024a..fc1f654865fa 100644 --- a/pkgs/development/python-modules/llama-cpp-python/default.nix +++ b/pkgs/development/python-modules/llama-cpp-python/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "llama-cpp-python"; version = "0.3.36"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/llama-index-core/default.nix b/pkgs/development/python-modules/llama-index-core/default.nix index 555b7b9d1967..cc0a0de38ada 100644 --- a/pkgs/development/python-modules/llama-index-core/default.nix +++ b/pkgs/development/python-modules/llama-index-core/default.nix @@ -11,29 +11,32 @@ filetype, fsspec, hatchling, - jsonpath-ng, + httpx, llama-index-workflows, nest-asyncio, networkx, - nltk-data, nltk, + nltk-data, numpy, openai, - pandas, pillow, + platformdirs, + pydantic, pytest-asyncio, pytest-mock, pytestCheckHook, - pyvis, pyyaml, requests, - spacy, + setuptools, sqlalchemy, tenacity, - tinytag, tiktoken, + tinytag, + tqdm, tree-sitter, + typing-extensions, typing-inspect, + wrapt, }: buildPythonPackage (finalAttrs: { @@ -64,11 +67,6 @@ buildPythonPackage (finalAttrs: { cp -r ${nltk-data.punkt}/tokenizers/punkt/* llama_index/core/_static/nltk_cache/tokenizers/punkt/ ''; - pythonRelaxDeps = [ - "setuptools" - "tenacity" - ]; - build-system = [ hatchling ]; dependencies = [ @@ -80,27 +78,31 @@ buildPythonPackage (finalAttrs: { dirtyjson filetype fsspec - jsonpath-ng + httpx llama-index-workflows nest-asyncio networkx nltk numpy - openai - pandas pillow - pyvis + platformdirs + pydantic pyyaml requests - spacy + setuptools sqlalchemy tenacity - tinytag tiktoken + tinytag + tqdm + typing-extensions typing-inspect - ]; + wrapt + ] + ++ sqlalchemy.optional-dependencies.asyncio; nativeCheckInputs = [ + openai tree-sitter pytest-asyncio pytest-mock diff --git a/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix b/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix index f5af62230172..5810723af8b7 100644 --- a/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix +++ b/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix @@ -20,6 +20,10 @@ buildPythonPackage (finalAttrs: { build-system = [ hatchling ]; + pythonRelaxDeps = [ + "openai" + ]; + dependencies = [ llama-index-core llama-index-llms-openai diff --git a/pkgs/development/python-modules/llama-index-llms-openai/default.nix b/pkgs/development/python-modules/llama-index-llms-openai/default.nix index c1d6bfd544fe..ecbadc7dc7ce 100644 --- a/pkgs/development/python-modules/llama-index-llms-openai/default.nix +++ b/pkgs/development/python-modules/llama-index-llms-openai/default.nix @@ -20,6 +20,10 @@ buildPythonPackage (finalAttrs: { build-system = [ hatchling ]; + pythonRelaxDeps = [ + "openai" + ]; + dependencies = [ llama-index-core openai diff --git a/pkgs/development/python-modules/llguidance/default.nix b/pkgs/development/python-modules/llguidance/default.nix index a44d5d543071..9479f1f4aa88 100644 --- a/pkgs/development/python-modules/llguidance/default.nix +++ b/pkgs/development/python-modules/llguidance/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "llguidance"; version = "1.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "guidance-ai"; diff --git a/pkgs/development/python-modules/llm-anthropic/default.nix b/pkgs/development/python-modules/llm-anthropic/default.nix index 16bac373b596..96a7508d0d0c 100644 --- a/pkgs/development/python-modules/llm-anthropic/default.nix +++ b/pkgs/development/python-modules/llm-anthropic/default.nix @@ -3,10 +3,10 @@ buildPythonPackage, fetchFromGitHub, setuptools, - json-schema-to-pydantic, llm, llm-anthropic, anthropic, + inline-snapshot, pytestCheckHook, pytest-asyncio, pytest-recording, @@ -15,14 +15,14 @@ buildPythonPackage (finalAttrs: { pname = "llm-anthropic"; - version = "0.25.1"; + version = "0.28"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-anthropic"; tag = finalAttrs.version; - hash = "sha256-b9XnPxKDGsiy20Me70sYrkMVO36OF3EwWOHLyEd5z4E="; + hash = "sha256-VfolA3CLil50Cad7DzLlr2LbpI8W4YJ502YoWeqbsW4="; }; build-system = [ @@ -31,11 +31,11 @@ buildPythonPackage (finalAttrs: { dependencies = [ anthropic - json-schema-to-pydantic llm ]; nativeCheckInputs = [ + inline-snapshot pytestCheckHook pytest-asyncio pytest-recording diff --git a/pkgs/development/python-modules/llm-echo/default.nix b/pkgs/development/python-modules/llm-echo/default.nix index 3205ca8bb8a3..04441294e9a0 100644 --- a/pkgs/development/python-modules/llm-echo/default.nix +++ b/pkgs/development/python-modules/llm-echo/default.nix @@ -32,6 +32,12 @@ buildPythonPackage rec { writableTmpDirAsHomeHook ]; + disabledTests = [ + # AssertionError: assert [ToolCall(nam...406gay3qev4')] == [ToolCall(nam...ca... + # (output differs due to version changes) + "test_prompt_with_tool_calls" + ]; + pythonImportsCheck = [ "llm_echo" ]; passthru.tests = llm.mkPluginTest llm-echo; diff --git a/pkgs/development/python-modules/llm-tools-datasette/default.nix b/pkgs/development/python-modules/llm-tools-datasette/default.nix index 4320fa797a1e..f2987d2969b0 100644 --- a/pkgs/development/python-modules/llm-tools-datasette/default.nix +++ b/pkgs/development/python-modules/llm-tools-datasette/default.nix @@ -5,10 +5,6 @@ setuptools, llm, llm-tools-datasette, - llm-echo, - pytestCheckHook, - pytest-httpx, - writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -27,12 +23,8 @@ buildPythonPackage rec { dependencies = [ llm ]; - nativeCheckInputs = [ - llm-echo - pytestCheckHook - pytest-httpx - writableTmpDirAsHomeHook - ]; + # there is only one test that asserts the exact tool output + doCheck = false; pythonImportsCheck = [ "llm_tools_datasette" ]; diff --git a/pkgs/development/python-modules/llm-tools-quickjs/default.nix b/pkgs/development/python-modules/llm-tools-quickjs/default.nix index ad447a01ade1..7363f1ef55d3 100644 --- a/pkgs/development/python-modules/llm-tools-quickjs/default.nix +++ b/pkgs/development/python-modules/llm-tools-quickjs/default.nix @@ -38,6 +38,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_tools_quickjs" ]; + # both tests expect a tool_call_id==None but get an actual value + # https://github.com/simonw/llm-tools-sqlite/issues/4 covers this repo as well + doCheck = false; + passthru.tests = llm.mkPluginTest llm-tools-quickjs; meta = { diff --git a/pkgs/development/python-modules/llm-tools-sqlite/default.nix b/pkgs/development/python-modules/llm-tools-sqlite/default.nix index 11ae7b29cb1f..32b2a151482a 100644 --- a/pkgs/development/python-modules/llm-tools-sqlite/default.nix +++ b/pkgs/development/python-modules/llm-tools-sqlite/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "llm-tools-sqlite"; version = "0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "simonw"; @@ -37,6 +36,10 @@ buildPythonPackage (finalAttrs: { writableTmpDirAsHomeHook ]; + # There's only one test and it's failing due to a bad comparison + # https://github.com/simonw/llm-tools-sqlite/issues/4 + doCheck = false; + pythonImportsCheck = [ "llm_tools_sqlite" ]; passthru.tests = llm.mkPluginTest llm-tools-sqlite; diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index eeb9194dbafb..bd0f7f3b76cd 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -4,13 +4,13 @@ callPackage, buildPythonPackage, fetchFromGitHub, - fetchpatch2, pytestCheckHook, - replaceVars, setuptools, click-default-group, condense-json, + httpx2, numpy, + httpx2-pytest, openai, pip, pluggy, @@ -22,9 +22,7 @@ sqlite-migrate, cogapp, pytest-asyncio, - pytest-httpx, pytest-recording, - sqlite, sqlite-utils, syrupy, llm-echo, @@ -166,9 +164,8 @@ let ); llm = buildPythonPackage (finalAttrs: { pname = "llm"; - version = "0.31.1"; + version = "0.35"; pyproject = true; - __structuredAttrs = true; build-system = [ setuptools ]; @@ -176,17 +173,11 @@ let owner = "simonw"; repo = "llm"; tag = finalAttrs.version; - hash = "sha256-XxQ6IQyuO1rxQtiyb4VGrM7uGoffuNN5BhyI4YDxnZg="; + hash = "sha256-vaoNxU1KIuT7EV9uiCAA7JamtwExONPlnmjioDE3wH8="; }; patches = [ ./001-disable-install-uninstall-commands.patch - # Remove when https://github.com/simonw/llm/pull/1525 gets merged. - ./do-not-commit-inside-content_hash-embeddings.patch - (fetchpatch2 { - url = "https://github.com/simonw/llm/commit/67adad2c10be5c1898e3e1a664adb573f5d032cf.patch"; - hash = "sha256-7+sBQvef94ZTUrqNKVzHzjFADNj1KNzA2tbGs5btwNA="; - }) ]; postPatch = '' @@ -197,7 +188,7 @@ let dependencies = [ click-default-group condense-json - numpy + httpx2 openai pip pluggy @@ -206,7 +197,6 @@ let python-ulid pyyaml setuptools # for pkg_resources - sqlite-migrate sqlite-utils ]; @@ -214,7 +204,7 @@ let cogapp numpy pytest-asyncio - pytest-httpx + httpx2-pytest pytest-recording syrupy pytestCheckHook diff --git a/pkgs/development/python-modules/llm/do-not-commit-inside-content_hash-embeddings.patch b/pkgs/development/python-modules/llm/do-not-commit-inside-content_hash-embeddings.patch deleted file mode 100644 index 003786de207a..000000000000 --- a/pkgs/development/python-modules/llm/do-not-commit-inside-content_hash-embeddings.patch +++ /dev/null @@ -1,66 +0,0 @@ -From db03b44068e71f5266b720eb68ecae50e3e14303 Mon Sep 17 00:00:00 2001 -From: Ewerton Silva -Date: Sat, 11 Jul 2026 23:50:58 -0300 -Subject: [PATCH] fix: do not commit inside the content_hash embeddings - migration - ---- - llm/embeddings_migrations.py | 21 ++++++++++----------- - tests/test_migrate.py | 12 ++++++++++++ - 2 files changed, 22 insertions(+), 11 deletions(-) - -diff --git a/llm/embeddings_migrations.py b/llm/embeddings_migrations.py -index 96444bd65..595a692d9 100644 ---- a/llm/embeddings_migrations.py -+++ b/llm/embeddings_migrations.py -@@ -62,17 +62,16 @@ def random_md5(): - db.conn.create_function("temp_md5", 1, md5) - db.conn.create_function("temp_random_md5", 0, random_md5) - -- with db.conn: -- db.execute(""" -- update embeddings -- set content_hash = temp_md5(content) -- where content is not null -- """) -- db.execute(""" -- update embeddings -- set content_hash = temp_random_md5() -- where content is null -- """) -+ db.execute(""" -+ update embeddings -+ set content_hash = temp_md5(content) -+ where content is not null -+ """) -+ db.execute(""" -+ update embeddings -+ set content_hash = temp_random_md5() -+ where content is null -+ """) - - db["embeddings"].create_index(["content_hash"]) - -diff --git a/tests/test_migrate.py b/tests/test_migrate.py -index 705021100..e74b1554b 100644 ---- a/tests/test_migrate.py -+++ b/tests/test_migrate.py -@@ -117,6 +117,18 @@ def test_migrations_for_embeddings(): - assert db["embeddings"].foreign_keys[0].other_table == "collections" - - -+@pytest.mark.skipif( -+ not hasattr(sqlite_utils.Database, "atomic"), -+ reason="sqlite-utils 4 and higher run each migration inside a transaction", -+) -+def test_embeddings_migrations_do_not_commit(): -+ # https://github.com/simonw/llm/issues/1523 -+ db = sqlite_utils.Database(memory=True) -+ for migration in embeddings_migrations.pending(db): -+ with db.atomic(): -+ migration.fn(db) -+ -+ - def test_backfill_content_hash(): - db = sqlite_utils.Database(memory=True) - # Run migrations up to but not including m004_store_content_hash diff --git a/pkgs/development/python-modules/llmx/default.nix b/pkgs/development/python-modules/llmx/default.nix index 3a918568c958..6cacd1a24892 100644 --- a/pkgs/development/python-modules/llmx/default.nix +++ b/pkgs/development/python-modules/llmx/default.nix @@ -2,29 +2,33 @@ lib, buildPythonPackage, fetchPypi, + setuptools-scm, setuptools, - pydantic, - openai, - tiktoken, - diskcache, - cohere, - google-auth, - typer, - pyyaml, - transformers, - fastapi, - uvicorn, + accelerate, + anthropic, + bitsandbytes, + cohere, + diskcache, + fastapi, + google-auth, + openai, + pydantic, + pyyaml, + tiktoken, + transformers, + typer, + uvicorn, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "llmx"; version = "0.0.21a0"; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-OEo6wIaDTktzAsP0rOmhxjFSHygTR/EpcRI6AXsu+6M="; }; @@ -34,14 +38,15 @@ buildPythonPackage rec { ]; dependencies = [ - pydantic - openai - tiktoken - diskcache + anthropic cohere + diskcache google-auth - typer + openai + pydantic pyyaml + tiktoken + typer ]; optional-dependencies = { @@ -51,6 +56,7 @@ buildPythonPackage rec { ]; transformers = [ accelerate + bitsandbytes transformers ] ++ transformers.optional-dependencies.torch; @@ -68,4 +74,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ moraxyc ]; }; -} +}) diff --git a/pkgs/development/python-modules/llvmlite/default.nix b/pkgs/development/python-modules/llvmlite/default.nix index e7c1181839d7..78f8b68c68be 100644 --- a/pkgs/development/python-modules/llvmlite/default.nix +++ b/pkgs/development/python-modules/llvmlite/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "llvmlite"; version = "0.49.0"; pyproject = true; - __structuredAttrs = true; disabled = isPyPy; diff --git a/pkgs/development/python-modules/lmstudio/default.nix b/pkgs/development/python-modules/lmstudio/default.nix index a5a1442e9e2b..ea5fc368492e 100644 --- a/pkgs/development/python-modules/lmstudio/default.nix +++ b/pkgs/development/python-modules/lmstudio/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "lmstudio"; version = "1.6.0b1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lmstudio-ai"; diff --git a/pkgs/development/python-modules/lnkparse3/default.nix b/pkgs/development/python-modules/lnkparse3/default.nix index e8383e05fe87..fb3563b96706 100644 --- a/pkgs/development/python-modules/lnkparse3/default.nix +++ b/pkgs/development/python-modules/lnkparse3/default.nix @@ -11,7 +11,6 @@ buildPythonPackage rec { pname = "lnkparse3"; version = "1.6.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Matmaus"; diff --git a/pkgs/development/python-modules/logfire/default.nix b/pkgs/development/python-modules/logfire/default.nix index fe194f648d4f..7a15197b4794 100644 --- a/pkgs/development/python-modules/logfire/default.nix +++ b/pkgs/development/python-modules/logfire/default.nix @@ -66,7 +66,6 @@ buildPythonPackage (finalAttrs: { pname = "logfire"; version = "4.41.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pydantic"; diff --git a/pkgs/development/python-modules/logica/default.nix b/pkgs/development/python-modules/logica/default.nix index dd680860cf28..67683b11f8a9 100644 --- a/pkgs/development/python-modules/logica/default.nix +++ b/pkgs/development/python-modules/logica/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.3.1415926535897"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-d5G/juvEOoBupWTneeKt85sPfZIyYYiFIywjwKCroaM="; diff --git a/pkgs/development/python-modules/loky/default.nix b/pkgs/development/python-modules/loky/default.nix index fbff9b32c2eb..843baa2b8026 100644 --- a/pkgs/development/python-modules/loky/default.nix +++ b/pkgs/development/python-modules/loky/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "loky"; version = "3.7.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "joblib"; diff --git a/pkgs/development/python-modules/lookup-license/default.nix b/pkgs/development/python-modules/lookup-license/default.nix index f6ccfde500be..496c7e94aaef 100644 --- a/pkgs/development/python-modules/lookup-license/default.nix +++ b/pkgs/development/python-modules/lookup-license/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "lookup-license"; version = "0.1.31"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "hesa"; diff --git a/pkgs/development/python-modules/loompy/default.nix b/pkgs/development/python-modules/loompy/default.nix index 5b0e789519a3..1f7e19382972 100644 --- a/pkgs/development/python-modules/loompy/default.nix +++ b/pkgs/development/python-modules/loompy/default.nix @@ -17,8 +17,6 @@ let version = "3.0.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-wfSNC/Iaorve7iGgV3VTy6lgnZQ118MraHaGu7WGnKc="; diff --git a/pkgs/development/python-modules/lxmf/default.nix b/pkgs/development/python-modules/lxmf/default.nix index acb08bca236c..b4d15cdd6533 100644 --- a/pkgs/development/python-modules/lxmf/default.nix +++ b/pkgs/development/python-modules/lxmf/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "lxmf"; version = "1.2.1"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/lxst/default.nix b/pkgs/development/python-modules/lxst/default.nix index 2e2ed0d77d50..163ef8773bbe 100644 --- a/pkgs/development/python-modules/lxst/default.nix +++ b/pkgs/development/python-modules/lxst/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "lxst"; version = "0.5.4"; format = "wheel"; - __structuredAttrs = true; src = fetchPypi { pname = "lxst"; diff --git a/pkgs/development/python-modules/mace-torch/default.nix b/pkgs/development/python-modules/mace-torch/default.nix index 0122bffd13ca..815f7bbd435e 100644 --- a/pkgs/development/python-modules/mace-torch/default.nix +++ b/pkgs/development/python-modules/mace-torch/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "mace-torch"; version = "0.3.16"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "acesuit"; diff --git a/pkgs/development/python-modules/maestral/default.nix b/pkgs/development/python-modules/maestral/default.nix index 237c1e2746b0..bf8c18a94f7b 100644 --- a/pkgs/development/python-modules/maestral/default.nix +++ b/pkgs/development/python-modules/maestral/default.nix @@ -85,8 +85,7 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ pytestCheckHook ]; - # ModuleNotFoundError: No module named '_watchdog_fsevents' - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); + doCheck = true; preCheck = '' export HOME=$(mktemp -d) diff --git a/pkgs/development/python-modules/maia3/default.nix b/pkgs/development/python-modules/maia3/default.nix index 14659e5e6f3e..ef7caad67c83 100644 --- a/pkgs/development/python-modules/maia3/default.nix +++ b/pkgs/development/python-modules/maia3/default.nix @@ -21,8 +21,6 @@ buildPythonPackage (finalAttrs: { hash = "sha256-gDgZTetHVB+KVKNJvAdcgjfvUBNwvWbDra1D8gQDvw8="; }; - __structuredAttrs = true; - # to be updated and removed when https://github.com/CSSLab/maia3/pull/10 is merged postPatch = '' substituteInPlace pyproject.toml \ diff --git a/pkgs/development/python-modules/manim/default.nix b/pkgs/development/python-modules/manim/default.nix index 73bbde536b6a..2e4ec0a4e14c 100644 --- a/pkgs/development/python-modules/manim/default.nix +++ b/pkgs/development/python-modules/manim/default.nix @@ -191,7 +191,6 @@ buildPythonPackage (finalAttrs: { pname = "manim"; version = "0.22.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ManimCommunity"; diff --git a/pkgs/development/python-modules/manuel/default.nix b/pkgs/development/python-modules/manuel/default.nix index bb619cb9e6b5..aa197e35d3c0 100644 --- a/pkgs/development/python-modules/manuel/default.nix +++ b/pkgs/development/python-modules/manuel/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.13.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-XWMSDej6bZJ3gLaa4oqj6dFmmxCvPTJ4Xz+6EaW+iFo="; diff --git a/pkgs/development/python-modules/markdown/default.nix b/pkgs/development/python-modules/markdown/default.nix index 91024f7208e9..ef9f0a727a9b 100644 --- a/pkgs/development/python-modules/markdown/default.nix +++ b/pkgs/development/python-modules/markdown/default.nix @@ -9,14 +9,14 @@ buildPythonPackage (finalAttrs: { pname = "markdown"; - version = "3.10.3"; + version = "3.11.0"; pyproject = true; src = fetchFromGitHub { owner = "Python-Markdown"; repo = "markdown"; tag = finalAttrs.version; - hash = "sha256-itRigH1234C6hwtGRon4AiDAKafscmhMn22V5J9WtvI="; + hash = "sha256-EARGwp33cD7bBSaGv/4LtgdI6GQqR+AFkcT2QFo6hWo="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/matscipy/default.nix b/pkgs/development/python-modules/matscipy/default.nix index 57bb0f26b894..385c502b688e 100644 --- a/pkgs/development/python-modules/matscipy/default.nix +++ b/pkgs/development/python-modules/matscipy/default.nix @@ -48,7 +48,6 @@ buildPythonPackage (finalAttrs: { pname = "matscipy"; version = "1.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "libAtoms"; diff --git a/pkgs/development/python-modules/matter-ble-proxy/default.nix b/pkgs/development/python-modules/matter-ble-proxy/default.nix index c1aeb0876a3b..dee36c066ee3 100644 --- a/pkgs/development/python-modules/matter-ble-proxy/default.nix +++ b/pkgs/development/python-modules/matter-ble-proxy/default.nix @@ -47,8 +47,6 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "matter_ble_proxy" ]; - __structuredAttrs = true; - meta = { description = "Client library for the OHF Matter Server BLE proxy protocol"; homepage = "https://github.com/matter-js/matterjs-server/tree/main/python_ble_proxy"; diff --git a/pkgs/development/python-modules/mcp-types/default.nix b/pkgs/development/python-modules/mcp-types/default.nix index 0d7c85819fe8..6e613d4ccfb1 100644 --- a/pkgs/development/python-modules/mcp-types/default.nix +++ b/pkgs/development/python-modules/mcp-types/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "mcp-types"; inherit (mcp) version src; pyproject = true; - __structuredAttrs = true; sourceRoot = "${finalAttrs.src.name}/src/mcp-types"; diff --git a/pkgs/development/python-modules/mcp/1.nix b/pkgs/development/python-modules/mcp/1.nix index 14a7c1b9670c..a168b6cc90c4 100644 --- a/pkgs/development/python-modules/mcp/1.nix +++ b/pkgs/development/python-modules/mcp/1.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "mcp"; version = "1.29.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "modelcontextprotocol"; diff --git a/pkgs/development/python-modules/mcp/default.nix b/pkgs/development/python-modules/mcp/default.nix index c132dd7207a4..e91dc236e2da 100644 --- a/pkgs/development/python-modules/mcp/default.nix +++ b/pkgs/development/python-modules/mcp/default.nix @@ -50,7 +50,6 @@ buildPythonPackage (finalAttrs: { pname = "mcp"; version = "2.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "modelcontextprotocol"; diff --git a/pkgs/development/python-modules/mergedict/default.nix b/pkgs/development/python-modules/mergedict/default.nix index 67e391344d93..5f3031b3031e 100644 --- a/pkgs/development/python-modules/mergedict/default.nix +++ b/pkgs/development/python-modules/mergedict/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-4ZkrNqVCKQFPvLx6nIwo0fSuEx6h2NNFyTlz+fDcb9w="; diff --git a/pkgs/development/python-modules/meshcore-cli/default.nix b/pkgs/development/python-modules/meshcore-cli/default.nix index fe5873da29d8..9f869d2b4d56 100644 --- a/pkgs/development/python-modules/meshcore-cli/default.nix +++ b/pkgs/development/python-modules/meshcore-cli/default.nix @@ -40,8 +40,6 @@ buildPythonPackage (finalAttrs: { doCheck = false; # no tests - __structuredAttrs = true; - meta = { changelog = "https://github.com/meshcore-dev/meshcore-cli/releases/tag/${finalAttrs.src.tag}"; description = "Command line interface to MeshCore node"; diff --git a/pkgs/development/python-modules/meson-python/default.nix b/pkgs/development/python-modules/meson-python/default.nix index b618b5a5856a..1695fb53ed6c 100644 --- a/pkgs/development/python-modules/meson-python/default.nix +++ b/pkgs/development/python-modules/meson-python/default.nix @@ -20,13 +20,13 @@ buildPythonPackage rec { pname = "meson-python"; - version = "0.20.0"; + version = "0.22.1"; pyproject = true; src = fetchPypi { inherit version; pname = "meson_python"; - hash = "sha256-bZcmrmzTfiLyEMdLNkswGApowgRC6X/wnzxWakFK9zg="; + hash = "sha256-UsiGKLDlZxWS3CMGYT+19vNhX9JN7wWbmJTxQ7f5oTk="; }; build-system = [ @@ -51,6 +51,16 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; + # For the ld-wrapper to work, we need to use pure rpaths. + # Ones under $out will do (even though there's no native library in it) + preCheck = '' + substituteInPlace tests/test_wheel.py \ + --replace-fail /usr/lib/test-ldflags "$out/lib/test-ldflags" \ + --replace-fail /usr/local/lib "$out/lib" + substituteInPlace tests/packages/purelib-and-platlib/meson.build \ + --replace-fail /usr/local/lib "$out/lib" + ''; + setupHooks = [ ./add-build-flags.sh ]; meta = { diff --git a/pkgs/development/python-modules/mhcflurry/default.nix b/pkgs/development/python-modules/mhcflurry/default.nix index f75fe77d754f..34f070a97e7d 100644 --- a/pkgs/development/python-modules/mhcflurry/default.nix +++ b/pkgs/development/python-modules/mhcflurry/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "mhcflurry"; version = "2.3.24"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "openvax"; diff --git a/pkgs/development/python-modules/miltertest/default.nix b/pkgs/development/python-modules/miltertest/default.nix index 029f3eca1f6f..469f03f473da 100644 --- a/pkgs/development/python-modules/miltertest/default.nix +++ b/pkgs/development/python-modules/miltertest/default.nix @@ -10,7 +10,6 @@ buildPythonPackage rec { pname = "miltertest"; version = "1.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "flowerysong"; diff --git a/pkgs/development/python-modules/minari/default.nix b/pkgs/development/python-modules/minari/default.nix index fe8357ec1e3a..4c5d0bbaa7f3 100644 --- a/pkgs/development/python-modules/minari/default.nix +++ b/pkgs/development/python-modules/minari/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "minari"; version = "0.5.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Farama-Foundation"; diff --git a/pkgs/development/python-modules/mindsdb-evaluator/default.nix b/pkgs/development/python-modules/mindsdb-evaluator/default.nix index b31f3bd509be..167effd908cb 100644 --- a/pkgs/development/python-modules/mindsdb-evaluator/default.nix +++ b/pkgs/development/python-modules/mindsdb-evaluator/default.nix @@ -11,7 +11,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mindsdb-evaluator"; version = "0.0.21"; pyproject = true; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "mindsdb"; repo = "mindsdb_evaluator"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-eUdGtHLbI6T7HsUqkVkTp040pbq7qVzgaldQxPAzjTc="; }; @@ -28,6 +28,7 @@ buildPythonPackage rec { pythonRelaxDeps = [ "dataprep-ml" "numpy" + "pandas" "scikit-learn" ]; @@ -46,10 +47,10 @@ buildPythonPackage rec { ]; meta = { - changelog = "https://github.com/mindsdb/mindsdb_evaluator/releases/tag/${src.tag}"; + changelog = "https://github.com/mindsdb/mindsdb_evaluator/releases/tag/${finalAttrs.src.tag}"; description = "Model evaluation for Machine Learning pipelines"; homepage = "https://github.com/mindsdb/mindsdb_evaluator"; license = lib.licenses.gpl3Only; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/minikanren/default.nix b/pkgs/development/python-modules/minikanren/default.nix index 457587e272b8..dcd3a60b9f0e 100644 --- a/pkgs/development/python-modules/minikanren/default.nix +++ b/pkgs/development/python-modules/minikanren/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "minikanren"; version = "1.0.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pythological"; diff --git a/pkgs/development/python-modules/mistral-common/default.nix b/pkgs/development/python-modules/mistral-common/default.nix index e5dfd4073369..4bb9c8296907 100644 --- a/pkgs/development/python-modules/mistral-common/default.nix +++ b/pkgs/development/python-modules/mistral-common/default.nix @@ -41,7 +41,6 @@ buildPythonPackage (finalAttrs: { pname = "mistral-common"; version = "1.12.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mistralai"; diff --git a/pkgs/development/python-modules/mistralai/default.nix b/pkgs/development/python-modules/mistralai/default.nix index 4f1c713d8763..2215e9e878ba 100644 --- a/pkgs/development/python-modules/mistralai/default.nix +++ b/pkgs/development/python-modules/mistralai/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "mistralai"; version = "3.7.0"; pyproject = true; - __structuredAttrs = true; # Upstream stopped tagging releases on GitHub after v3.2.0 src = fetchPypi { diff --git a/pkgs/development/python-modules/mistune/default.nix b/pkgs/development/python-modules/mistune/default.nix index ad9fd2bd3d7a..03abf22fdf40 100644 --- a/pkgs/development/python-modules/mistune/default.nix +++ b/pkgs/development/python-modules/mistune/default.nix @@ -8,14 +8,14 @@ buildPythonPackage (finalAttrs: { pname = "mistune"; - version = "3.3.4"; + version = "3.4.0"; pyproject = true; src = fetchFromGitHub { owner = "lepture"; repo = "mistune"; tag = "v${finalAttrs.version}"; - hash = "sha256-7N1Kz2lN6GyDVKUhuGrEkbinV8Vpc4aahal/7KhnIXo="; + hash = "sha256-gbdjLZ6caH4dgHAJoZcLcOFBfGUp5NJ4WbJj9+EleGg="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/mizani/default.nix b/pkgs/development/python-modules/mizani/default.nix index f577be157085..577591f07d28 100644 --- a/pkgs/development/python-modules/mizani/default.nix +++ b/pkgs/development/python-modules/mizani/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "mizani"; version = "0.14.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "has2k1"; diff --git a/pkgs/development/python-modules/mjviser/default.nix b/pkgs/development/python-modules/mjviser/default.nix index 508a3858097c..55b816343206 100644 --- a/pkgs/development/python-modules/mjviser/default.nix +++ b/pkgs/development/python-modules/mjviser/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "mjviser"; version = "0.0.14"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mujocolab"; diff --git a/pkgs/development/python-modules/mkdocs/default.nix b/pkgs/development/python-modules/mkdocs/default.nix index c82a0e7e3f88..1dfff4cb3606 100644 --- a/pkgs/development/python-modules/mkdocs/default.nix +++ b/pkgs/development/python-modules/mkdocs/default.nix @@ -32,7 +32,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mkdocs"; version = "1.6.1"; pyproject = true; @@ -40,7 +40,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "mkdocs"; repo = "mkdocs"; - tag = version; + tag = finalAttrs.version; hash = "sha256-JQSOgV12iYE6FubxdoJpWy9EHKFxyKoxrm/7arCn9Ak="; }; @@ -80,19 +80,18 @@ buildPythonPackage rec { unittestCheckHook mock ] - ++ optional-dependencies.i18n; + ++ finalAttrs.finalPackage.passthru.optional-dependencies.i18n; - unittestFlagsArray = [ + unittestFlags = [ + "--start-directory=mkdocs" + "--pattern=*tests.py" "-v" - "-p" - "'*tests.py'" - "mkdocs" ]; pythonImportsCheck = [ "mkdocs" ]; meta = { - changelog = "https://github.com/mkdocs/mkdocs/releases/tag/${version}"; + changelog = "https://github.com/mkdocs/mkdocs/releases/tag/${finalAttrs.src.tag}"; description = "Project documentation with Markdown / static website generator"; mainProgram = "mkdocs"; downloadPage = "https://github.com/mkdocs/mkdocs"; @@ -108,4 +107,4 @@ buildPythonPackage rec { platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ rkoe ]; }; -} +}) diff --git a/pkgs/development/python-modules/mlcroissant/default.nix b/pkgs/development/python-modules/mlcroissant/default.nix index 04f1bdf2cd92..665cd9cd6f66 100644 --- a/pkgs/development/python-modules/mlcroissant/default.nix +++ b/pkgs/development/python-modules/mlcroissant/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "mlcroissant"; version = "1.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mlcommons"; diff --git a/pkgs/development/python-modules/mlflow-skinny/default.nix b/pkgs/development/python-modules/mlflow-skinny/default.nix index 8a3955aa2372..f33ce72de0cd 100644 --- a/pkgs/development/python-modules/mlflow-skinny/default.nix +++ b/pkgs/development/python-modules/mlflow-skinny/default.nix @@ -35,7 +35,6 @@ buildPythonPackage (finalAttrs: { pname = "mlflow-skinny"; inherit (mlflow) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mlflow"; diff --git a/pkgs/development/python-modules/mlflow-tracing/default.nix b/pkgs/development/python-modules/mlflow-tracing/default.nix index 40417b6eda46..44cedd541379 100644 --- a/pkgs/development/python-modules/mlflow-tracing/default.nix +++ b/pkgs/development/python-modules/mlflow-tracing/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "mlflow-tracing"; inherit (mlflow) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mlflow"; diff --git a/pkgs/development/python-modules/mlflow/default.nix b/pkgs/development/python-modules/mlflow/default.nix index 696ca603d369..5cf0e9542270 100644 --- a/pkgs/development/python-modules/mlflow/default.nix +++ b/pkgs/development/python-modules/mlflow/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "mlflow"; version = "3.17.1"; format = "wheel"; - __structuredAttrs = true; # We build from the PyPI wheel rather than fetchFromGitHub, because the mlflow-server # JS UI is absent from GitHub but provided in the wheel. diff --git a/pkgs/development/python-modules/mlx-lm/default.nix b/pkgs/development/python-modules/mlx-lm/default.nix index 873a9154ec2f..e3b389d70699 100644 --- a/pkgs/development/python-modules/mlx-lm/default.nix +++ b/pkgs/development/python-modules/mlx-lm/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "mlx-lm"; version = "0.32.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ml-explore"; diff --git a/pkgs/development/python-modules/mlx/bin.nix b/pkgs/development/python-modules/mlx/bin.nix index 7e81a43f98de..d87bc0c55a8e 100644 --- a/pkgs/development/python-modules/mlx/bin.nix +++ b/pkgs/development/python-modules/mlx/bin.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "mlx"; inherit version; format = "wheel"; - __structuredAttrs = true; disabled = !(srcs ? ${sourceKey}); diff --git a/pkgs/development/python-modules/mlx/default.nix b/pkgs/development/python-modules/mlx/default.nix index 19a761c6237b..75a67f8ea0b0 100644 --- a/pkgs/development/python-modules/mlx/default.nix +++ b/pkgs/development/python-modules/mlx/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "mlx"; version = "0.32.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ml-explore"; diff --git a/pkgs/development/python-modules/mlx/metal.nix b/pkgs/development/python-modules/mlx/metal.nix index 7fbd1ef994eb..b2c30ad40435 100644 --- a/pkgs/development/python-modules/mlx/metal.nix +++ b/pkgs/development/python-modules/mlx/metal.nix @@ -25,7 +25,6 @@ buildPythonPackage rec { pname = "mlx-metal"; inherit (wheelSources) version; format = "wheel"; - __structuredAttrs = true; src = srcs.${macosVariant} or (throw "mlx-metal: unsupported macOS wheel variant ${macosVariant}"); diff --git a/pkgs/development/python-modules/mlxtend/default.nix b/pkgs/development/python-modules/mlxtend/default.nix index 1ce723a1af9a..07c819446e07 100644 --- a/pkgs/development/python-modules/mlxtend/default.nix +++ b/pkgs/development/python-modules/mlxtend/default.nix @@ -50,6 +50,9 @@ buildPythonPackage rec { "test_invalid_labels_1" "test_default" "test_nullability" + # test_sample_weight fails due to numeric precision differences + "test_sample_weight" + "test_fit_params" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/mmcv/default.nix b/pkgs/development/python-modules/mmcv/default.nix index 4bfbb8e3e8ae..badbe4878b64 100644 --- a/pkgs/development/python-modules/mmcv/default.nix +++ b/pkgs/development/python-modules/mmcv/default.nix @@ -147,10 +147,6 @@ buildPythonPackage (finalAttrs: { "test_ycbcr2rgb" "test_ycbcr2bgr" "test_tensor2imgs" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Fatal Python error: Segmentation fault - "test_transform" ]; meta = { diff --git a/pkgs/development/python-modules/mmtf-python/default.nix b/pkgs/development/python-modules/mmtf-python/default.nix index 9e40d8a76adc..f32ed8e198f4 100644 --- a/pkgs/development/python-modules/mmtf-python/default.nix +++ b/pkgs/development/python-modules/mmtf-python/default.nix @@ -7,13 +7,14 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mmtf-python"; version = "1.1.3"; format = "setuptools"; src = fetchPypi { - inherit pname version; + pname = "mmtf-python"; + inherit (finalAttrs) version; hash = "sha256-EqAv4bcTHworjORbRvHgzdKLmBj+RJlVTCaISYfqDDI="; }; @@ -24,9 +25,9 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s mmtf/tests" - "-p \"*_tests.py\"" + unittestFlags = [ + "--start-directory=mmtf/tests" + "--pattern=*_tests.py" ]; pythonImportsCheck = [ "mmtf" ]; @@ -34,8 +35,8 @@ buildPythonPackage rec { meta = { description = "Python implementation of the MMTF API, decoder and encoder"; homepage = "https://github.com/rcsb/mmtf-python"; - changelog = "https://github.com/rcsb/mmtf-python/releases/tag/v${version}"; + changelog = "https://github.com/rcsb/mmtf-python/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ natsukium ]; }; -} +}) diff --git a/pkgs/development/python-modules/mne/default.nix b/pkgs/development/python-modules/mne/default.nix index 7a767a48fd63..76aefda15870 100644 --- a/pkgs/development/python-modules/mne/default.nix +++ b/pkgs/development/python-modules/mne/default.nix @@ -32,8 +32,6 @@ buildPythonPackage rec { version = "1.12.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "mne-tools"; repo = "mne-python"; diff --git a/pkgs/development/python-modules/modal/default.nix b/pkgs/development/python-modules/modal/default.nix index a8ca65bf6c8b..a1f66bf3115e 100644 --- a/pkgs/development/python-modules/modal/default.nix +++ b/pkgs/development/python-modules/modal/default.nix @@ -50,7 +50,6 @@ buildPythonPackage (finalAttrs: { pname = "modal"; version = "1.6.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "modal-labs"; diff --git a/pkgs/development/python-modules/modbus-connection/default.nix b/pkgs/development/python-modules/modbus-connection/default.nix index c7d841fe7c9b..fa258e007f8c 100644 --- a/pkgs/development/python-modules/modbus-connection/default.nix +++ b/pkgs/development/python-modules/modbus-connection/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "modbus-connection"; version = "4.12.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "home-assistant-libs"; diff --git a/pkgs/development/python-modules/monty/default.nix b/pkgs/development/python-modules/monty/default.nix index 00a95a650ffd..b6560cbc7cdf 100644 --- a/pkgs/development/python-modules/monty/default.nix +++ b/pkgs/development/python-modules/monty/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "monty"; version = "2026.10.21"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "materialyzeai"; diff --git a/pkgs/development/python-modules/moocore/default.nix b/pkgs/development/python-modules/moocore/default.nix index 6b6de7dd0999..c02128abb66a 100644 --- a/pkgs/development/python-modules/moocore/default.nix +++ b/pkgs/development/python-modules/moocore/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "moocore"; version = "0.3.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "multi-objective"; diff --git a/pkgs/development/python-modules/mouser/default.nix b/pkgs/development/python-modules/mouser/default.nix index 52364f0fc7cd..daf3bc694845 100644 --- a/pkgs/development/python-modules/mouser/default.nix +++ b/pkgs/development/python-modules/mouser/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "mouser"; version = "0.1.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sparkmicro"; diff --git a/pkgs/development/python-modules/moyopy/default.nix b/pkgs/development/python-modules/moyopy/default.nix index cb48c8344201..b1e123852d95 100644 --- a/pkgs/development/python-modules/moyopy/default.nix +++ b/pkgs/development/python-modules/moyopy/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "moyopy"; version = "0.22.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "spglib"; diff --git a/pkgs/development/python-modules/mplhep/default.nix b/pkgs/development/python-modules/mplhep/default.nix index f459e30ad843..8bcfe8f7e37b 100644 --- a/pkgs/development/python-modules/mplhep/default.nix +++ b/pkgs/development/python-modules/mplhep/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "mplhep"; version = "1.3.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scikit-hep"; diff --git a/pkgs/development/python-modules/mpmath/default.nix b/pkgs/development/python-modules/mpmath/default.nix index a1daf9120245..01c2299b1d8c 100644 --- a/pkgs/development/python-modules/mpmath/default.nix +++ b/pkgs/development/python-modules/mpmath/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, gmpy2, @@ -47,16 +46,6 @@ buildPythonPackage (finalAttrs: { pexpect ]; - # Ugly hack to preserve the hash on non-`x86_64-darwin` platforms - ${if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 then "disabledTests" else null} = - [ - # Expected: - # -0.5440211108893698 - # Got: - # -0.5440211108893699 - "contexts.rst" - ]; - meta = { homepage = "https://mpmath.org/"; description = "Pure-Python library for multiprecision floating arithmetic"; diff --git a/pkgs/development/python-modules/mrjob/default.nix b/pkgs/development/python-modules/mrjob/default.nix index 214dfeff8b55..6c1dbb63676d 100644 --- a/pkgs/development/python-modules/mrjob/default.nix +++ b/pkgs/development/python-modules/mrjob/default.nix @@ -28,7 +28,7 @@ warcio, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mrjob"; version = "0.7.4"; pyproject = true; @@ -36,7 +36,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Yelp"; repo = "mrjob"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Yp4yUx6tkyGB622I9y+AWK2AkIDVGKQPMM+LtB/M3uo="; }; @@ -72,15 +72,15 @@ buildPythonPackage rec { unittestCheckHook warcio ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.finalPackage.passthru.optional-dependencies; - unittestFlagsArray = [ "-v" ]; + unittestFlags = [ "-v" ]; meta = { - changelog = "https://github.com/Yelp/mrjob/blob/v${version}/CHANGES.txt"; + changelog = "https://github.com/Yelp/mrjob/blob/v${finalAttrs.version}/CHANGES.txt"; description = "Run MapReduce jobs on Hadoop or Amazon Web Services"; homepage = "https://github.com/Yelp/mrjob"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/mrsqm/default.nix b/pkgs/development/python-modules/mrsqm/default.nix index e1c70f23bc72..338961d17b27 100644 --- a/pkgs/development/python-modules/mrsqm/default.nix +++ b/pkgs/development/python-modules/mrsqm/default.nix @@ -10,28 +10,33 @@ pip, setuptools, pytestCheckHook, - nix-update-script, + writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mrsqm"; - version = "4"; + version = "0.0.7"; pyproject = true; - build-system = [ - setuptools - ]; - src = fetchFromGitHub { owner = "mlgig"; repo = "mrsqm"; - tag = "r${version}"; - hash = "sha256-59f18zItV3K6tXcg1v1q2Z8HYrQB8T0ntaaqjxeAEbM="; + tag = "v.${finalAttrs.version}"; + hash = "sha256-5K6vCU0HExnmYNThZNDCbEtII9bUGauxDtKkJXe/85Q="; }; - buildInputs = [ fftw ]; + nativeBuildInputs = [ + writableTmpDirAsHomeHook + ]; - nativeBuildInputs = [ cython ]; + build-system = [ + setuptools + cython + ]; + + buildInputs = [ + fftw + ]; dependencies = [ pandas @@ -43,36 +48,22 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ --replace-fail "setup_requires=['pytest-runner']," "" - substituteInPlace pyproject.toml \ - --replace-fail "numpy==" "numpy>=" - ''; - - preBuild = '' - export HOME=$(mktemp -d) ''; nativeCheckInputs = [ pytestCheckHook ]; - enabledTestPaths = [ - "tests/mrsqm" - ]; + # all tests are broken + doCheck = false; pythonImportsCheck = [ "mrsqm" ]; - passthru.updateScript = nix-update-script { - extraArgs = [ - "--version-regex" - "v\\.(.*)" - ]; - }; - meta = { description = "MrSQM (Multiple Representations Sequence Miner) is a time series classifier"; homepage = "https://pypi.org/project/mrsqm"; - changelog = "https://github.com/mlgig/mrsqm/releases/tag/v.${src.tag}"; + changelog = "https://github.com/mlgig/mrsqm/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Only; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/msgpack-numpy-opentensor/default.nix b/pkgs/development/python-modules/msgpack-numpy-opentensor/default.nix index 574239460dd2..26972320253a 100644 --- a/pkgs/development/python-modules/msgpack-numpy-opentensor/default.nix +++ b/pkgs/development/python-modules/msgpack-numpy-opentensor/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.0"; pyproject = true; - __structuredAttrs = true; - # The GitHub repo does not tag the same releases as PyPi, so we use PyPi directly instead. src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/msgpack/default.nix b/pkgs/development/python-modules/msgpack/default.nix index 3f519e329565..3b5c1a2822fc 100644 --- a/pkgs/development/python-modules/msgpack/default.nix +++ b/pkgs/development/python-modules/msgpack/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "msgpack"; - version = "1.2.1"; + version = "1.2.4"; pyproject = true; src = fetchFromGitHub { owner = "msgpack"; repo = "msgpack-python"; tag = "v${version}"; - hash = "sha256-L8nU+n0M3NJvQzjRlWESXvzP6CxR5CTSu7UkeGfHHUs="; + hash = "sha256-BLuQYb0ClT2t91vPgM/ObemWTtdIOaPLHRwDzXlGM/k="; }; build-system = [ setuptools ]; @@ -41,7 +41,7 @@ buildPythonPackage rec { meta = { description = "MessagePack serializer implementation"; homepage = "https://github.com/msgpack/msgpack-python"; - changelog = "https://github.com/msgpack/msgpack-python/blob/${src.tag}/ChangeLog.rst"; + changelog = "https://github.com/msgpack/msgpack-python/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ nickcao ]; }; diff --git a/pkgs/development/python-modules/msticpy/default.nix b/pkgs/development/python-modules/msticpy/default.nix index b147fce28941..54fdd548734b 100644 --- a/pkgs/development/python-modules/msticpy/default.nix +++ b/pkgs/development/python-modules/msticpy/default.nix @@ -53,7 +53,6 @@ buildPythonPackage (finalAttrs: { pname = "msticpy"; version = "3.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "microsoft"; diff --git a/pkgs/development/python-modules/mujoco-mjx/default.nix b/pkgs/development/python-modules/mujoco-mjx/default.nix index 7e6acf652166..206ff068f02e 100644 --- a/pkgs/development/python-modules/mujoco-mjx/default.nix +++ b/pkgs/development/python-modules/mujoco-mjx/default.nix @@ -23,7 +23,6 @@ buildPythonPackage { pname = "mujoco-mjx"; inherit (mujoco-main) src version; pyproject = true; - __structuredAttrs = true; sourceRoot = "${mujoco-main.src.name}/mjx"; diff --git a/pkgs/development/python-modules/mujoco-warp/default.nix b/pkgs/development/python-modules/mujoco-warp/default.nix index 7875ff2ab96a..b2e316209045 100644 --- a/pkgs/development/python-modules/mujoco-warp/default.nix +++ b/pkgs/development/python-modules/mujoco-warp/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "mujoco-warp"; inherit (mujoco) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google-deepmind"; diff --git a/pkgs/development/python-modules/mujoco/default.nix b/pkgs/development/python-modules/mujoco/default.nix index 6e83226cbd7c..849e9dedac13 100644 --- a/pkgs/development/python-modules/mujoco/default.nix +++ b/pkgs/development/python-modules/mujoco/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { inherit (mujoco) version; pyproject = true; - __structuredAttrs = true; # We do not fetch from the repository because the PyPi tarball is # impurely build via diff --git a/pkgs/development/python-modules/multipart/default.nix b/pkgs/development/python-modules/multipart/default.nix index 439de00b98cc..691fbf5b4687 100644 --- a/pkgs/development/python-modules/multipart/default.nix +++ b/pkgs/development/python-modules/multipart/default.nix @@ -8,14 +8,14 @@ buildPythonPackage (finalAttrs: { pname = "multipart"; - version = "2.0.0"; + version = "2.0.1"; pyproject = true; src = fetchFromGitHub { owner = "defnull"; repo = "multipart"; tag = "v${finalAttrs.version}"; - hash = "sha256-1/G8qUnY7i5OvxkTSebC2pae9lzzfvnozJSVVylqB7w="; + hash = "sha256-Klo2HaIBo3xrCzQT2BxVpRCdaaKqCT1vtITMPABE6s0="; }; build-system = [ flit-core ]; diff --git a/pkgs/development/python-modules/muon-optimizer/default.nix b/pkgs/development/python-modules/muon-optimizer/default.nix index 5855c5feb4d2..8473c1346b18 100644 --- a/pkgs/development/python-modules/muon-optimizer/default.nix +++ b/pkgs/development/python-modules/muon-optimizer/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "muon-optimizer"; version = "0.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "muon_optimizer"; diff --git a/pkgs/development/python-modules/mutesync/default.nix b/pkgs/development/python-modules/mutesync/default.nix index 472c1ce837d1..33f2205848a9 100644 --- a/pkgs/development/python-modules/mutesync/default.nix +++ b/pkgs/development/python-modules/mutesync/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "mutesync"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/mygpoclient/default.nix b/pkgs/development/python-modules/mygpoclient/default.nix index 5c18cb00ba2b..e826ad2eb2f7 100644 --- a/pkgs/development/python-modules/mygpoclient/default.nix +++ b/pkgs/development/python-modules/mygpoclient/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, setuptools, @@ -29,10 +28,6 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "mygpoclient/http_test.py" - ]; - __darwinAllowLocalNetworking = true; meta = { diff --git a/pkgs/development/python-modules/mypy/default.nix b/pkgs/development/python-modules/mypy/default.nix index a50eb9c32761..ac81e30ebde3 100644 --- a/pkgs/development/python-modules/mypy/default.nix +++ b/pkgs/development/python-modules/mypy/default.nix @@ -6,7 +6,6 @@ gitUpdater, pythonAtLeast, isPyPy, - fetchpatch, # build-system pathspec, @@ -37,7 +36,7 @@ buildPythonPackage rec { pname = "mypy"; - version = "2.1.0"; + version = "2.3.1"; pyproject = true; # relies on several CPython internals @@ -47,18 +46,9 @@ buildPythonPackage rec { owner = "python"; repo = "mypy"; tag = "v${version}"; - hash = "sha256-sm/pxQGxH5XuPH7B8i3fpp30KaFU9aSp6BT67UcDPvU="; + hash = "sha256-EkZVBWlT8l3oIC9UuDEJua6dxFDIL0o9k/3FJJFqMB4="; }; - patches = [ - # fix build w/ glibc-2.44 - # If Python.h isn't included first, a const redefinition error now occurs otherwise. - (fetchpatch { - url = "https://github.com/python/mypy/commit/46acbe85c0e1703ebf2e6d4c699772edcdcf4652.patch"; - hash = "sha256-KslHiKqinvvXZoxvCnZXOhCm7i8577PbSdNGudCsjZE="; - }) - ]; - passthru.updateScript = gitUpdater { rev-prefix = "v"; }; @@ -78,6 +68,7 @@ buildPythonPackage rec { ]; dependencies = [ + ast-serialize librt mypy-extensions pathspec @@ -164,6 +155,6 @@ buildPythonPackage rec { downloadPage = "https://github.com/python/mypy"; license = lib.licenses.mit; mainProgram = "mypy"; - maintainers = [ ]; + maintainers = with lib.maintainers; [ BrockoliniMorgan ]; }; } diff --git a/pkgs/development/python-modules/mypy/extensions.nix b/pkgs/development/python-modules/mypy/extensions.nix index fc8c85baae80..6c21dfaada96 100644 --- a/pkgs/development/python-modules/mypy/extensions.nix +++ b/pkgs/development/python-modules/mypy/extensions.nix @@ -37,6 +37,6 @@ buildPythonPackage rec { description = "Experimental type system extensions for programs checked with the mypy typechecker"; homepage = "https://www.mypy-lang.org"; license = lib.licenses.mit; - maintainers = [ ]; + maintainers = with lib.maintainers; [ BrockoliniMorgan ]; }; } diff --git a/pkgs/development/python-modules/nameparser/default.nix b/pkgs/development/python-modules/nameparser/default.nix index 51a2795bae8d..941590795989 100644 --- a/pkgs/development/python-modules/nameparser/default.nix +++ b/pkgs/development/python-modules/nameparser/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "derek73"; repo = "python-nameparser"; diff --git a/pkgs/development/python-modules/nanobind_3/default.nix b/pkgs/development/python-modules/nanobind_3/default.nix index b880b652ba1b..d6c80c88ca3f 100644 --- a/pkgs/development/python-modules/nanobind_3/default.nix +++ b/pkgs/development/python-modules/nanobind_3/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "nanobind"; version = "3.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "wjakob"; diff --git a/pkgs/development/python-modules/narwhals/default.nix b/pkgs/development/python-modules/narwhals/default.nix index 35096f7f9bea..aefbe378e0e5 100644 --- a/pkgs/development/python-modules/narwhals/default.nix +++ b/pkgs/development/python-modules/narwhals/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, dask, duckdb, @@ -100,11 +99,6 @@ buildPythonPackage (finalAttrs: { "test_backend_version[pyspark[connect]]" ]; - disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Segfault in included polars/lazyframe - "tests/tpch_q1_test.py" - ]; - pytestFlags = [ "-Wignore::DeprecationWarning" ]; diff --git a/pkgs/development/python-modules/native-sparse-attention-pytorch/default.nix b/pkgs/development/python-modules/native-sparse-attention-pytorch/default.nix index 139011d498c9..4ede322d52e5 100644 --- a/pkgs/development/python-modules/native-sparse-attention-pytorch/default.nix +++ b/pkgs/development/python-modules/native-sparse-attention-pytorch/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "native-sparse-attention-pytorch"; version = "0.2.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lucidrains"; diff --git a/pkgs/development/python-modules/nbexec/default.nix b/pkgs/development/python-modules/nbexec/default.nix index c202f6f7ee7d..30314fc04fb3 100644 --- a/pkgs/development/python-modules/nbexec/default.nix +++ b/pkgs/development/python-modules/nbexec/default.nix @@ -44,9 +44,8 @@ buildPythonPackage { export HOME=$(mktemp -d) ''; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" "-v" ]; diff --git a/pkgs/development/python-modules/nccl4py/default.nix b/pkgs/development/python-modules/nccl4py/default.nix index d45b60eecc6e..0a26ee9871f4 100644 --- a/pkgs/development/python-modules/nccl4py/default.nix +++ b/pkgs/development/python-modules/nccl4py/default.nix @@ -26,7 +26,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs # the sources are fetched from. version = "0.6.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/nemo-relay/default.nix b/pkgs/development/python-modules/nemo-relay/default.nix index ade163348898..5ff99cb54e2d 100644 --- a/pkgs/development/python-modules/nemo-relay/default.nix +++ b/pkgs/development/python-modules/nemo-relay/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "nemo-relay"; version = "0.7.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/nest-asyncio2/default.nix b/pkgs/development/python-modules/nest-asyncio2/default.nix index f71ceef035da..f9784c05d99a 100644 --- a/pkgs/development/python-modules/nest-asyncio2/default.nix +++ b/pkgs/development/python-modules/nest-asyncio2/default.nix @@ -9,15 +9,14 @@ buildPythonPackage (finalAttrs: { pname = "nest-asyncio2"; - version = "1.7.2"; + version = "1.7.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Chaoses-Ib"; repo = "nest-asyncio2"; tag = "v${finalAttrs.version}"; - hash = "sha256-T7jUa4odhJZ1lpJjVmPrqur8ro2Iqccwf4khEb4ArGs="; + hash = "sha256-qNetaOdR4icUXWncat4vITwnjmx5MhAgUz0t61Bvztc="; }; build-system = [ diff --git a/pkgs/development/python-modules/netmap/default.nix b/pkgs/development/python-modules/netmap/default.nix index f0e3e2f94411..4d3d44270f64 100644 --- a/pkgs/development/python-modules/netmap/default.nix +++ b/pkgs/development/python-modules/netmap/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "home-assistant-libs"; repo = "python-nmap"; diff --git a/pkgs/development/python-modules/ngff-zarr/default.nix b/pkgs/development/python-modules/ngff-zarr/default.nix index 21817285c8ae..4732d54aa872 100644 --- a/pkgs/development/python-modules/ngff-zarr/default.nix +++ b/pkgs/development/python-modules/ngff-zarr/default.nix @@ -34,8 +34,6 @@ buildPythonPackage (finalAttrs: { version = "0.43.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "fideus-labs"; repo = "ngff-zarr"; diff --git a/pkgs/development/python-modules/niaarm/default.nix b/pkgs/development/python-modules/niaarm/default.nix index bf3dc98f4c57..01a2f2000af4 100644 --- a/pkgs/development/python-modules/niaarm/default.nix +++ b/pkgs/development/python-modules/niaarm/default.nix @@ -41,8 +41,10 @@ buildPythonPackage (finalAttrs: { "scikit-learn" ]; - build-system = [ - poetry-core + build-system = [ poetry-core ]; + + # Fix upstream version typo + nativeBuildInputs = [ pyprojectVersionPatchHook ]; @@ -63,6 +65,7 @@ buildPythonPackage (finalAttrs: { disabledTests = [ # Test requires extra nltk data dependency "test_text_mining" + # AttributeError: 'Poly3DCollection' object has no attribute '_vec' "test_hill_slopes" ]; diff --git a/pkgs/development/python-modules/nianet/default.nix b/pkgs/development/python-modules/nianet/default.nix index 7920c0c94938..dacfbadd7289 100644 --- a/pkgs/development/python-modules/nianet/default.nix +++ b/pkgs/development/python-modules/nianet/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "nianet"; version = "1.1.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "SasoPavlic"; diff --git a/pkgs/development/python-modules/nilearn/default.nix b/pkgs/development/python-modules/nilearn/default.nix index 8dd10b644224..a4d1eaf00140 100644 --- a/pkgs/development/python-modules/nilearn/default.nix +++ b/pkgs/development/python-modules/nilearn/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "nilearn"; version = "0.14.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nilearn"; diff --git a/pkgs/development/python-modules/nipreps-versions/default.nix b/pkgs/development/python-modules/nipreps-versions/default.nix index 8bfc005cabc2..82008b3233af 100644 --- a/pkgs/development/python-modules/nipreps-versions/default.nix +++ b/pkgs/development/python-modules/nipreps-versions/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "nipreps-versions"; version = "1.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nipreps"; diff --git a/pkgs/development/python-modules/nipype/default.nix b/pkgs/development/python-modules/nipype/default.nix index 70777d48b2b3..f698742375b4 100644 --- a/pkgs/development/python-modules/nipype/default.nix +++ b/pkgs/development/python-modules/nipype/default.nix @@ -54,7 +54,6 @@ buildPythonPackage (finalAttrs: { pname = "nipype"; version = "1.11.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nipy"; diff --git a/pkgs/development/python-modules/niworkflows/default.nix b/pkgs/development/python-modules/niworkflows/default.nix index c71ba305df0a..bb9c7d79e1b9 100644 --- a/pkgs/development/python-modules/niworkflows/default.nix +++ b/pkgs/development/python-modules/niworkflows/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "niworkflows"; version = "1.14.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nipreps"; diff --git a/pkgs/development/python-modules/nixl/default.nix b/pkgs/development/python-modules/nixl/default.nix index 0fcf38c6ec4c..cd8c42a15f89 100644 --- a/pkgs/development/python-modules/nixl/default.nix +++ b/pkgs/development/python-modules/nixl/default.nix @@ -27,8 +27,6 @@ buildPythonPackage.override { inherit (nixl) stdenv; } (finalAttrs: { pname version src - __structuredAttrs - strictDeps nativeBuildInputs dontUseCmakeConfigure buildInputs diff --git a/pkgs/development/python-modules/nixpkgs-plugin-update/default.nix b/pkgs/development/python-modules/nixpkgs-plugin-update/default.nix index 0c354049fc78..25ab6fda5681 100644 --- a/pkgs/development/python-modules/nixpkgs-plugin-update/default.nix +++ b/pkgs/development/python-modules/nixpkgs-plugin-update/default.nix @@ -12,7 +12,6 @@ buildPythonPackage { pname = "nixpkgs-plugin-update"; version = "0.1.0"; pyproject = true; - __structuredAttrs = true; src = ./nixpkgs-plugin-update; diff --git a/pkgs/development/python-modules/nlpo3/default.nix b/pkgs/development/python-modules/nlpo3/default.nix index 45a133a19b6f..9a429ec3e8c1 100644 --- a/pkgs/development/python-modules/nlpo3/default.nix +++ b/pkgs/development/python-modules/nlpo3/default.nix @@ -12,7 +12,7 @@ setuptools-rust, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "nlpo3"; version = "1.4.0"; pyproject = true; @@ -20,7 +20,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "PyThaiNLP"; repo = "nlpo3"; - tag = "nlpo3-python-v${version}"; + tag = "nlpo3-python-v${finalAttrs.version}"; hash = "sha256-GQwUKc6VXF1mDzvB2HBwHlaC0Eu3sZvlTuGe0CDrP4k="; }; @@ -29,10 +29,10 @@ buildPythonPackage rec { --replace-fail "data/test_dict.txt" "$src/nlpo3-python/tests/data/test_dict.txt" ''; - sourceRoot = "${src.name}/nlpo3-python"; + sourceRoot = "${finalAttrs.src.name}/nlpo3-python"; cargoDeps = rustPlatform.fetchCargoVendor { - inherit src sourceRoot; + inherit (finalAttrs) src sourceRoot; hash = "sha256-Kp2FL6GXb5g5jqvFWZxZUy7OuGaavN9DZkp9kdI4d/4="; }; @@ -55,9 +55,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" "-v" ]; @@ -66,8 +65,8 @@ buildPythonPackage rec { meta = { description = "Thai Natural Language Processing library in Rust, with Python and Node bindings"; homepage = "https://github.com/PyThaiNLP/nlpo3"; - changelog = "https://github.com/PyThaiNLP/nlpo3/releases/tag/${src.tag}"; + changelog = "https://github.com/PyThaiNLP/nlpo3/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ vizid ]; }; -} +}) diff --git a/pkgs/development/python-modules/nnaudio/default.nix b/pkgs/development/python-modules/nnaudio/default.nix index 4440c896b106..a68368ce19ab 100644 --- a/pkgs/development/python-modules/nnaudio/default.nix +++ b/pkgs/development/python-modules/nnaudio/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "nnaudio"; version = "0.3.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "KinWaiCheuk"; diff --git a/pkgs/development/python-modules/nomadnet/default.nix b/pkgs/development/python-modules/nomadnet/default.nix index 6f9f3732dc93..77fd6b25b168 100644 --- a/pkgs/development/python-modules/nomadnet/default.nix +++ b/pkgs/development/python-modules/nomadnet/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version pname; hash = "sha256-f9QzuJB1WzGHvEQNUC9v1Q7JtZu/ZVKD3/RNQnTPGzU="; diff --git a/pkgs/development/python-modules/notebook/default.nix b/pkgs/development/python-modules/notebook/default.nix index 9b0de3b61f7f..3f3c2a7000d9 100644 --- a/pkgs/development/python-modules/notebook/default.nix +++ b/pkgs/development/python-modules/notebook/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "notebook"; version = "7.6.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyter"; diff --git a/pkgs/development/python-modules/nrf-ota/default.nix b/pkgs/development/python-modules/nrf-ota/default.nix index 0771ddd07f87..787e4fb71a51 100644 --- a/pkgs/development/python-modules/nrf-ota/default.nix +++ b/pkgs/development/python-modules/nrf-ota/default.nix @@ -42,8 +42,6 @@ buildPythonPackage (finalAttrs: { "nrf_ota" ]; - __structuredAttrs = true; - meta = { description = "Flash firmware to Nordic nRF5x devices over BLE"; homepage = "https://github.com/OpenDisplay/nrf-ota"; diff --git a/pkgs/development/python-modules/numba-cuda/default.nix b/pkgs/development/python-modules/numba-cuda/default.nix index 268e7a701cf0..6428a264e7d0 100644 --- a/pkgs/development/python-modules/numba-cuda/default.nix +++ b/pkgs/development/python-modules/numba-cuda/default.nix @@ -54,7 +54,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "numba-cuda"; version = "0.30.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix index fd1344633587..ea3475c8cafb 100644 --- a/pkgs/development/python-modules/numba/default.nix +++ b/pkgs/development/python-modules/numba/default.nix @@ -59,7 +59,6 @@ buildPythonPackage (finalAttrs: { version = "0.67.0"; pname = "numba"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "numba"; diff --git a/pkgs/development/python-modules/numericalunits/default.nix b/pkgs/development/python-modules/numericalunits/default.nix index 12d91d726672..df2e5c6402af 100644 --- a/pkgs/development/python-modules/numericalunits/default.nix +++ b/pkgs/development/python-modules/numericalunits/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.28"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "sbyrnes321"; repo = "numericalunits"; diff --git a/pkgs/development/python-modules/numpy-groupies/default.nix b/pkgs/development/python-modules/numpy-groupies/default.nix index 24753da32bf6..97024c17d1e9 100644 --- a/pkgs/development/python-modules/numpy-groupies/default.nix +++ b/pkgs/development/python-modules/numpy-groupies/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.12.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ml31415"; repo = "numpy-groupies"; diff --git a/pkgs/development/python-modules/numpy-quaternion/default.nix b/pkgs/development/python-modules/numpy-quaternion/default.nix index 639875be1c4c..4415c9e5ee11 100644 --- a/pkgs/development/python-modules/numpy-quaternion/default.nix +++ b/pkgs/development/python-modules/numpy-quaternion/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "numpy-quaternion"; version = "2024.0.13"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "moble"; diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix index 57498de4c919..3501ffc21155 100644 --- a/pkgs/development/python-modules/numpy/default.nix +++ b/pkgs/development/python-modules/numpy/default.nix @@ -42,7 +42,7 @@ assert blas.isILP64 == lapack.isILP64; buildPythonPackage (finalAttrs: { pname = "numpy"; - version = "2.5.3"; + version = "2.5.4"; pyproject = true; src = fetchFromGitHub { @@ -50,7 +50,7 @@ buildPythonPackage (finalAttrs: { repo = "numpy"; tag = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-gahiYESYSgq4MEn6w/J1Mo2CD+QC2lcjzFsw+gAquOg="; + hash = "sha256-5vOI8VItWGgsks5qDeVuodhHbKa6WC2ZzWYJZICJuwI="; }; patches = [ @@ -166,10 +166,6 @@ buildPythonPackage (finalAttrs: { "test_floor_division_errors" # FloatingPointError: invalid value encountered in floor_divide "test_unary_spurious_fpexception" # AssertionError: Got warnings: [] ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # AssertionError: (np.int64(0), np.longdouble('9.9999999999999994515e-21'), np.longdouble('3.9696755572509052902e+20'), 'arctanh') - "test_loss_of_precision" - ] ++ lib.optionals (stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isBigEndian) [ # https://github.com/numpy/numpy/issues/29918 "test_sq_cases" diff --git a/pkgs/development/python-modules/numpyro/default.nix b/pkgs/development/python-modules/numpyro/default.nix index ca0598896b3f..3bb32b97d79e 100644 --- a/pkgs/development/python-modules/numpyro/default.nix +++ b/pkgs/development/python-modules/numpyro/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "numpyro"; version = "0.22.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyro-ppl"; diff --git a/pkgs/development/python-modules/nutpie/default.nix b/pkgs/development/python-modules/nutpie/default.nix index 1b33556b4d95..3e6327d3a45a 100644 --- a/pkgs/development/python-modules/nutpie/default.nix +++ b/pkgs/development/python-modules/nutpie/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "nutpie"; version = "0.16.11"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pymc-devs"; diff --git a/pkgs/development/python-modules/nvidia-cudnn-frontend/default.nix b/pkgs/development/python-modules/nvidia-cudnn-frontend/default.nix index b9586be7bb12..c589ba0bfd3d 100644 --- a/pkgs/development/python-modules/nvidia-cudnn-frontend/default.nix +++ b/pkgs/development/python-modules/nvidia-cudnn-frontend/default.nix @@ -36,7 +36,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "nvidia-cudnn-frontend"; pyproject = true; - __structuredAttrs = true; postPatch = cudaPackages.cudnn-frontend.postPatch diff --git a/pkgs/development/python-modules/nvidia-cutlass-dsl-libs-base/default.nix b/pkgs/development/python-modules/nvidia-cutlass-dsl-libs-base/default.nix index 5bf568400e10..217c7471527f 100644 --- a/pkgs/development/python-modules/nvidia-cutlass-dsl-libs-base/default.nix +++ b/pkgs/development/python-modules/nvidia-cutlass-dsl-libs-base/default.nix @@ -111,7 +111,6 @@ buildPythonPackage { pname = "nvidia-cutlass-dsl-libs-base"; inherit version; format = "wheel"; - __structuredAttrs = true; src = fetchLibsWheel "base"; diff --git a/pkgs/development/python-modules/nvidia-cutlass-dsl/default.nix b/pkgs/development/python-modules/nvidia-cutlass-dsl/default.nix index 69e766f18fd6..256c23828cb4 100644 --- a/pkgs/development/python-modules/nvidia-cutlass-dsl/default.nix +++ b/pkgs/development/python-modules/nvidia-cutlass-dsl/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "nvidia-cutlass-dsl"; inherit (nvidia-cutlass-dsl-libs-base) version; format = "wheel"; - __structuredAttrs = true; # Universal metadata-only wheel that just pulls in `nvidia-cutlass-dsl-libs-base` # (which actually ships the Python code and the bundled MLIR/CUDA runtime libs). diff --git a/pkgs/development/python-modules/nvidia-cutlass/default.nix b/pkgs/development/python-modules/nvidia-cutlass/default.nix index 9bb17e3cf1a0..5a509ac31cf9 100644 --- a/pkgs/development/python-modules/nvidia-cutlass/default.nix +++ b/pkgs/development/python-modules/nvidia-cutlass/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "nvidia-cutlass"; version = "4.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/nvidia-dlprofviewer/default.nix b/pkgs/development/python-modules/nvidia-dlprofviewer/default.nix index 1ba2c9c8691c..711e7b8df537 100644 --- a/pkgs/development/python-modules/nvidia-dlprofviewer/default.nix +++ b/pkgs/development/python-modules/nvidia-dlprofviewer/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "nvidia-dlprofviewer"; version = "1.8.0"; - __structuredAttrs = true; format = "wheel"; src = fetchurl { diff --git a/pkgs/development/python-modules/nvidia-ml-py/default.nix b/pkgs/development/python-modules/nvidia-ml-py/default.nix index 9afbab7bf7cd..29f5d399fcdf 100644 --- a/pkgs/development/python-modules/nvidia-ml-py/default.nix +++ b/pkgs/development/python-modules/nvidia-ml-py/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "nvidia-ml-py"; version = "13.615.71"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "nvidia_ml_py"; diff --git a/pkgs/development/python-modules/nvidia-resiliency-ext/default.nix b/pkgs/development/python-modules/nvidia-resiliency-ext/default.nix index 7b2306b939a8..07c6be40c727 100644 --- a/pkgs/development/python-modules/nvidia-resiliency-ext/default.nix +++ b/pkgs/development/python-modules/nvidia-resiliency-ext/default.nix @@ -48,7 +48,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "nvidia-resiliency-ext"; version = "0.7.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/nvmath-python/default.nix b/pkgs/development/python-modules/nvmath-python/default.nix index a2250626bb34..b0650bdd5aaf 100644 --- a/pkgs/development/python-modules/nvmath-python/default.nix +++ b/pkgs/development/python-modules/nvmath-python/default.nix @@ -23,7 +23,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs pname = "nvmath-python"; version = "1.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/oauthenticator/default.nix b/pkgs/development/python-modules/oauthenticator/default.nix index 2034ec35d8d7..e593bf241c5c 100644 --- a/pkgs/development/python-modules/oauthenticator/default.nix +++ b/pkgs/development/python-modules/oauthenticator/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "oauthenticator"; version = "17.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jupyterhub"; diff --git a/pkgs/development/python-modules/obspy/default.nix b/pkgs/development/python-modules/obspy/default.nix index 8471099a23dd..b088eeef902b 100644 --- a/pkgs/development/python-modules/obspy/default.nix +++ b/pkgs/development/python-modules/obspy/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "obspy"; version = "1.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "obspy"; diff --git a/pkgs/development/python-modules/obstore/default.nix b/pkgs/development/python-modules/obstore/default.nix index 9656b7a60eb1..29a59265b3eb 100644 --- a/pkgs/development/python-modules/obstore/default.nix +++ b/pkgs/development/python-modules/obstore/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "obstore"; version = "0.9.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "developmentseed"; diff --git a/pkgs/development/python-modules/oci-lexer-parser/default.nix b/pkgs/development/python-modules/oci-lexer-parser/default.nix index 083fb5909077..d1a94b164fe5 100644 --- a/pkgs/development/python-modules/oci-lexer-parser/default.nix +++ b/pkgs/development/python-modules/oci-lexer-parser/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "NetSPI"; repo = "oci-lexer-parser"; diff --git a/pkgs/development/python-modules/odc-geo/default.nix b/pkgs/development/python-modules/odc-geo/default.nix index b3943537e64c..8f16fe0dba4c 100644 --- a/pkgs/development/python-modules/odc-geo/default.nix +++ b/pkgs/development/python-modules/odc-geo/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "odc-geo"; version = "0.5.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "opendatacube"; diff --git a/pkgs/development/python-modules/odl-renderer/default.nix b/pkgs/development/python-modules/odl-renderer/default.nix index 2425624b3e59..5c20da5dd570 100644 --- a/pkgs/development/python-modules/odl-renderer/default.nix +++ b/pkgs/development/python-modules/odl-renderer/default.nix @@ -84,8 +84,6 @@ buildPythonPackage (finalAttrs: { "odl_renderer" ]; - __structuredAttrs = true; - meta = { description = "Pure image rendering from drawing instructions for e-paper displays"; homepage = "https://github.com/OpenDisplay/odl-renderer"; diff --git a/pkgs/development/python-modules/oelint-data/default.nix b/pkgs/development/python-modules/oelint-data/default.nix index 9d4d1e9e3703..7b57e56c2154 100644 --- a/pkgs/development/python-modules/oelint-data/default.nix +++ b/pkgs/development/python-modules/oelint-data/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "oelint-data"; version = "1.5.27"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "priv-kweihmann"; diff --git a/pkgs/development/python-modules/ome-zarr/default.nix b/pkgs/development/python-modules/ome-zarr/default.nix index 23ccd2e0ff83..3f7097f19edf 100644 --- a/pkgs/development/python-modules/ome-zarr/default.nix +++ b/pkgs/development/python-modules/ome-zarr/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "ome-zarr"; version = "0.18.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ome"; diff --git a/pkgs/development/python-modules/onnx-ir/default.nix b/pkgs/development/python-modules/onnx-ir/default.nix index 014da9e0470d..a7f50855771d 100644 --- a/pkgs/development/python-modules/onnx-ir/default.nix +++ b/pkgs/development/python-modules/onnx-ir/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "onnx-ir"; version = "1.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "onnx"; diff --git a/pkgs/development/python-modules/onnx/default.nix b/pkgs/development/python-modules/onnx/default.nix index e15cc7c0bb25..3a4d2d94a292 100644 --- a/pkgs/development/python-modules/onnx/default.nix +++ b/pkgs/development/python-modules/onnx/default.nix @@ -22,7 +22,6 @@ buildPythonPackage { ; format = "wheel"; - __structuredAttrs = true; dontUseWheelUnpack = true; diff --git a/pkgs/development/python-modules/onnxconverter-common/default.nix b/pkgs/development/python-modules/onnxconverter-common/default.nix index 95ca6b17ba91..adca1ae050b2 100644 --- a/pkgs/development/python-modules/onnxconverter-common/default.nix +++ b/pkgs/development/python-modules/onnxconverter-common/default.nix @@ -51,9 +51,8 @@ buildPythonPackage (finalAttrs: { unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; # Failing tests diff --git a/pkgs/development/python-modules/onnxscript/default.nix b/pkgs/development/python-modules/onnxscript/default.nix index 4f5c4584acfd..cdf1c42dfcb7 100644 --- a/pkgs/development/python-modules/onnxscript/default.nix +++ b/pkgs/development/python-modules/onnxscript/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "onnxscript"; version = "0.7.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "microsoft"; diff --git a/pkgs/development/python-modules/onvif-python/default.nix b/pkgs/development/python-modules/onvif-python/default.nix index 87c54160823a..14d974898c3e 100644 --- a/pkgs/development/python-modules/onvif-python/default.nix +++ b/pkgs/development/python-modules/onvif-python/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.7"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "nirsimetri"; repo = "onvif-python"; diff --git a/pkgs/development/python-modules/openai-agents/default.nix b/pkgs/development/python-modules/openai-agents/default.nix index 757c30238743..1eaf787a4010 100644 --- a/pkgs/development/python-modules/openai-agents/default.nix +++ b/pkgs/development/python-modules/openai-agents/default.nix @@ -8,8 +8,8 @@ openai, pydantic, requests, - types-requests, typing-extensions, + websockets, }: buildPythonPackage (finalAttrs: { @@ -27,14 +27,18 @@ buildPythonPackage (finalAttrs: { hatchling ]; + pythonRelaxDeps = [ + "openai" + ]; + dependencies = [ griffelib mcp openai pydantic requests - types-requests typing-extensions + websockets ]; pythonImportsCheck = [ diff --git a/pkgs/development/python-modules/openai-whisper/default.nix b/pkgs/development/python-modules/openai-whisper/default.nix index 8ec856b23b72..c656526e252e 100644 --- a/pkgs/development/python-modules/openai-whisper/default.nix +++ b/pkgs/development/python-modules/openai-whisper/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "openai-whisper"; version = "20250625"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "openai"; diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index 60af6eade212..81c620595302 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -5,48 +5,32 @@ # build-system hatchling, - hatch-fancy-pypi-readme, + + # native build inputs + bash, # dependencies anyio, - distro, - httpx, + httpx2, jiter, pydantic, sniffio, - tqdm, typing-extensions, - # optional-dependencies (aiohttp) + # optional-dependencies aiohttp, - httpx-aiohttp, - - # optional-dependencies (bedock) botocore, - - # optional-dependencies (datalib) numpy, pandas, - pandas-stubs, - - # optional-dependencies (httpx2) - httpx2, - - # optional-dependencies (realtime) - websockets, - - # optional-dependencies (voice-helpers) sounddevice, + urllib3, + websockets, # check deps pytestCheckHook, - dirty-equals, inline-snapshot, - jsonschema, pytest-asyncio, - pytest-mock, pytest-xdist, - respx, # optional-dependencies toggle withAiohttp ? false, @@ -57,31 +41,35 @@ buildPythonPackage (finalAttrs: { pname = "openai"; - version = "2.53.0"; + version = "3.14.1"; pyproject = true; src = fetchFromGitHub { owner = "openai"; repo = "openai-python"; tag = "v${finalAttrs.version}"; - hash = "sha256-XwiSIKjYD07zhx8uIO8wsPWdAASBCJ5KqFUgdk+uaUU="; + hash = "sha256-7oFIiENP5d/TAVbkjtsjcsuin+qJ/tmjSdzXgu/qsCE="; }; - postPatch = ''substituteInPlace pyproject.toml --replace-fail "hatchling==1.26.3" "hatchling"''; + postPatch = '' + substituteInPlace pyproject.toml --replace-fail "hatchling==1.27.0" "hatchling" + substituteInPlace tests/test_uv_workflows.py --replace-fail "/bin/bash" "${lib.getExe bash}" + ''; build-system = [ hatchling - hatch-fancy-pypi-readme + ]; + + nativeBuildInputs = [ + bash ]; dependencies = [ anyio - distro - httpx + httpx2 jiter pydantic sniffio - tqdm typing-extensions ] ++ lib.optionals withAiohttp finalAttrs.passthru.optional-dependencies.aiohttp @@ -92,20 +80,14 @@ buildPythonPackage (finalAttrs: { optional-dependencies = { aiohttp = [ aiohttp - httpx-aiohttp ]; bedrock = [ botocore + urllib3 ]; datalib = [ numpy pandas - pandas-stubs - ]; - httpx2 = [ - anyio - httpx - httpx2 ]; realtime = [ websockets @@ -120,23 +102,24 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ pytestCheckHook - dirty-equals inline-snapshot - jsonschema pytest-asyncio - pytest-mock pytest-xdist - respx ] # including pandas-stubs would cause infinite recursion ++ lib.concatAttrValues (lib.removeAttrs finalAttrs.passthru.optional-dependencies [ "datalib" ]); disabledTestPaths = [ - # Test makes network requests + # tests makes network requests "tests/api_resources" - # E TypeError: Unexpected type for 'content', - # This seems to be due to `inline-snapshot` being disabled when `pytest-xdist` is used. - "tests/lib/chat/test_completions_streaming.py" + "tests/lib/test_fine_tuning_positional_arguments.py" + "tests/test_tls_hostname.py" + + # Tests the pypi build system (not relevant in Nix build environment) + "tests/test_uv_workflows.py" + + # flaky + "tests/lib/test_azure_redirects.py::test_sync_redirect_origin" ]; meta = { @@ -144,6 +127,9 @@ buildPythonPackage (finalAttrs: { homepage = "https://github.com/openai/openai-python"; changelog = "https://github.com/openai/openai-python/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; - maintainers = [ lib.maintainers.malo ]; + maintainers = with lib.maintainers; [ + malo + sarahec + ]; }; }) diff --git a/pkgs/development/python-modules/openccu-loom-client/default.nix b/pkgs/development/python-modules/openccu-loom-client/default.nix index badbcb413355..57277e0ecc54 100644 --- a/pkgs/development/python-modules/openccu-loom-client/default.nix +++ b/pkgs/development/python-modules/openccu-loom-client/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "openccu-loom-client"; version = "2026.10.11"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "SukramJ"; diff --git a/pkgs/development/python-modules/openexr/default.nix b/pkgs/development/python-modules/openexr/default.nix index 6eeb95f17208..4893fe0ae351 100644 --- a/pkgs/development/python-modules/openexr/default.nix +++ b/pkgs/development/python-modules/openexr/default.nix @@ -15,7 +15,6 @@ buildPythonPackage { pname = "openexr"; inherit (pkgs.openexr) version src; pyproject = true; - __structuredAttrs = true; postPatch = '' substituteInPlace pyproject.toml \ diff --git a/pkgs/development/python-modules/openinference-instrumentation-claude-agent-sdk/default.nix b/pkgs/development/python-modules/openinference-instrumentation-claude-agent-sdk/default.nix index 76c1624fd21c..6aed1e13e80f 100644 --- a/pkgs/development/python-modules/openinference-instrumentation-claude-agent-sdk/default.nix +++ b/pkgs/development/python-modules/openinference-instrumentation-claude-agent-sdk/default.nix @@ -24,8 +24,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.7"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Arize-ai"; repo = "openinference"; diff --git a/pkgs/development/python-modules/openinference-instrumentation-openai/default.nix b/pkgs/development/python-modules/openinference-instrumentation-openai/default.nix index 799e08901d73..c234937f4b80 100644 --- a/pkgs/development/python-modules/openinference-instrumentation-openai/default.nix +++ b/pkgs/development/python-modules/openinference-instrumentation-openai/default.nix @@ -25,8 +25,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.54"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Arize-ai"; repo = "openinference"; @@ -72,6 +70,11 @@ buildPythonPackage (finalAttrs: { "test_tool_calls" ]; + disabledTestPaths = [ + # want to connect to OpenAI's API + "tests/openinference/instrumentation/openai/test_instrumentor.py" + ]; + passthru = { # bulk updater uses wrong tag skipBulkUpdate = true; diff --git a/pkgs/development/python-modules/openinference-instrumentation/default.nix b/pkgs/development/python-modules/openinference-instrumentation/default.nix index 780bebdba91e..87adbd9be475 100644 --- a/pkgs/development/python-modules/openinference-instrumentation/default.nix +++ b/pkgs/development/python-modules/openinference-instrumentation/default.nix @@ -21,8 +21,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.57"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Arize-ai"; repo = "openinference"; diff --git a/pkgs/development/python-modules/openinference-semantic-conventions/default.nix b/pkgs/development/python-modules/openinference-semantic-conventions/default.nix index 37794ebe4de5..fbbd8eb952d9 100644 --- a/pkgs/development/python-modules/openinference-semantic-conventions/default.nix +++ b/pkgs/development/python-modules/openinference-semantic-conventions/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.32"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Arize-ai"; repo = "openinference"; diff --git a/pkgs/development/python-modules/openmm-torch/default.nix b/pkgs/development/python-modules/openmm-torch/default.nix index deee601861ed..6e7e1aaeec76 100644 --- a/pkgs/development/python-modules/openmm-torch/default.nix +++ b/pkgs/development/python-modules/openmm-torch/default.nix @@ -22,7 +22,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "openmm-torch"; version = "1.5.1"; pyproject = false; - __structuredAttrs = true; src = fetchFromGitHub { owner = "openmm"; diff --git a/pkgs/development/python-modules/opensfm/default.nix b/pkgs/development/python-modules/opensfm/default.nix index f369ea5339a2..fc7b11ab3908 100644 --- a/pkgs/development/python-modules/opensfm/default.nix +++ b/pkgs/development/python-modules/opensfm/default.nix @@ -55,7 +55,6 @@ buildPythonPackage (finalAttrs: { pname = "opensfm"; version = "0.5.1-unstable-2026-08-17"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mapillary"; diff --git a/pkgs/development/python-modules/opensimplex/default.nix b/pkgs/development/python-modules/opensimplex/default.nix index 05406fe0cee5..92daca294780 100644 --- a/pkgs/development/python-modules/opensimplex/default.nix +++ b/pkgs/development/python-modules/opensimplex/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.5.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromForgejo { domain = "code.larus.se"; owner = "lmas"; diff --git a/pkgs/development/python-modules/opt-einsum-fx/default.nix b/pkgs/development/python-modules/opt-einsum-fx/default.nix index d183970cc557..f8c3ac7f1d50 100644 --- a/pkgs/development/python-modules/opt-einsum-fx/default.nix +++ b/pkgs/development/python-modules/opt-einsum-fx/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "opt-einsum-fx"; version = "0.1.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Linux-cpp-lisp"; diff --git a/pkgs/development/python-modules/optiland/default.nix b/pkgs/development/python-modules/optiland/default.nix index b0533eff6827..fb5488015299 100644 --- a/pkgs/development/python-modules/optiland/default.nix +++ b/pkgs/development/python-modules/optiland/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "optiland"; version = "0.6.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "HarrisonKramer"; diff --git a/pkgs/development/python-modules/optuna/default.nix b/pkgs/development/python-modules/optuna/default.nix index c235f5d347a2..056117f17f66 100644 --- a/pkgs/development/python-modules/optuna/default.nix +++ b/pkgs/development/python-modules/optuna/default.nix @@ -46,7 +46,6 @@ buildPythonPackage (finalAttrs: { pname = "optuna"; version = "4.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "optuna"; diff --git a/pkgs/development/python-modules/opuslib-next/default.nix b/pkgs/development/python-modules/opuslib-next/default.nix index 4d8fc0d3cdba..9a061365d191 100644 --- a/pkgs/development/python-modules/opuslib-next/default.nix +++ b/pkgs/development/python-modules/opuslib-next/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "opuslib-next"; version = "1.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "kalicyh"; diff --git a/pkgs/development/python-modules/orbax-checkpoint/default.nix b/pkgs/development/python-modules/orbax-checkpoint/default.nix index baa2fdaa6ad2..1a45921f21db 100644 --- a/pkgs/development/python-modules/orbax-checkpoint/default.nix +++ b/pkgs/development/python-modules/orbax-checkpoint/default.nix @@ -45,7 +45,6 @@ buildPythonPackage (finalAttrs: { pname = "orbax-checkpoint"; version = "0.12.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google"; diff --git a/pkgs/development/python-modules/osadl-matrix/default.nix b/pkgs/development/python-modules/osadl-matrix/default.nix index f781f29389d7..fb33968cb323 100644 --- a/pkgs/development/python-modules/osadl-matrix/default.nix +++ b/pkgs/development/python-modules/osadl-matrix/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "osadl-matrix"; version = "2024.05.23.010555"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "priv-kweihmann"; diff --git a/pkgs/development/python-modules/osqp/default.nix b/pkgs/development/python-modules/osqp/default.nix index e4acb47de4e9..9ab8545fcedd 100644 --- a/pkgs/development/python-modules/osqp/default.nix +++ b/pkgs/development/python-modules/osqp/default.nix @@ -51,7 +51,6 @@ buildPythonPackage (finalAttrs: { pname = "osqp"; version = "1.1.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "osqp"; diff --git a/pkgs/development/python-modules/otter-grader/default.nix b/pkgs/development/python-modules/otter-grader/default.nix index 2992f1de3e6d..8949fb7e2427 100644 --- a/pkgs/development/python-modules/otter-grader/default.nix +++ b/pkgs/development/python-modules/otter-grader/default.nix @@ -53,7 +53,6 @@ buildPythonPackage (finalAttrs: { pname = "otter-grader"; version = "7.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ucbds-infra"; diff --git a/pkgs/development/python-modules/owlrl/default.nix b/pkgs/development/python-modules/owlrl/default.nix index 9c9305c66d20..390a2f1357a4 100644 --- a/pkgs/development/python-modules/owlrl/default.nix +++ b/pkgs/development/python-modules/owlrl/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "7.6.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "RDFLib"; repo = "OWL-RL"; diff --git a/pkgs/development/python-modules/padne/default.nix b/pkgs/development/python-modules/padne/default.nix index f2751a1e36ad..7f15e8b9dd7c 100644 --- a/pkgs/development/python-modules/padne/default.nix +++ b/pkgs/development/python-modules/padne/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { version = "0.3"; pyproject = true; dontUseCmakeConfigure = true; # handled by python - __structuredAttrs = true; src = fetchFromGitHub { owner = "atx"; diff --git a/pkgs/development/python-modules/pamela/default.nix b/pkgs/development/python-modules/pamela/default.nix index dc801c163d64..09350367aedf 100644 --- a/pkgs/development/python-modules/pamela/default.nix +++ b/pkgs/development/python-modules/pamela/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "pamela"; version = "1.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/pandantic/default.nix b/pkgs/development/python-modules/pandantic/default.nix index 26e8c28c555a..f82bfcf2bd47 100644 --- a/pkgs/development/python-modules/pandantic/default.nix +++ b/pkgs/development/python-modules/pandantic/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "pandantic"; version = "1.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "wesselhuising"; diff --git a/pkgs/development/python-modules/pandas-flavor/default.nix b/pkgs/development/python-modules/pandas-flavor/default.nix index 348165127325..b7354b2e5ac6 100644 --- a/pkgs/development/python-modules/pandas-flavor/default.nix +++ b/pkgs/development/python-modules/pandas-flavor/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "pandas-flavor"; version = "0.8.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyjanitor-devs"; diff --git a/pkgs/development/python-modules/pandas-stubs/default.nix b/pkgs/development/python-modules/pandas-stubs/default.nix index 9394b38c57f9..533ee039c932 100644 --- a/pkgs/development/python-modules/pandas-stubs/default.nix +++ b/pkgs/development/python-modules/pandas-stubs/default.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "pandas-stubs"; version = "3.0.5.260914"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pandas-dev"; @@ -102,7 +101,7 @@ buildPythonPackage (finalAttrs: { ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_clipboard" # FileNotFoundError: [Errno 2] No such file or directory: 'pbcopy' ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Disable tests for types that are not supported on aarch64 in `numpy` < 2.0 "test_astype_float" # `f16` and `float128` "test_astype_complex" # `c32` and `complex256` diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix index 1b3520df7820..789cd2820983 100644 --- a/pkgs/development/python-modules/pandas/default.nix +++ b/pkgs/development/python-modules/pandas/default.nix @@ -218,7 +218,7 @@ let # AssertionError: Did not see expected warning of class 'FutureWarning' "test_parsing_tzlocal_deprecated" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # tests/generic/test_finalize.py::test_binops[and_-args4-right] - AssertionError: assert {} == {'a': 1} "test_binops" # These tests are unreliable on aarch64-darwin. See https://github.com/pandas-dev/pandas/issues/38921. diff --git a/pkgs/development/python-modules/pandera/default.nix b/pkgs/development/python-modules/pandera/default.nix index 1d9b980f071b..39db82b0a93c 100644 --- a/pkgs/development/python-modules/pandera/default.nix +++ b/pkgs/development/python-modules/pandera/default.nix @@ -51,7 +51,6 @@ buildPythonPackage (finalAttrs: { pname = "pandera"; version = "0.33.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "unionai-oss"; diff --git a/pkgs/development/python-modules/panphon/default.nix b/pkgs/development/python-modules/panphon/default.nix index c13895ae5644..549979b0d7db 100644 --- a/pkgs/development/python-modules/panphon/default.nix +++ b/pkgs/development/python-modules/panphon/default.nix @@ -17,13 +17,14 @@ levenshtein, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "panphon"; version = "0.22.2"; pyproject = true; src = fetchPypi { - inherit pname version; + pname = "panphon"; + inherit (finalAttrs) version; hash = "sha256-OD1HfVh/66HKWoKHjiT+d8FkXW++ngHJ6X1JjYopujU="; }; @@ -42,9 +43,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" ]; pythonImportsCheck = [ @@ -59,4 +59,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ vizid ]; }; -} +}) diff --git a/pkgs/development/python-modules/parsnip-cif/default.nix b/pkgs/development/python-modules/parsnip-cif/default.nix index fc5b2e2f3be2..8b233ed9bcfd 100644 --- a/pkgs/development/python-modules/parsnip-cif/default.nix +++ b/pkgs/development/python-modules/parsnip-cif/default.nix @@ -26,8 +26,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "glotzerlab"; repo = "parsnip"; diff --git a/pkgs/development/python-modules/patchright/default.nix b/pkgs/development/python-modules/patchright/default.nix index 340dba3762b9..a7d0c5dabae1 100644 --- a/pkgs/development/python-modules/patchright/default.nix +++ b/pkgs/development/python-modules/patchright/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.58.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Kaliiiiiiiiii-Vinyzu"; repo = "patchright-python"; diff --git a/pkgs/development/python-modules/pdf-oxide/default.nix b/pkgs/development/python-modules/pdf-oxide/default.nix index c625789e3069..1c21de5908d3 100644 --- a/pkgs/development/python-modules/pdf-oxide/default.nix +++ b/pkgs/development/python-modules/pdf-oxide/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { ; pyproject = true; - __structuredAttrs = true; nativeBuildInputs = with rustPlatform; [ cargoSetupHook diff --git a/pkgs/development/python-modules/pepit/default.nix b/pkgs/development/python-modules/pepit/default.nix index 0d989b15929a..cf9e93415f28 100644 --- a/pkgs/development/python-modules/pepit/default.nix +++ b/pkgs/development/python-modules/pepit/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "pepit"; version = "0.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "PerformanceEstimation"; diff --git a/pkgs/development/python-modules/perplexityai/default.nix b/pkgs/development/python-modules/perplexityai/default.nix index 9663b93d1b2c..6e7f1ec1e084 100644 --- a/pkgs/development/python-modules/perplexityai/default.nix +++ b/pkgs/development/python-modules/perplexityai/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "perplexityai"; version = "0.42.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "perplexityai"; diff --git a/pkgs/development/python-modules/persim/default.nix b/pkgs/development/python-modules/persim/default.nix index b54a4d1ff558..b87cd94ee3ba 100644 --- a/pkgs/development/python-modules/persim/default.nix +++ b/pkgs/development/python-modules/persim/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "persim"; diff --git a/pkgs/development/python-modules/petl/default.nix b/pkgs/development/python-modules/petl/default.nix index d4b85432e043..6c3cf93d46b6 100644 --- a/pkgs/development/python-modules/petl/default.nix +++ b/pkgs/development/python-modules/petl/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "petl"; version = "1.7.29"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "petl-developers"; diff --git a/pkgs/development/python-modules/pettingzoo/default.nix b/pkgs/development/python-modules/pettingzoo/default.nix index 1c17638edf90..0559a129940a 100644 --- a/pkgs/development/python-modules/pettingzoo/default.nix +++ b/pkgs/development/python-modules/pettingzoo/default.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "pettingzoo"; version = "1.27.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Farama-Foundation"; diff --git a/pkgs/development/python-modules/pgmpy/default.nix b/pkgs/development/python-modules/pgmpy/default.nix index 14c529fc2d41..6876474f25f1 100644 --- a/pkgs/development/python-modules/pgmpy/default.nix +++ b/pkgs/development/python-modules/pgmpy/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "pgmpy"; version = "1.1.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pgmpy"; diff --git a/pkgs/development/python-modules/pgsanity/default.nix b/pkgs/development/python-modules/pgsanity/default.nix index ec7a8ff8957b..34d21fab5300 100644 --- a/pkgs/development/python-modules/pgsanity/default.nix +++ b/pkgs/development/python-modules/pgsanity/default.nix @@ -30,7 +30,7 @@ buildPythonPackage (finalAttrs: { unittestCheckHook ]; - unittestFlagsArray = [ "test" ]; + unittestFlags = [ "--start-directory=test" ]; propagatedBuildInputs = [ postgresql ]; diff --git a/pkgs/development/python-modules/pgsrip/default.nix b/pkgs/development/python-modules/pgsrip/default.nix index e1ff237ea983..37f6ca1c66ea 100644 --- a/pkgs/development/python-modules/pgsrip/default.nix +++ b/pkgs/development/python-modules/pgsrip/default.nix @@ -23,8 +23,6 @@ buildPythonPackage rec { version = "0.1.12"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ratoaq2"; repo = "pgsrip"; diff --git a/pkgs/development/python-modules/phonopy/default.nix b/pkgs/development/python-modules/phonopy/default.nix index 196b5c0f6e3d..c8ef83828c63 100644 --- a/pkgs/development/python-modules/phonopy/default.nix +++ b/pkgs/development/python-modules/phonopy/default.nix @@ -29,8 +29,6 @@ buildPythonPackage (finalAttrs: { version = "4.7.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "phonopy"; repo = "phonopy"; diff --git a/pkgs/development/python-modules/phonors/default.nix b/pkgs/development/python-modules/phonors/default.nix index 877be56eb28a..db27c5f0d1b2 100644 --- a/pkgs/development/python-modules/phonors/default.nix +++ b/pkgs/development/python-modules/phonors/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "phonopy"; repo = "phonors"; diff --git a/pkgs/development/python-modules/picos/default.nix b/pkgs/development/python-modules/picos/default.nix index 25d3eb02d79f..d627ab20a334 100644 --- a/pkgs/development/python-modules/picos/default.nix +++ b/pkgs/development/python-modules/picos/default.nix @@ -36,7 +36,7 @@ buildPythonPackage rec { --replace-fail "mappingproxy(OrderedDict({'x': <3×1 Real Variable: x>}))" "mappingproxy(OrderedDict([('x', <3×1 Real Variable: x>)]))" '' # TypeError: '<=' not supported between instances of 'ComplexAffineExpression' and 'float' - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' rm tests/ptest_quantentr.py ''; diff --git a/pkgs/development/python-modules/pillow-heif/default.nix b/pkgs/development/python-modules/pillow-heif/default.nix index 6e2a9b8935a3..7409f4123949 100644 --- a/pkgs/development/python-modules/pillow-heif/default.nix +++ b/pkgs/development/python-modules/pillow-heif/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, # build-system cmake, @@ -37,6 +38,19 @@ buildPythonPackage rec { hash = "sha256-jDQDcKsHKCG3RJ1AlMx+XB0R1/MhT+avI7/aBo8+sFo="; }; + patches = [ + # fix compatibility with libheif 1.23.7 + (fetchpatch { + url = "https://github.com/bigcat88/pillow_heif/commit/558ee2bfbe85a64b4371bcc1bc067883c5f9573d.diff"; + excludes = [ + "CHANGELOG.md" + "LICENSES_bundled.txt" + "libheif/*" + ]; + hash = "sha256-ToIAnz4PH87gyIBTnB57n3hA9BZXxtw0tS9mW4LUAGA="; + }) + ]; + postPatch = '' sed -i '/addopts/d' pyproject.toml substituteInPlace setup.py \ diff --git a/pkgs/development/python-modules/pillow-jxl-plugin/default.nix b/pkgs/development/python-modules/pillow-jxl-plugin/default.nix index c5baea6da8cf..c3fe28f902ba 100644 --- a/pkgs/development/python-modules/pillow-jxl-plugin/default.nix +++ b/pkgs/development/python-modules/pillow-jxl-plugin/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "pillow-jxl-plugin"; version = "1.3.8"; pyproject = true; - __structuredAttrs = true; # Contains Cargo.lock src = fetchPypi { diff --git a/pkgs/development/python-modules/pillow/default.nix b/pkgs/development/python-modules/pillow/default.nix index e19a87b695eb..10e829a49b6f 100644 --- a/pkgs/development/python-modules/pillow/default.nix +++ b/pkgs/development/python-modules/pillow/default.nix @@ -42,14 +42,14 @@ buildPythonPackage rec { pname = "pillow"; - version = "12.3.0"; + version = "13.0.0"; pyproject = true; src = fetchFromGitHub { owner = "python-pillow"; repo = "pillow"; tag = version; - hash = "sha256-kmUlgR+f75Y8DAKKPdEbchLLgg0m95oyVP53WTQni88="; + hash = "sha256-7FHwvgfT40qiHmvcJFZN/FlOECE0YiqOLBEYCMugk+4="; }; build-system = [ diff --git a/pkgs/development/python-modules/pingouin/default.nix b/pkgs/development/python-modules/pingouin/default.nix index 3ef7aa5af68e..337dd6eb7ee2 100644 --- a/pkgs/development/python-modules/pingouin/default.nix +++ b/pkgs/development/python-modules/pingouin/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "pingouin"; version = "0.7.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "raphaelvallat"; diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix index 534823a37fa9..897b1309d94e 100644 --- a/pkgs/development/python-modules/pip-tools/default.nix +++ b/pkgs/development/python-modules/pip-tools/default.nix @@ -52,7 +52,7 @@ buildPythonPackage (finalAttrs: { tomli-w ]; - preCheck = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + preCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 export no_proxy='*'; ''; diff --git a/pkgs/development/python-modules/pip/default.nix b/pkgs/development/python-modules/pip/default.nix index e687a583c162..8caa13d01f54 100644 --- a/pkgs/development/python-modules/pip/default.nix +++ b/pkgs/development/python-modules/pip/default.nix @@ -36,14 +36,14 @@ let self = buildPythonPackage rec { pname = "pip"; - version = "26.1.2"; + version = "26.2.2"; pyproject = true; src = fetchFromGitHub { owner = "pypa"; repo = "pip"; tag = version; - hash = "sha256-E53TU7LzGz+gpW1TCQUkSRMUif8mq702EgXdAVxtrGw="; + hash = "sha256-iH5O1kneYzoHpzbfgrJc/8gVr57CNX3/xpwel4ueNqE="; }; postPatch = '' diff --git a/pkgs/development/python-modules/piper-phonemize/default.nix b/pkgs/development/python-modules/piper-phonemize/default.nix index 6ba5a0ebf495..6e78c4d81842 100644 --- a/pkgs/development/python-modules/piper-phonemize/default.nix +++ b/pkgs/development/python-modules/piper-phonemize/default.nix @@ -31,8 +31,6 @@ buildPythonPackage { doCheck = false; meta = { - # dylib import fails with no LC_RPATH's found - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86; description = "Phonemization library used by Piper text to speech system"; inherit (piper-phonemize-native.meta) homepage license maintainers; }; diff --git a/pkgs/development/python-modules/pipx/default.nix b/pkgs/development/python-modules/pipx/default.nix index bbc6e0545cda..9fb927a654a4 100644 --- a/pkgs/development/python-modules/pipx/default.nix +++ b/pkgs/development/python-modules/pipx/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "pipx"; version = "1.16.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pypa"; diff --git a/pkgs/development/python-modules/pkg-resources-backport/default.nix b/pkgs/development/python-modules/pkg-resources-backport/default.nix index b6a4c3e65df2..3ecf2311db6d 100644 --- a/pkgs/development/python-modules/pkg-resources-backport/default.nix +++ b/pkgs/development/python-modules/pkg-resources-backport/default.nix @@ -27,8 +27,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "pkg_resources_backport"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/pkginfo/default.nix b/pkgs/development/python-modules/pkginfo/default.nix index 5106a6865554..3e949638c754 100644 --- a/pkgs/development/python-modules/pkginfo/default.nix +++ b/pkgs/development/python-modules/pkginfo/default.nix @@ -6,29 +6,20 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pkginfo"; - version = "1.12.1.2"; + version = "1.13.3"; pyproject = true; src = fetchPypi { - inherit pname version; - hash = "sha256-XNlXgkrDbxQCYJZOujxr5kQqg1m4xI9K35AhDzOgS3s="; + inherit (finalAttrs) pname version; + hash = "sha256-rXTMgYSyi3ewbMzEk2H9D9xW/YfjB0Jc4cK3WW2+MYU="; }; build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # wheel metadata version mismatch 2.1 vs 2.2 - "test_get_metadata_w_module" - "test_get_metadata_w_package_name" - "test_installed_ctor_w_dist_info" - "test_installed_ctor_w_name" - "test_installed_ctor_w_package" - ]; - pythonImportsCheck = [ "pkginfo" ]; meta = { @@ -47,4 +38,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/playwrightcapture/default.nix b/pkgs/development/python-modules/playwrightcapture/default.nix index d82c8caaeacd..a92c52608163 100644 --- a/pkgs/development/python-modules/playwrightcapture/default.nix +++ b/pkgs/development/python-modules/playwrightcapture/default.nix @@ -27,14 +27,14 @@ buildPythonPackage (finalAttrs: { pname = "playwrightcapture"; - version = "1.41.2"; + version = "1.43.4"; pyproject = true; src = fetchFromGitHub { owner = "Lookyloo"; repo = "PlaywrightCapture"; tag = "v${finalAttrs.version}"; - hash = "sha256-aHdYewNwEc063QYLpZXTrg28uPVuy6NMS3JLokuH30k="; + hash = "sha256-NBIbMSKVM3IBbK0zdK4/cPzzwHD4iXhVIgE6AkY9Rv0="; }; pythonRelaxDeps = [ diff --git a/pkgs/development/python-modules/pleroma-bot/default.nix b/pkgs/development/python-modules/pleroma-bot/default.nix index d4c0cbe987fb..8536481a3d4b 100644 --- a/pkgs/development/python-modules/pleroma-bot/default.nix +++ b/pkgs/development/python-modules/pleroma-bot/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; build-system = [ setuptools ]; - __structuredAttrs = true; src = fetchFromGitHub { owner = "robertoszek"; diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix index 757b3494e89e..ae0ef08cdfdc 100644 --- a/pkgs/development/python-modules/plotly/default.nix +++ b/pkgs/development/python-modules/plotly/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "plotly"; version = "6.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "plotly"; diff --git a/pkgs/development/python-modules/plotnine/default.nix b/pkgs/development/python-modules/plotnine/default.nix index 4232e2137827..c272e7f87b3b 100644 --- a/pkgs/development/python-modules/plotnine/default.nix +++ b/pkgs/development/python-modules/plotnine/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "plotnine"; version = "0.15.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "has2k1"; diff --git a/pkgs/development/python-modules/plover-combo/default.nix b/pkgs/development/python-modules/plover-combo/default.nix index 1f9d43488c21..81113c18410e 100644 --- a/pkgs/development/python-modules/plover-combo/default.nix +++ b/pkgs/development/python-modules/plover-combo/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "plover-combo"; version = "2.0.0-unstable-2025-09-11"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "opensteno"; diff --git a/pkgs/development/python-modules/plover-stroke/default.nix b/pkgs/development/python-modules/plover-stroke/default.nix index a97dfa33f5bd..d3ee6e6d7b35 100644 --- a/pkgs/development/python-modules/plover-stroke/default.nix +++ b/pkgs/development/python-modules/plover-stroke/default.nix @@ -12,7 +12,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; pname = "plover-stroke"; version = "1.1.0"; diff --git a/pkgs/development/python-modules/plover/4.nix b/pkgs/development/python-modules/plover/4.nix index 09bca402cfd4..1dbfdff6147f 100644 --- a/pkgs/development/python-modules/plover/4.nix +++ b/pkgs/development/python-modules/plover/4.nix @@ -23,7 +23,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; pname = "plover"; version = "4.0.2"; diff --git a/pkgs/development/python-modules/plover/5.nix b/pkgs/development/python-modules/plover/5.nix index c03a954f798c..5d41a8145eb0 100644 --- a/pkgs/development/python-modules/plover/5.nix +++ b/pkgs/development/python-modules/plover/5.nix @@ -52,7 +52,6 @@ let ''; in buildPythonPackage (finalAttrs: { - __structuredAttrs = true; pname = "plover"; version = "5.4.0"; diff --git a/pkgs/development/python-modules/pluggy/default.nix b/pkgs/development/python-modules/pluggy/default.nix index 0a7eaabb2100..276bbc86429d 100644 --- a/pkgs/development/python-modules/pluggy/default.nix +++ b/pkgs/development/python-modules/pluggy/default.nix @@ -6,17 +6,17 @@ callPackage, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pluggy"; - version = "1.6.0"; + version = "1.7.0"; pyproject = true; src = fetchFromGitHub { owner = "pytest-dev"; repo = "pluggy"; - tag = version; - hash = "sha256-pkQjPJuSASWmzwzp9H/UTJBQDr2r2RiofxpF135lAgc="; + tag = finalAttrs.version; + hash = "sha256-wQr2dFG8gh58v9CbmNhLX3Znuj+JeBAm3SHXJXMztXA="; }; build-system = [ setuptools-scm ]; @@ -28,10 +28,10 @@ buildPythonPackage rec { }; meta = { - changelog = "https://github.com/pytest-dev/pluggy/blob/${src.rev}/CHANGELOG.rst"; + changelog = "https://github.com/pytest-dev/pluggy/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; description = "Plugin and hook calling mechanisms for Python"; homepage = "https://github.com/pytest-dev/pluggy"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/plum-dispatch/default.nix b/pkgs/development/python-modules/plum-dispatch/default.nix index ce871ac73b9a..be24cb29d1b8 100644 --- a/pkgs/development/python-modules/plum-dispatch/default.nix +++ b/pkgs/development/python-modules/plum-dispatch/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "plum-dispatch"; version = "2.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "beartype"; diff --git a/pkgs/development/python-modules/plumbum/default.nix b/pkgs/development/python-modules/plumbum/default.nix index bee67df674b3..82595faf0ac8 100644 --- a/pkgs/development/python-modules/plumbum/default.nix +++ b/pkgs/development/python-modules/plumbum/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "plumbum"; version = "2.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tomerfiliba"; diff --git a/pkgs/development/python-modules/plumed/default.nix b/pkgs/development/python-modules/plumed/default.nix index 327c41e6cc97..f1236191002f 100644 --- a/pkgs/development/python-modules/plumed/default.nix +++ b/pkgs/development/python-modules/plumed/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "plumed"; inherit (plumed) version src; pyproject = true; - __structuredAttrs = true; sourceRoot = "${finalAttrs.src.name}/python"; diff --git a/pkgs/development/python-modules/pmdarima/default.nix b/pkgs/development/python-modules/pmdarima/default.nix index a81237d371a3..478a3527cac7 100644 --- a/pkgs/development/python-modules/pmdarima/default.nix +++ b/pkgs/development/python-modules/pmdarima/default.nix @@ -70,6 +70,13 @@ buildPythonPackage rec { disabledTests = [ # touches internet "test_load_from_web" + + # Failed: DID NOT WARN. No warnings of type (,) were emitted + "test_max_dur" + "test_subsequent_contexts" + + # ValueError: assignment destination is read-only + "test_pipeline_predict_inverse_transform" ]; pythonImportsCheck = [ "pmdarima" ]; diff --git a/pkgs/development/python-modules/pocket-tts/default.nix b/pkgs/development/python-modules/pocket-tts/default.nix index 202a4c370a52..e100e236de4c 100644 --- a/pkgs/development/python-modules/pocket-tts/default.nix +++ b/pkgs/development/python-modules/pocket-tts/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "pocket-tts"; version = "4.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "kyutai-labs"; diff --git a/pkgs/development/python-modules/poetry-core/default.nix b/pkgs/development/python-modules/poetry-core/default.nix index 258f826779bc..06c976a099b1 100644 --- a/pkgs/development/python-modules/poetry-core/default.nix +++ b/pkgs/development/python-modules/poetry-core/default.nix @@ -25,14 +25,14 @@ buildPythonPackage (finalAttrs: { pname = "poetry-core"; - version = "2.4.1"; + version = "2.5.0"; pyproject = true; src = fetchFromGitHub { owner = "python-poetry"; repo = "poetry-core"; tag = finalAttrs.version; - hash = "sha256-Io2VpLxnJesO4QohsunD7ogr87NiNjGeTmEl9wFswkw="; + hash = "sha256-KEjdHHiXphtVqkq08VCSwmpw3r5SaDgftw1wxcujJPc="; }; inherit doCheck; diff --git a/pkgs/development/python-modules/polars/default.nix b/pkgs/development/python-modules/polars/default.nix index 704524ce7bba..2a66d91af752 100644 --- a/pkgs/development/python-modules/polars/default.nix +++ b/pkgs/development/python-modules/polars/default.nix @@ -20,8 +20,7 @@ mimalloc, jemalloc, rust-jemalloc-sys, - # Another alternative is to try `mimalloc` - polarsMemoryAllocator ? mimalloc, # polarsJemalloc, + polarsMemoryAllocator ? polarsJemalloc, # mimalloc (see meta.problems), polarsJemalloc ? let jemalloc' = rust-jemalloc-sys.override { @@ -82,6 +81,9 @@ buildPythonPackage (finalAttrs: { ]; buildInputs = [ + # The mimalloc work-around doesn't seem to work. + # runtime paths do not list mimalloc, and jemalloc is + # compiled & used regardless. polarsMemoryAllocator (pkgs.__splicedPackages.zstd or pkgs.zstd) ]; @@ -297,5 +299,8 @@ buildPythonPackage (finalAttrs: { ]; mainProgram = "polars"; platforms = lib.platforms.all; + } + // lib.optionalAttrs (polarsMemoryAllocator.pname == "mimalloc") { + problems.brokenMimalloc = "mimalloc polarsMemoryAllocator does not actually link mimalloc."; }; }) diff --git a/pkgs/development/python-modules/pomegranate/default.nix b/pkgs/development/python-modules/pomegranate/default.nix index 0c5ccd4eb5d5..c70e467da35b 100644 --- a/pkgs/development/python-modules/pomegranate/default.nix +++ b/pkgs/development/python-modules/pomegranate/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, @@ -52,13 +51,6 @@ buildPythonPackage rec { }) ]; - disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # AssertionError: Arrays are not almost equal to 6 decimals - "tests/distributions/test_normal_full.py::test_fit" - "tests/distributions/test_normal_full.py::test_from_summaries" - "tests/distributions/test_normal_full.py::test_serialization" - ]; - disabledTests = [ # AssertionError: Arrays are not almost equal to 6 decimals "test_sample" diff --git a/pkgs/development/python-modules/portion/default.nix b/pkgs/development/python-modules/portion/default.nix index 0d6c30f0ffdb..63cd8d092d49 100644 --- a/pkgs/development/python-modules/portion/default.nix +++ b/pkgs/development/python-modules/portion/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "portion"; version = "2.6.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "AlexandreDecan"; diff --git a/pkgs/development/python-modules/ppscore/default.nix b/pkgs/development/python-modules/ppscore/default.nix index 7f949bfd6bb4..450f5efed585 100644 --- a/pkgs/development/python-modules/ppscore/default.nix +++ b/pkgs/development/python-modules/ppscore/default.nix @@ -8,7 +8,7 @@ scikit-learn, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ppscore"; version = "1.3.1"; pyproject = true; @@ -16,30 +16,36 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "8080labs"; repo = "ppscore"; - tag = version; + tag = finalAttrs.version; hash = "sha256-GhmyVWNWpEMNqXW808UhBHk1r6vOVibxKHVv5wWshLE="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + pythonRelaxDeps = [ "pandas" ]; + + dependencies = [ pandas scikit-learn ]; nativeCheckInputs = [ pytestCheckHook ]; - pythonRelaxDeps = [ "pandas" ]; + disabledTests = [ + # TypeError: to_datetime() got an unexpected keyword argument 'infer_datetime... + "test__determine_case_and_prepare_df" + "test_matrix" + ]; pythonImportsCheck = [ "ppscore" ]; meta = { description = "Python implementation of the Predictive Power Score (PPS)"; homepage = "https://github.com/8080labs/ppscore/"; - changelog = "https://github.com/8080labs/ppscore/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/8080labs/ppscore/blob/${finalAttrs.src.rev}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ evax ]; }; -} +}) diff --git a/pkgs/development/python-modules/pqc-audit/default.nix b/pkgs/development/python-modules/pqc-audit/default.nix index c9df403868f6..38168953e377 100644 --- a/pkgs/development/python-modules/pqc-audit/default.nix +++ b/pkgs/development/python-modules/pqc-audit/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "rauleteee"; repo = "pqc-scanner"; diff --git a/pkgs/development/python-modules/primp/default.nix b/pkgs/development/python-modules/primp/default.nix index 546b499d8989..c58dede9499d 100644 --- a/pkgs/development/python-modules/primp/default.nix +++ b/pkgs/development/python-modules/primp/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "deedy5"; repo = "primp"; diff --git a/pkgs/development/python-modules/probatio/default.nix b/pkgs/development/python-modules/probatio/default.nix index 5ffbccb77c00..7af30f69fda4 100644 --- a/pkgs/development/python-modules/probatio/default.nix +++ b/pkgs/development/python-modules/probatio/default.nix @@ -21,8 +21,6 @@ buildPythonPackage (finalAttrs: { version = "0.13.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "frenck"; repo = "probatio"; diff --git a/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix b/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix index bb2894bb1b4d..96d547d74173 100644 --- a/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix +++ b/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "prometheus-fastapi-instrumentator"; version = "8.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "trallnag"; diff --git a/pkgs/development/python-modules/protobuf-py-ext/default.nix b/pkgs/development/python-modules/protobuf-py-ext/default.nix index 47a9d8f5065f..2c50cda6b792 100644 --- a/pkgs/development/python-modules/protobuf-py-ext/default.nix +++ b/pkgs/development/python-modules/protobuf-py-ext/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "protobuf-py-ext"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; # No tag on GitHub for this release: bufbuild/protobuf-py's only tag is v0.2.0. # This has to stay in lockstep with protobuf-py, which is held at 0.1.1. diff --git a/pkgs/development/python-modules/protobuf-py/default.nix b/pkgs/development/python-modules/protobuf-py/default.nix index a8aebe2ea8fd..31d50b718d7d 100644 --- a/pkgs/development/python-modules/protobuf-py/default.nix +++ b/pkgs/development/python-modules/protobuf-py/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { # together. version = "0.3.0"; pyproject = true; - __structuredAttrs = true; # No tag on GitHub for this release: bufbuild/protobuf-py's only tag is v0.2.0, # which connectrpc (`protobuf-py==0.1.1`) and e2b (`<0.2`) do not accept yet. diff --git a/pkgs/development/python-modules/protobuf/5.nix b/pkgs/development/python-modules/protobuf/5.nix index dcfbf72e415c..5e44c82d463f 100644 --- a/pkgs/development/python-modules/protobuf/5.nix +++ b/pkgs/development/python-modules/protobuf/5.nix @@ -10,7 +10,6 @@ buildPythonPackage rec { pname = "protobuf"; version = "5.29.6"; pyproject = true; - __structuredAttrs = true; # nixpkgs-update: no auto update src = fetchPypi { diff --git a/pkgs/development/python-modules/protobuf/6.nix b/pkgs/development/python-modules/protobuf/6.nix index 8259f224f131..6c96954b0df7 100644 --- a/pkgs/development/python-modules/protobuf/6.nix +++ b/pkgs/development/python-modules/protobuf/6.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "protobuf"; version = "6.33.6"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/protobuf/7.nix b/pkgs/development/python-modules/protobuf/7.nix index fd0a3a0d8796..2d407bc45ce1 100644 --- a/pkgs/development/python-modules/protobuf/7.nix +++ b/pkgs/development/python-modules/protobuf/7.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "protobuf"; version = "7.36.2"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/psutil/default.nix b/pkgs/development/python-modules/psutil/default.nix index 23ddd1f76e28..b229a8882854 100644 --- a/pkgs/development/python-modules/psutil/default.nix +++ b/pkgs/development/python-modules/psutil/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "psutil"; version = "7.2.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "giampaolo"; diff --git a/pkgs/development/python-modules/pulsar-client/default.nix b/pkgs/development/python-modules/pulsar-client/default.nix index 6c0387135012..b97531491206 100644 --- a/pkgs/development/python-modules/pulsar-client/default.nix +++ b/pkgs/development/python-modules/pulsar-client/default.nix @@ -84,9 +84,8 @@ buildPythonPackage (finalAttrs: { ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" ]; pythonImportsCheck = [ "pulsar" ]; diff --git a/pkgs/development/python-modules/pure-magic-rs/default.nix b/pkgs/development/python-modules/pure-magic-rs/default.nix index 0ae216e92307..1c1773a05ab9 100644 --- a/pkgs/development/python-modules/pure-magic-rs/default.nix +++ b/pkgs/development/python-modules/pure-magic-rs/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "pure-magic-rs"; version = "0.6.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "qjerome"; diff --git a/pkgs/development/python-modules/py-cpuinfo2/default.nix b/pkgs/development/python-modules/py-cpuinfo2/default.nix index 16ea1422ec7c..48d964545dc8 100644 --- a/pkgs/development/python-modules/py-cpuinfo2/default.nix +++ b/pkgs/development/python-modules/py-cpuinfo2/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "10.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "akx"; repo = "py-cpuinfo2"; diff --git a/pkgs/development/python-modules/py-key-value-aio/default.nix b/pkgs/development/python-modules/py-key-value-aio/default.nix index 55601d9f4916..01ff2d2fd7ef 100644 --- a/pkgs/development/python-modules/py-key-value-aio/default.nix +++ b/pkgs/development/python-modules/py-key-value-aio/default.nix @@ -61,7 +61,6 @@ buildPythonPackage (finalAttrs: { pname = "py-key-value-aio"; version = "0.4.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "strawgate"; diff --git a/pkgs/development/python-modules/pyannote-audio/default.nix b/pkgs/development/python-modules/pyannote-audio/default.nix index 0ccbceceecef..151865d91a92 100644 --- a/pkgs/development/python-modules/pyannote-audio/default.nix +++ b/pkgs/development/python-modules/pyannote-audio/default.nix @@ -47,7 +47,6 @@ buildPythonPackage (finalAttrs: { pname = "pyannote-audio"; version = "4.0.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyannote"; diff --git a/pkgs/development/python-modules/pyasn1-alt-modules/default.nix b/pkgs/development/python-modules/pyasn1-alt-modules/default.nix index 11b22d7eb0d0..8c11265d7a90 100644 --- a/pkgs/development/python-modules/pyasn1-alt-modules/default.nix +++ b/pkgs/development/python-modules/pyasn1-alt-modules/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.10"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "russhousley"; repo = "pyasn1-alt-modules"; diff --git a/pkgs/development/python-modules/pyatspi/default.nix b/pkgs/development/python-modules/pyatspi/default.nix index 54168a01e725..76769be723f7 100644 --- a/pkgs/development/python-modules/pyatspi/default.nix +++ b/pkgs/development/python-modules/pyatspi/default.nix @@ -13,13 +13,13 @@ buildPythonPackage rec { pname = "pyatspi"; - version = "2.58.1"; + version = "2.58.2"; pyproject = false; src = fetchurl { url = "mirror://gnome/sources/pyatspi/${lib.versions.majorMinor version}/pyatspi-${version}.tar.xz"; - hash = "sha256-Px8HmTX5JlhDMQJcdTGFjetCJFyZO2USH09LAeawRTY="; + hash = "sha256-JFkOW2D+yN+1n80n0qkN5wNAYL4xjKP3dw4PmE8flOI="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/pybase62/default.nix b/pkgs/development/python-modules/pybase62/default.nix index 6971f9e39c70..0b92f50c44a3 100644 --- a/pkgs/development/python-modules/pybase62/default.nix +++ b/pkgs/development/python-modules/pybase62/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "suminb"; repo = "base62"; diff --git a/pkgs/development/python-modules/pybase91/default.nix b/pkgs/development/python-modules/pybase91/default.nix index 3e4d59635eb0..ce0e42599595 100644 --- a/pkgs/development/python-modules/pybase91/default.nix +++ b/pkgs/development/python-modules/pybase91/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "pybase91"; - __structuredAttrs = true; # The same source and vendored crates as the base91 command-line tool: # updating base91 updates both. inherit (base91) version src cargoDeps; diff --git a/pkgs/development/python-modules/pybedtools/default.nix b/pkgs/development/python-modules/pybedtools/default.nix index 44d71233a1df..8d807d3eac00 100644 --- a/pkgs/development/python-modules/pybedtools/default.nix +++ b/pkgs/development/python-modules/pybedtools/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "pybedtools"; version = "0.12.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "daler"; diff --git a/pkgs/development/python-modules/pybuildkite/default.nix b/pkgs/development/python-modules/pybuildkite/default.nix index 83ec9db735d8..36c035f2fcc0 100644 --- a/pkgs/development/python-modules/pybuildkite/default.nix +++ b/pkgs/development/python-modules/pybuildkite/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "pybuildkite"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyasi"; diff --git a/pkgs/development/python-modules/pycifrw/default.nix b/pkgs/development/python-modules/pycifrw/default.nix index 8ff36cd7486f..09cd8fbc9350 100644 --- a/pkgs/development/python-modules/pycifrw/default.nix +++ b/pkgs/development/python-modules/pycifrw/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "5.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "jamesrhester"; repo = "pycifrw"; diff --git a/pkgs/development/python-modules/pycodec2/default.nix b/pkgs/development/python-modules/pycodec2/default.nix index f226fa0725f7..29541a74144d 100644 --- a/pkgs/development/python-modules/pycodec2/default.nix +++ b/pkgs/development/python-modules/pycodec2/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "pycodec2"; version = "4.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "gregorias"; diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix index 423496f7610e..b22abc8c45df 100644 --- a/pkgs/development/python-modules/pycodestyle/default.nix +++ b/pkgs/development/python-modules/pycodestyle/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "pycodestyle"; - version = "2.14.0"; + version = "2.15.0"; pyproject = true; src = fetchFromGitHub { owner = "PyCQA"; repo = "pycodestyle"; tag = version; - hash = "sha256-1EEQp/QEulrdU9tTe28NerQ33IWlAiSlicpmNYciW88="; + hash = "sha256-o/OddDPcCB/tc6qQ0OAJ5UpXaVh3zL2n8Z9BqPIrGdQ="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/pycparser/default.nix b/pkgs/development/python-modules/pycparser/default.nix index 2e369960993c..fa49f893a9df 100644 --- a/pkgs/development/python-modules/pycparser/default.nix +++ b/pkgs/development/python-modules/pycparser/default.nix @@ -8,7 +8,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pycparser"; version = "3.00"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "eliben"; repo = "pycparser"; - tag = "release_v${version}"; + tag = "release_v${finalAttrs.version}"; hash = "sha256-6eKc+p3xLyRPo3oCWP/dbMpHlkBXLy8XiGR0gTEHI2E="; }; @@ -30,9 +30,8 @@ buildPythonPackage rec { substituteInPlace examples/using_gcc_E_libc.py \ --replace-fail "'gcc'" "'${stdenv.cc.targetPrefix}cc'" ''; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; passthru.updateScript = gitUpdater { @@ -40,10 +39,10 @@ buildPythonPackage rec { }; meta = { - changelog = "https://github.com/eliben/pycparser/releases/tag/${src.tag}"; + changelog = "https://github.com/eliben/pycparser/releases/tag/${finalAttrs.src.tag}"; description = "C parser in Python"; homepage = "https://github.com/eliben/pycparser"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/pycrate/default.nix b/pkgs/development/python-modules/pycrate/default.nix index d929ea9a7d66..a7a254705e97 100644 --- a/pkgs/development/python-modules/pycrate/default.nix +++ b/pkgs/development/python-modules/pycrate/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "pycrate"; version = "0.8.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pycrate-org"; diff --git a/pkgs/development/python-modules/pycrdt-store/default.nix b/pkgs/development/python-modules/pycrdt-store/default.nix index c29309599d88..e090fe729495 100644 --- a/pkgs/development/python-modules/pycrdt-store/default.nix +++ b/pkgs/development/python-modules/pycrdt-store/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "pycrdt-store"; version = "0.1.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "y-crdt"; diff --git a/pkgs/development/python-modules/pycrdt-websocket/default.nix b/pkgs/development/python-modules/pycrdt-websocket/default.nix index 12ad6d5b9a3f..d8500eae464f 100644 --- a/pkgs/development/python-modules/pycrdt-websocket/default.nix +++ b/pkgs/development/python-modules/pycrdt-websocket/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "pycrdt-websocket"; version = "0.16.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "y-crdt"; diff --git a/pkgs/development/python-modules/pycrdt/default.nix b/pkgs/development/python-modules/pycrdt/default.nix index 509a30170931..ed39f31474bd 100644 --- a/pkgs/development/python-modules/pycrdt/default.nix +++ b/pkgs/development/python-modules/pycrdt/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "pycrdt"; version = "0.14.13"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "y-crdt"; diff --git a/pkgs/development/python-modules/pycurl/default.nix b/pkgs/development/python-modules/pycurl/default.nix index 2ec4c2da4391..522d5da807f2 100644 --- a/pkgs/development/python-modules/pycurl/default.nix +++ b/pkgs/development/python-modules/pycurl/default.nix @@ -91,7 +91,7 @@ buildPythonPackage rec { "test_clear_via_assign_none_inside_callback_resets_socketp" "test_multi_unassign_inside_socket_callback" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Fatal Python error: Segmentation fault "cadata_test" ]; diff --git a/pkgs/development/python-modules/pydantic-ai-harness/default.nix b/pkgs/development/python-modules/pydantic-ai-harness/default.nix index 6327ed55f576..e91dda0cf143 100644 --- a/pkgs/development/python-modules/pydantic-ai-harness/default.nix +++ b/pkgs/development/python-modules/pydantic-ai-harness/default.nix @@ -22,8 +22,6 @@ buildPythonPackage (finalAttrs: { version = "2.54.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "pydantic"; repo = "pydantic-ai"; diff --git a/pkgs/development/python-modules/pydantic-graph/default.nix b/pkgs/development/python-modules/pydantic-graph/default.nix index d58f0bcbf304..cab7f0474f81 100644 --- a/pkgs/development/python-modules/pydantic-graph/default.nix +++ b/pkgs/development/python-modules/pydantic-graph/default.nix @@ -22,8 +22,6 @@ buildPythonPackage (finalAttrs: { version = "2.54.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "pydantic"; repo = "pydantic-ai"; diff --git a/pkgs/development/python-modules/pydantic-monty/default.nix b/pkgs/development/python-modules/pydantic-monty/default.nix index 2a1278e72f22..48d23051d3fa 100644 --- a/pkgs/development/python-modules/pydantic-monty/default.nix +++ b/pkgs/development/python-modules/pydantic-monty/default.nix @@ -2,6 +2,8 @@ lib, buildPythonPackage, fetchFromGitHub, + zstd, + pkg-config, pytestCheckHook, rustPlatform, @@ -18,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.17"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "pydantic"; repo = "monty"; @@ -35,10 +35,13 @@ buildPythonPackage (finalAttrs: { dependencies = [ typing-extensions ]; nativeBuildInputs = [ + pkg-config rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ]; + buildInputs = [ zstd ]; + maturinBuildFlags = [ "-m" "crates/monty-python/Cargo.toml" diff --git a/pkgs/development/python-modules/pydantic-zarr/default.nix b/pkgs/development/python-modules/pydantic-zarr/default.nix index 026360d140be..c7ca0d4fc8ef 100644 --- a/pkgs/development/python-modules/pydantic-zarr/default.nix +++ b/pkgs/development/python-modules/pydantic-zarr/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "pydantic-zarr"; version = "0.10.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "zarr-developers"; diff --git a/pkgs/development/python-modules/pydeep2/default.nix b/pkgs/development/python-modules/pydeep2/default.nix index cb0ff562013a..24a2107bb511 100644 --- a/pkgs/development/python-modules/pydeep2/default.nix +++ b/pkgs/development/python-modules/pydeep2/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "JakubOnderka"; repo = "pydeep"; diff --git a/pkgs/development/python-modules/pydeprecate/default.nix b/pkgs/development/python-modules/pydeprecate/default.nix index 962cb0467a85..1bd5cabf55f7 100644 --- a/pkgs/development/python-modules/pydeprecate/default.nix +++ b/pkgs/development/python-modules/pydeprecate/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "pyDeprecate"; version = "0.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Borda"; diff --git a/pkgs/development/python-modules/pydocket/default.nix b/pkgs/development/python-modules/pydocket/default.nix index 90cdc1cc21b3..cb9dfbbd75b9 100644 --- a/pkgs/development/python-modules/pydocket/default.nix +++ b/pkgs/development/python-modules/pydocket/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "pydocket"; version = "0.25.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "chrisguidry"; diff --git a/pkgs/development/python-modules/pydriller/default.nix b/pkgs/development/python-modules/pydriller/default.nix index fda7270bbd88..b0019279eae9 100644 --- a/pkgs/development/python-modules/pydriller/default.nix +++ b/pkgs/development/python-modules/pydriller/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "pydriller"; version = "2.12"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ishepard"; diff --git a/pkgs/development/python-modules/pyduktape2/default.nix b/pkgs/development/python-modules/pyduktape2/default.nix index c9541401af15..48c0ac3e013c 100644 --- a/pkgs/development/python-modules/pyduktape2/default.nix +++ b/pkgs/development/python-modules/pyduktape2/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "phith0n"; repo = "pyduktape2"; diff --git a/pkgs/development/python-modules/pyemd/default.nix b/pkgs/development/python-modules/pyemd/default.nix index 11eb9d95d8d3..de85b19b4e6b 100644 --- a/pkgs/development/python-modules/pyemd/default.nix +++ b/pkgs/development/python-modules/pyemd/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.0"; pyproject = true; - __structuredAttrs = true; - disabled = pythonOlder "3.12"; src = fetchPypi { diff --git a/pkgs/development/python-modules/pyexiv2/default.nix b/pkgs/development/python-modules/pyexiv2/default.nix index 4156ae9f5ce7..822ad20b1a2f 100644 --- a/pkgs/development/python-modules/pyexiv2/default.nix +++ b/pkgs/development/python-modules/pyexiv2/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "pyexiv2"; version = "2.16.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "LeoHsiao1"; diff --git a/pkgs/development/python-modules/pyfakefs/default.nix b/pkgs/development/python-modules/pyfakefs/default.nix index 3b8eeb90130e..f8e45f296600 100644 --- a/pkgs/development/python-modules/pyfakefs/default.nix +++ b/pkgs/development/python-modules/pyfakefs/default.nix @@ -56,8 +56,6 @@ let ]; }); - __structuredAttrs = true; - meta = { description = "Fake file system that mocks the Python file system modules"; homepage = "https://pytest-pyfakefs.readthedocs.io"; diff --git a/pkgs/development/python-modules/pyfaup-rs/default.nix b/pkgs/development/python-modules/pyfaup-rs/default.nix index 8fbbc9994f95..384d68728d51 100644 --- a/pkgs/development/python-modules/pyfaup-rs/default.nix +++ b/pkgs/development/python-modules/pyfaup-rs/default.nix @@ -8,19 +8,19 @@ buildPythonPackage (finalAttrs: { pname = "pyfaup-rs"; - version = "0.4.27"; + version = "0.4.28"; pyproject = true; src = fetchFromGitHub { owner = "ail-project"; repo = "faup-rs"; tag = "pyfaup-rs-v${finalAttrs.version}"; - hash = "sha256-mTEmV8T7Nbuz5SF2TNdM/XfBLhG+M8sZlTE02JXZGVA="; + hash = "sha256-vW29onGzR1VTNwJ1UEWYfMa2C55MInsdOin42F8Eivg="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-ym6h7NHEvlyaymM0hOfMWBPtKR0xteZrnIR1c7iCo6w="; + hash = "sha256-1hvfh3yJioqV18USoxq04G+fjl+XQ6WgQcRIndiNH30="; }; buildAndTestSubdir = "python"; diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix index 821ce3d55f77..ef7c80272362 100644 --- a/pkgs/development/python-modules/pyflakes/default.nix +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "pyflakes"; - version = "3.4.0"; + version = "4.0.3"; pyproject = true; src = fetchFromGitHub { owner = "PyCQA"; repo = "pyflakes"; tag = version; - hash = "sha256-4UEJjn9Eey1vHeaG468x/nMlbfGu3ohZX1R7RR2R5ik="; + hash = "sha256-uVNVSjaGuH2JRMnNBvrP6uvMu1ywhXvubpXgkVA1jZs="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/pyg-lib/default.nix b/pkgs/development/python-modules/pyg-lib/default.nix index 370eaad1068b..49fa16a62abf 100644 --- a/pkgs/development/python-modules/pyg-lib/default.nix +++ b/pkgs/development/python-modules/pyg-lib/default.nix @@ -20,7 +20,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "pyg-lib"; version = "0.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyg-team"; diff --git a/pkgs/development/python-modules/pygame-ce/default.nix b/pkgs/development/python-modules/pygame-ce/default.nix index 7ffb8bcdbc29..7d31cbe4cc36 100644 --- a/pkgs/development/python-modules/pygame-ce/default.nix +++ b/pkgs/development/python-modules/pygame-ce/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "pygame-ce"; version = "2.5.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pygame-community"; diff --git a/pkgs/development/python-modules/pygame-gui/default.nix b/pkgs/development/python-modules/pygame-gui/default.nix index b0b15fcd83e6..3cb01d7e5ff6 100644 --- a/pkgs/development/python-modules/pygame-gui/default.nix +++ b/pkgs/development/python-modules/pygame-gui/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "pygame-gui"; version = "0.6.14"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "MyreMylar"; diff --git a/pkgs/development/python-modules/pygobject/3.nix b/pkgs/development/python-modules/pygobject/3.nix index c728dbbbd82c..7dfe6fbd6856 100644 --- a/pkgs/development/python-modules/pygobject/3.nix +++ b/pkgs/development/python-modules/pygobject/3.nix @@ -13,11 +13,13 @@ ninja, gnome, python, + + withCairo ? true, }: buildPythonPackage rec { pname = "pygobject"; - version = "3.56.3"; + version = "3.58.0"; outputs = [ "out" @@ -28,7 +30,7 @@ buildPythonPackage rec { src = fetchurl { url = "mirror://gnome/sources/pygobject/${lib.versions.majorMinor version}/pygobject-${version}.tar.gz"; - hash = "sha256-EnYOSg49BLbrleBveifjYsgm1WfqYTNzqSwAO2xw0tY="; + hash = "sha256-RQaGl94//kaEDKNpcF8jEYs0209962P27/B5pnNN3Mo="; }; depsBuildBuild = [ pkg-config ]; @@ -41,14 +43,18 @@ buildPythonPackage rec { ]; buildInputs = [ - cairo glib ] + ++ lib.optionals withCairo [ + cairo + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ ncurses ]; propagatedBuildInputs = [ - pycairo gobject-introspection # e.g. try building: python3Packages.urwid python3Packages.pydbus + ] + ++ lib.optionals withCairo [ + pycairo ]; # Fixes https://github.com/NixOS/nixpkgs/issues/378447 @@ -61,7 +67,9 @@ buildPythonPackage rec { # This is only used for figuring out what version of Python is in # use, and related stuff like figuring out what the install prefix # should be, but it does need to be able to execute Python code. - "-Dpython=${python.pythonOnBuildForHost.interpreter}" + (lib.mesonOption "python" python.pythonOnBuildForHost.interpreter) + + (lib.mesonEnable "pycairo" withCairo) ]; passthru = { diff --git a/pkgs/development/python-modules/pygrib/default.nix b/pkgs/development/python-modules/pygrib/default.nix index b335e3df47bf..fca5ecd58b23 100644 --- a/pkgs/development/python-modules/pygrib/default.nix +++ b/pkgs/development/python-modules/pygrib/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "pygrib"; version = "2.1.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jswhit"; diff --git a/pkgs/development/python-modules/pygrister/default.nix b/pkgs/development/python-modules/pygrister/default.nix index 4b3a220c1e77..1ad3370d6afe 100644 --- a/pkgs/development/python-modules/pygrister/default.nix +++ b/pkgs/development/python-modules/pygrister/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "pygrister"; version = "0.10.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ricpol"; diff --git a/pkgs/development/python-modules/pygrok/default.nix b/pkgs/development/python-modules/pygrok/default.nix index 630811d9b84a..a746a2c1e585 100644 --- a/pkgs/development/python-modules/pygrok/default.nix +++ b/pkgs/development/python-modules/pygrok/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "garyelephant"; repo = "pygrok"; diff --git a/pkgs/development/python-modules/pygtrie/default.nix b/pkgs/development/python-modules/pygtrie/default.nix index 45b8e3d68d91..a46af86a5a06 100644 --- a/pkgs/development/python-modules/pygtrie/default.nix +++ b/pkgs/development/python-modules/pygtrie/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.5.0"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "pygtrie"; diff --git a/pkgs/development/python-modules/pyhomepilot/default.nix b/pkgs/development/python-modules/pyhomepilot/default.nix index 2f5f772719a6..5113b405d618 100644 --- a/pkgs/development/python-modules/pyhomepilot/default.nix +++ b/pkgs/development/python-modules/pyhomepilot/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "pyhomepilot"; version = "0.0.3"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/pyi2cflash/default.nix b/pkgs/development/python-modules/pyi2cflash/default.nix index 3551ac364df5..4ebe59284c2b 100644 --- a/pkgs/development/python-modules/pyi2cflash/default.nix +++ b/pkgs/development/python-modules/pyi2cflash/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.2"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "pyi2cflash"; diff --git a/pkgs/development/python-modules/pyialarm/default.nix b/pkgs/development/python-modules/pyialarm/default.nix index bbac1c28fc68..c728b3635279 100644 --- a/pkgs/development/python-modules/pyialarm/default.nix +++ b/pkgs/development/python-modules/pyialarm/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { version = "2.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "RyuzakiKK"; diff --git a/pkgs/development/python-modules/pyiceberg-core/default.nix b/pkgs/development/python-modules/pyiceberg-core/default.nix index 99eeb33ac333..40b1d2199a4d 100644 --- a/pkgs/development/python-modules/pyiceberg-core/default.nix +++ b/pkgs/development/python-modules/pyiceberg-core/default.nix @@ -3,6 +3,8 @@ buildPythonPackage, fetchFromGitHub, rustPlatform, + pkg-config, + zstd, # tests datafusion, @@ -19,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "pyiceberg-core"; version = "0.10.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "apache"; @@ -48,8 +49,11 @@ buildPythonPackage (finalAttrs: { nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook + pkg-config ]; + buildInputs = [ zstd ]; + pythonImportsCheck = [ "pyiceberg_core" ]; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/pyiceberg/default.nix b/pkgs/development/python-modules/pyiceberg/default.nix index 13fe57bde598..64d03d526d40 100644 --- a/pkgs/development/python-modules/pyiceberg/default.nix +++ b/pkgs/development/python-modules/pyiceberg/default.nix @@ -62,7 +62,6 @@ buildPythonPackage (finalAttrs: { pname = "pyiceberg"; version = "0.12.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "apache"; diff --git a/pkgs/development/python-modules/pyimpfuzzy/default.nix b/pkgs/development/python-modules/pyimpfuzzy/default.nix index b2614a3cb053..b8a020eca3d1 100644 --- a/pkgs/development/python-modules/pyimpfuzzy/default.nix +++ b/pkgs/development/python-modules/pyimpfuzzy/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "pyimpfuzzy"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/pyinfra/default.nix b/pkgs/development/python-modules/pyinfra/default.nix index 0373af560e9f..bf32a81b7fc0 100644 --- a/pkgs/development/python-modules/pyinfra/default.nix +++ b/pkgs/development/python-modules/pyinfra/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "pyinfra"; version = "3.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyinfra-dev"; diff --git a/pkgs/development/python-modules/pyinotify/default.nix b/pkgs/development/python-modules/pyinotify/default.nix index 2f4c6ca89014..1ed6b8fe0ad7 100644 --- a/pkgs/development/python-modules/pyinotify/default.nix +++ b/pkgs/development/python-modules/pyinotify/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { pname = "pyinotify"; version = "0.9.6"; - __structuredAttrs = true; pyproject = true; src = fetchPypi { diff --git a/pkgs/development/python-modules/pyinputevent/default.nix b/pkgs/development/python-modules/pyinputevent/default.nix index 4b5be38ea204..3a06821b58c9 100644 --- a/pkgs/development/python-modules/pyinputevent/default.nix +++ b/pkgs/development/python-modules/pyinputevent/default.nix @@ -9,7 +9,6 @@ buildPythonPackage { pname = "pyinputevent"; version = "0.1-unstable-2015-10-18"; - __structuredAttrs = true; pyproject = true; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/pyinstaller-versionfile/default.nix b/pkgs/development/python-modules/pyinstaller-versionfile/default.nix index dce65e651556..d42425214eca 100644 --- a/pkgs/development/python-modules/pyinstaller-versionfile/default.nix +++ b/pkgs/development/python-modules/pyinstaller-versionfile/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { version = "3.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "DudeNr33"; diff --git a/pkgs/development/python-modules/pyjks/default.nix b/pkgs/development/python-modules/pyjks/default.nix index 753182ea600b..ece81756d585 100644 --- a/pkgs/development/python-modules/pyjks/default.nix +++ b/pkgs/development/python-modules/pyjks/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "pyjks"; version = "20.0.0"; - __structuredAttrs = true; pyproject = true; src = fetchPypi { diff --git a/pkgs/development/python-modules/pyjnius/default.nix b/pkgs/development/python-modules/pyjnius/default.nix index fdfea0572834..8758e156f187 100644 --- a/pkgs/development/python-modules/pyjnius/default.nix +++ b/pkgs/development/python-modules/pyjnius/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "pyjnius"; version = "1.7.0"; - __structuredAttrs = true; pyproject = true; src = fetchPypi { diff --git a/pkgs/development/python-modules/pylacrosse/default.nix b/pkgs/development/python-modules/pylacrosse/default.nix index 562e55ae3cf2..766a30272ea1 100644 --- a/pkgs/development/python-modules/pylacrosse/default.nix +++ b/pkgs/development/python-modules/pylacrosse/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "hthiery"; repo = "python-lacrosse"; diff --git a/pkgs/development/python-modules/pylance/default.nix b/pkgs/development/python-modules/pylance/default.nix index 480a9b74e9be..34c861f3729c 100644 --- a/pkgs/development/python-modules/pylance/default.nix +++ b/pkgs/development/python-modules/pylance/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "pylance"; version = "14.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lancedb"; diff --git a/pkgs/development/python-modules/pylatexenc/default.nix b/pkgs/development/python-modules/pylatexenc/default.nix index cff710bea20a..590305f874e5 100644 --- a/pkgs/development/python-modules/pylatexenc/default.nix +++ b/pkgs/development/python-modules/pylatexenc/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { version = "2.11"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "phfaist"; diff --git a/pkgs/development/python-modules/pyldapsearch/default.nix b/pkgs/development/python-modules/pyldapsearch/default.nix index b72b02350a24..bfce80767920 100644 --- a/pkgs/development/python-modules/pyldapsearch/default.nix +++ b/pkgs/development/python-modules/pyldapsearch/default.nix @@ -20,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Tw1sm"; repo = "pyldapsearch"; diff --git a/pkgs/development/python-modules/pyluwen/default.nix b/pkgs/development/python-modules/pyluwen/default.nix index 4ba157428ecd..668f2905f491 100644 --- a/pkgs/development/python-modules/pyluwen/default.nix +++ b/pkgs/development/python-modules/pyluwen/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "pyluwen"; version = "0.10.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tenstorrent"; diff --git a/pkgs/development/python-modules/pymap3d/default.nix b/pkgs/development/python-modules/pymap3d/default.nix index 9d6526a0125c..ef9d3755c0b2 100644 --- a/pkgs/development/python-modules/pymap3d/default.nix +++ b/pkgs/development/python-modules/pymap3d/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "pymap3d"; version = "3.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "geospace-code"; diff --git a/pkgs/development/python-modules/pymc/default.nix b/pkgs/development/python-modules/pymc/default.nix index 0b21014c2f33..e94665d27b6c 100644 --- a/pkgs/development/python-modules/pymc/default.nix +++ b/pkgs/development/python-modules/pymc/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "pymc"; version = "6.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pymc-devs"; diff --git a/pkgs/development/python-modules/pymeshlab/default.nix b/pkgs/development/python-modules/pymeshlab/default.nix index 6904359d3963..fb43a4a11908 100644 --- a/pkgs/development/python-modules/pymeshlab/default.nix +++ b/pkgs/development/python-modules/pymeshlab/default.nix @@ -98,8 +98,6 @@ buildPythonPackage { pythonImportsCheck = [ "pymeshlab" ]; - __structuredAttrs = true; - meta = { description = "Open source mesh processing python library"; homepage = "https://github.com/cnr-isti-vclab/PyMeshLab"; diff --git a/pkgs/development/python-modules/pymisp/default.nix b/pkgs/development/python-modules/pymisp/default.nix index 4c09ca522227..191170ee4c7d 100644 --- a/pkgs/development/python-modules/pymisp/default.nix +++ b/pkgs/development/python-modules/pymisp/default.nix @@ -31,8 +31,6 @@ buildPythonPackage (finalAttrs: { version = "2.5.34.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "MISP"; repo = "PyMISP"; diff --git a/pkgs/development/python-modules/pymorphy2/default.nix b/pkgs/development/python-modules/pymorphy2/default.nix index 37a89bc45f84..71f05140c649 100644 --- a/pkgs/development/python-modules/pymorphy2/default.nix +++ b/pkgs/development/python-modules/pymorphy2/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.1"; format = "setuptools"; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-hsRHFX3uLrI0HvvkU44SgadUdWuhqjLad6iWFMWLVgw="; diff --git a/pkgs/development/python-modules/pynauty/default.nix b/pkgs/development/python-modules/pynauty/default.nix index f223889fb1ae..f45b6e52b2f9 100644 --- a/pkgs/development/python-modules/pynauty/default.nix +++ b/pkgs/development/python-modules/pynauty/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "pynauty"; version = "2.8.8.1"; - __structuredAttrs = true; - pyproject = true; disabled = pythonOlder "3.8"; diff --git a/pkgs/development/python-modules/pynvml/default.nix b/pkgs/development/python-modules/pynvml/default.nix index 581c0ab8c6ea..7994f16feb61 100644 --- a/pkgs/development/python-modules/pynvml/default.nix +++ b/pkgs/development/python-modules/pynvml/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "13.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "gpuopenanalytics"; repo = "pynvml"; diff --git a/pkgs/development/python-modules/pyobjus/default.nix b/pkgs/development/python-modules/pyobjus/default.nix index 29438e2effd4..ddbb31f8ba5a 100644 --- a/pkgs/development/python-modules/pyobjus/default.nix +++ b/pkgs/development/python-modules/pyobjus/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "pyobjus"; version = "1.2.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "kivy"; diff --git a/pkgs/development/python-modules/pyogrio/default.nix b/pkgs/development/python-modules/pyogrio/default.nix index b96626ec76e7..286ca19a6232 100644 --- a/pkgs/development/python-modules/pyogrio/default.nix +++ b/pkgs/development/python-modules/pyogrio/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "pyogrio"; version = "0.13.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "geopandas"; diff --git a/pkgs/development/python-modules/pyopencl/default.nix b/pkgs/development/python-modules/pyopencl/default.nix index b713552d50bb..752b567096f8 100644 --- a/pkgs/development/python-modules/pyopencl/default.nix +++ b/pkgs/development/python-modules/pyopencl/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "pyopencl"; version = "2026.1.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "inducer"; diff --git a/pkgs/development/python-modules/pyoxigraph/default.nix b/pkgs/development/python-modules/pyoxigraph/default.nix index 899d5aa65965..c3a94d5aa2f6 100644 --- a/pkgs/development/python-modules/pyoxigraph/default.nix +++ b/pkgs/development/python-modules/pyoxigraph/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { pyproject = true; version = "0.5.9"; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "oxigraph"; repo = "oxigraph"; diff --git a/pkgs/development/python-modules/pyperf/default.nix b/pkgs/development/python-modules/pyperf/default.nix index 7903a717fc30..3687b845235c 100644 --- a/pkgs/development/python-modules/pyperf/default.nix +++ b/pkgs/development/python-modules/pyperf/default.nix @@ -7,13 +7,14 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyperf"; version = "2.10.0"; pyproject = true; src = fetchPypi { - inherit pname version; + pname = "pyperf"; + inherit (finalAttrs) version; hash = "sha256-3ZPM/aeSFHJSk+lfH6bgDLSmStzxMmA5SG1OH5HKqmI="; }; @@ -23,9 +24,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "pyperf/tests/" + unittestFlags = [ + "--start-directory=pyperf/tests" "-v" ]; @@ -35,8 +35,8 @@ buildPythonPackage rec { description = "Python module to generate and modify perf"; mainProgram = "pyperf"; homepage = "https://pyperf.readthedocs.io/"; - changelog = "https://github.com/psf/pyperf/releases/tag/${version}"; + changelog = "https://github.com/psf/pyperf/releases/tag/${finalAttrs.version}"; license = lib.licenses.mit; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/pyqt/5.x.nix b/pkgs/development/python-modules/pyqt/5.x.nix index 8a572b910fc2..62bbc998f3c4 100644 --- a/pkgs/development/python-modules/pyqt/5.x.nix +++ b/pkgs/development/python-modules/pyqt/5.x.nix @@ -55,7 +55,7 @@ buildPythonPackage rec { # Due to bug in SIP .whl name generation we have to bump minimal macos sdk upto 11.0 for # aarch64-darwin. This patch can be removed once SIP will fix it in upstream, # see https://github.com/NixOS/nixpkgs/pull/186612#issuecomment-1214635456. - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' minimum-macos-version = "11.0" '' + '' diff --git a/pkgs/development/python-modules/pyqtgraph/default.nix b/pkgs/development/python-modules/pyqtgraph/default.nix index f28ffe84b751..6ee92d850f6e 100644 --- a/pkgs/development/python-modules/pyqtgraph/default.nix +++ b/pkgs/development/python-modules/pyqtgraph/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "pyqtgraph"; version = "0.14.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyqtgraph"; diff --git a/pkgs/development/python-modules/pyqwest/default.nix b/pkgs/development/python-modules/pyqwest/default.nix index ed5d6294e751..88e637418a62 100644 --- a/pkgs/development/python-modules/pyqwest/default.nix +++ b/pkgs/development/python-modules/pyqwest/default.nix @@ -3,19 +3,18 @@ buildPythonPackage, fetchFromGitHub, - # build-system - cmake, rustPlatform, + pkg-config, # dependencies opentelemetry-api, + pkgsHostTarget, }: buildPythonPackage (finalAttrs: { pname = "pyqwest"; version = "0.10.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "curioswitch"; @@ -40,20 +39,21 @@ buildPythonPackage (finalAttrs: { ''; nativeBuildInputs = [ - # Only invoked by aws-lc-sys' build script; there is no top-level - # CMakeLists.txt to configure. - cmake + pkg-config rustPlatform.bindgenHook rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ]; - dontUseCmakeConfigure = true; - dependencies = [ opentelemetry-api ]; + buildInputs = [ + pkgsHostTarget.aws-lc + pkgsHostTarget.zstd + ]; + pythonImportsCheck = [ "pyqwest" ]; # The test suite spins up local HTTP/1, HTTP/2 and HTTP/3 servers through diff --git a/pkgs/development/python-modules/pyregrws/default.nix b/pkgs/development/python-modules/pyregrws/default.nix index cf94ef792f08..a95eb0cae2d7 100644 --- a/pkgs/development/python-modules/pyregrws/default.nix +++ b/pkgs/development/python-modules/pyregrws/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "pyregrws"; version = "1.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jsenecal"; diff --git a/pkgs/development/python-modules/pyro-ppl/default.nix b/pkgs/development/python-modules/pyro-ppl/default.nix index 1dc12f6b8750..c1510abd6409 100644 --- a/pkgs/development/python-modules/pyro-ppl/default.nix +++ b/pkgs/development/python-modules/pyro-ppl/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "pyro-ppl"; version = "1.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyro-ppl"; diff --git a/pkgs/development/python-modules/pysbd/default.nix b/pkgs/development/python-modules/pysbd/default.nix index 1f6509265b26..a311889ac9e6 100644 --- a/pkgs/development/python-modules/pysbd/default.nix +++ b/pkgs/development/python-modules/pysbd/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.4"; pyproject = true; - __structuredAttrs = true; - # provides no sdist on pypi src = fetchFromGitHub { owner = "nipunsadvilkar"; diff --git a/pkgs/development/python-modules/pyscf/default.nix b/pkgs/development/python-modules/pyscf/default.nix index 9b519d73b13d..c7d6141f311d 100644 --- a/pkgs/development/python-modules/pyscf/default.nix +++ b/pkgs/development/python-modules/pyscf/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "pyscf"; version = "2.14.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyscf"; diff --git a/pkgs/development/python-modules/pyscss/default.nix b/pkgs/development/python-modules/pyscss/default.nix index 278aa7b1c247..9f95d4ce7456 100644 --- a/pkgs/development/python-modules/pyscss/default.nix +++ b/pkgs/development/python-modules/pyscss/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { repo = "pyScss"; owner = "Kronuz"; diff --git a/pkgs/development/python-modules/pysctp/default.nix b/pkgs/development/python-modules/pysctp/default.nix index 061dfca0202d..bf414a6b72f0 100644 --- a/pkgs/development/python-modules/pysctp/default.nix +++ b/pkgs/development/python-modules/pysctp/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "pysctp"; version = "0.7.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "P1sec"; diff --git a/pkgs/development/python-modules/pysdl2/default.nix b/pkgs/development/python-modules/pysdl2/default.nix index d14b516513e2..eb4a32d1e202 100644 --- a/pkgs/development/python-modules/pysdl2/default.nix +++ b/pkgs/development/python-modules/pysdl2/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "pysdl2"; version = "0.9.17-unstable-2025-11-18"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "py-sdl"; diff --git a/pkgs/development/python-modules/pysensors/default.nix b/pkgs/development/python-modules/pysensors/default.nix index d73385b52845..df3c05aa8805 100644 --- a/pkgs/development/python-modules/pysensors/default.nix +++ b/pkgs/development/python-modules/pysensors/default.nix @@ -26,9 +26,8 @@ buildPythonPackage { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; meta = { diff --git a/pkgs/development/python-modules/pyserial/default.nix b/pkgs/development/python-modules/pyserial/default.nix index 07ae23c2ffac..54efccb5965d 100644 --- a/pkgs/development/python-modules/pyserial/default.nix +++ b/pkgs/development/python-modules/pyserial/default.nix @@ -6,13 +6,14 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyserial"; version = "3.5"; format = "setuptools"; src = fetchPypi { - inherit pname version; + pname = "pyserial"; + inherit (finalAttrs) version; hash = "sha256-PHfgFBcN//vYFub/wgXphC77EL6fWOwW0+hnW0klzds="; }; @@ -25,9 +26,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" ]; pythonImportsCheck = [ "serial" ]; @@ -38,4 +38,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ makefu ]; }; -} +}) diff --git a/pkgs/development/python-modules/pyshacl/default.nix b/pkgs/development/python-modules/pyshacl/default.nix index 5ef63fcb6717..b3496f4ed0c7 100644 --- a/pkgs/development/python-modules/pyshacl/default.nix +++ b/pkgs/development/python-modules/pyshacl/default.nix @@ -24,8 +24,6 @@ buildPythonPackage (finalAttrs: { version = "0.40.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "rdflib"; repo = "pyshacl"; diff --git a/pkgs/development/python-modules/pysptk/default.nix b/pkgs/development/python-modules/pysptk/default.nix index 0fe0152f8b8e..a982057e6f43 100644 --- a/pkgs/development/python-modules/pysptk/default.nix +++ b/pkgs/development/python-modules/pysptk/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "pysptk"; diff --git a/pkgs/development/python-modules/pysquashfsimage/default.nix b/pkgs/development/python-modules/pysquashfsimage/default.nix index 4d21ba06a6fb..52ff20e09ab8 100644 --- a/pkgs/development/python-modules/pysquashfsimage/default.nix +++ b/pkgs/development/python-modules/pysquashfsimage/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "pysquashfsimage"; version = "0.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "matteomattei"; diff --git a/pkgs/development/python-modules/pystemmer/default.nix b/pkgs/development/python-modules/pystemmer/default.nix index 9628e6fc3af0..bacebb41627b 100644 --- a/pkgs/development/python-modules/pystemmer/default.nix +++ b/pkgs/development/python-modules/pystemmer/default.nix @@ -57,8 +57,6 @@ buildPythonPackage (finalAttrs: { runHook postCheck ''; - __structuredAttrs = true; - meta = { description = "Snowball stemming algorithms, for information retrieval"; homepage = "https://github.com/snowballstem/pystemmer"; diff --git a/pkgs/development/python-modules/pytak/default.nix b/pkgs/development/python-modules/pytak/default.nix index f3e9739cb46f..13ca91eb19e6 100644 --- a/pkgs/development/python-modules/pytak/default.nix +++ b/pkgs/development/python-modules/pytak/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "pytak"; version = "7.3.10"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snstac"; diff --git a/pkgs/development/python-modules/pytensor/default.nix b/pkgs/development/python-modules/pytensor/default.nix index 986511e26405..29f1d194c8e4 100644 --- a/pkgs/development/python-modules/pytensor/default.nix +++ b/pkgs/development/python-modules/pytensor/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "pytensor"; version = "3.3.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pymc-devs"; diff --git a/pkgs/development/python-modules/pytest-asyncio/default.nix b/pkgs/development/python-modules/pytest-asyncio/default.nix index 9a295b067093..00696aaeb989 100644 --- a/pkgs/development/python-modules/pytest-asyncio/default.nix +++ b/pkgs/development/python-modules/pytest-asyncio/default.nix @@ -1,31 +1,30 @@ { lib, + aioesphomeapi, + bleak, buildPythonPackage, callPackage, fetchFromGitHub, + hypothesis, pythonOlder, pytest, + pytestCheckHook, setuptools-scm, typing-extensions, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pytest-asyncio"; - version = "1.4.0"; # N.B.: when updating, tests bleak and aioesphomeapi tests + version = "1.4.1"; pyproject = true; src = fetchFromGitHub { owner = "pytest-dev"; repo = "pytest-asyncio"; - tag = "v${version}"; - hash = "sha256-MuTLCRHCuD9TwJkMiFIC5Xv5Xz6NL8j4JZpW8BA45SI="; + tag = "v${finalAttrs.version}"; + hash = "sha256-gXBxFf+DcSTufQxSCZmLWdBKOM5ZtL9OEehp05hS5hc="; }; - outputs = [ - "out" - "testout" - ]; - build-system = [ setuptools-scm ]; pythonRelaxDeps = [ "pytest" ]; @@ -36,25 +35,30 @@ buildPythonPackage rec { typing-extensions ]; - postInstall = '' - mkdir $testout - cp -R tests $testout/tests - ''; - doCheck = false; passthru = { # bulk updater uses wrong tag skipBulkUpdate = true; - tests.pytest = callPackage ./tests.nix { }; + tests = { + inherit aioesphomeapi bleak; + pytest = finalAttrs.finalPackage.overrideAttrs { + doInstallCheck = true; + }; + }; }; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; + pythonImportsCheck = [ "pytest_asyncio" ]; meta = { description = "Library for testing asyncio code with pytest"; homepage = "https://github.com/pytest-dev/pytest-asyncio"; - changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/${src.tag}/docs/reference/changelog.rst"; + changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/${finalAttrs.src.tag}/docs/reference/changelog.rst"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/pytest-asyncio/tests.nix b/pkgs/development/python-modules/pytest-asyncio/tests.nix deleted file mode 100644 index 051f710af1a8..000000000000 --- a/pkgs/development/python-modules/pytest-asyncio/tests.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - buildPythonPackage, - flaky, - hypothesis, - pytest-asyncio, - pytest-trio, - pytestCheckHook, -}: - -buildPythonPackage { - pname = "pytest-asyncio-tests"; - inherit (pytest-asyncio) version; - - pyproject = false; - - src = pytest-asyncio.testout; - - dontBuild = true; - dontInstall = true; - - propagatedBuildInputs = [ pytest-asyncio ]; - - nativeCheckInputs = [ - flaky - hypothesis - pytest-trio - pytestCheckHook - ]; -} diff --git a/pkgs/development/python-modules/pytest-forked/default.nix b/pkgs/development/python-modules/pytest-forked/default.nix index 26c4123b0d74..aee511db335e 100644 --- a/pkgs/development/python-modules/pytest-forked/default.nix +++ b/pkgs/development/python-modules/pytest-forked/default.nix @@ -1,8 +1,6 @@ { lib, - stdenv, buildPythonPackage, - pythonAtLeast, fetchFromGitHub, setuptools, setuptools-scm, diff --git a/pkgs/development/python-modules/pytest-md-report/default.nix b/pkgs/development/python-modules/pytest-md-report/default.nix index 676b41729691..13f86b1be6a9 100644 --- a/pkgs/development/python-modules/pytest-md-report/default.nix +++ b/pkgs/development/python-modules/pytest-md-report/default.nix @@ -22,6 +22,8 @@ buildPythonPackage rec { hash = "sha256-yOO38fkaDo59G5RuGyJPTzkYfaDfL4EnMTYaQ2oX9HI="; }; + pythonRelaxDeps = [ "typepy" ]; + build-system = [ setuptools setuptools-scm diff --git a/pkgs/development/python-modules/pytest-mock/default.nix b/pkgs/development/python-modules/pytest-mock/default.nix index f6a89f265a05..afc305b69e14 100644 --- a/pkgs/development/python-modules/pytest-mock/default.nix +++ b/pkgs/development/python-modules/pytest-mock/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - fetchpatch, pytest, pytest-asyncio, pytestCheckHook, @@ -10,26 +9,18 @@ setuptools-scm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pytest-mock"; - version = "3.15.1"; + version = "3.17.0"; pyproject = true; src = fetchFromGitHub { owner = "pytest-dev"; repo = "pytest-mock"; - tag = "v${version}"; - hash = "sha256-9h5/cssWs4F0LKnFLjWDsEjB2AYczLvnSjiUdsaEcBQ="; + tag = "v${finalAttrs.version}"; + hash = "sha256-scJGIydFhvg9R6BPjlWkrpAaYvSuQMj7yQm3gwvRGCQ="; }; - patches = [ - (fetchpatch { - name = "pytest-9.1-compat.patch"; - url = "https://github.com/pytest-dev/pytest-mock/commit/1d42981a1577207db5919852f30ef08c97208496.patch"; - hash = "sha256-9/vQi/VvZRrIUSq1e90MvLB0idkc+tT4R6q1Ut4HKnY="; - }) - ]; - build-system = [ setuptools setuptools-scm @@ -47,8 +38,8 @@ buildPythonPackage rec { meta = { description = "Thin wrapper around the mock package for easier use with pytest"; homepage = "https://github.com/pytest-dev/pytest-mock"; - changelog = "https://github.com/pytest-dev/pytest-mock/blob/${src.tag}/CHANGELOG.rst"; + changelog = "https://github.com/pytest-dev/pytest-mock/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/pytest-socket/default.nix b/pkgs/development/python-modules/pytest-socket/default.nix index fe727aaecadf..ab7f937c1f09 100644 --- a/pkgs/development/python-modules/pytest-socket/default.nix +++ b/pkgs/development/python-modules/pytest-socket/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, uv-build, pytest, }: @@ -18,6 +19,15 @@ buildPythonPackage rec { hash = "sha256-Z8aCucbYR6kIgrtZlITPjElwBiIW7DhAk5oTnuiEwWQ="; }; + patches = [ + # allow uv-build 0.13 + (fetchpatch { + url = "https://github.com/miketheman/pytest-socket/commit/e3ed717f36fe4794adc50712873e7c33fd43a581.patch"; + hash = "sha256-MVuXAUscU/e4FdASdITN6HH2yTacBingUrfi2vvO1yQ="; + excludes = [ ".github/workflows/codspeed.yml" ]; + }) + ]; + nativeBuildInputs = [ uv-build ]; buildInputs = [ pytest ]; diff --git a/pkgs/development/python-modules/pytest-subtests/default.nix b/pkgs/development/python-modules/pytest-subtests/default.nix index d4b98e40e5c3..8275b31fde11 100644 --- a/pkgs/development/python-modules/pytest-subtests/default.nix +++ b/pkgs/development/python-modules/pytest-subtests/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "pytest-subtests"; version = "0.15.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pytest-dev"; diff --git a/pkgs/development/python-modules/python-crontab/default.nix b/pkgs/development/python-modules/python-crontab/default.nix index 162d6a544454..38f74187f959 100644 --- a/pkgs/development/python-modules/python-crontab/default.nix +++ b/pkgs/development/python-modules/python-crontab/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "3.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitLab { owner = "doctormo"; repo = "python-crontab"; diff --git a/pkgs/development/python-modules/python-decouple/default.nix b/pkgs/development/python-modules/python-decouple/default.nix index fa3b6bc65ab4..21181cb06074 100644 --- a/pkgs/development/python-modules/python-decouple/default.nix +++ b/pkgs/development/python-modules/python-decouple/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "3.8"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "HBNetwork"; repo = "python-decouple"; diff --git a/pkgs/development/python-modules/python-discovery/default.nix b/pkgs/development/python-modules/python-discovery/default.nix index 90785cba3442..9bce847361d6 100644 --- a/pkgs/development/python-modules/python-discovery/default.nix +++ b/pkgs/development/python-modules/python-discovery/default.nix @@ -14,19 +14,19 @@ # tests pytest-mock, pytestCheckHook, + vermin, }: buildPythonPackage (finalAttrs: { pname = "python-discovery"; - version = "1.4.2"; + version = "1.6.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tox-dev"; repo = "python-discovery"; tag = finalAttrs.version; - hash = "sha256-xnQWXXStdgu99riKFW4+O7tqYL4w5f7etjC872q/LWc="; + hash = "sha256-9CHK00PQ1x5L1OntVTSCmq08zFIR9FhHwEI+3jUobL4="; }; build-system = [ @@ -44,6 +44,7 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ pytest-mock pytestCheckHook + vermin ]; meta = { diff --git a/pkgs/development/python-modules/python-dotenv/default.nix b/pkgs/development/python-modules/python-dotenv/default.nix index a61a543cd199..4ea4f1a2abdb 100644 --- a/pkgs/development/python-modules/python-dotenv/default.nix +++ b/pkgs/development/python-modules/python-dotenv/default.nix @@ -1,5 +1,6 @@ { lib, + addBinToPathHook, buildPythonPackage, click, fetchFromGitHub, @@ -9,16 +10,16 @@ sh, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-dotenv"; - version = "1.2.3"; + version = "1.2.4"; pyproject = true; src = fetchFromGitHub { owner = "theskumar"; repo = "python-dotenv"; - tag = "v${version}"; - hash = "sha256-SfLmKAvMRbeNJOwTYiPf4dAXLxXLnwkDIRex4hai0j0="; + tag = "v${finalAttrs.version}"; + hash = "sha256-nwGqNdc34SblZXamtzpZKVUJNbgXlGSnPFfYOsxqMWU="; }; build-system = [ setuptools ]; @@ -26,24 +27,21 @@ buildPythonPackage rec { optional-dependencies.cli = [ click ]; nativeCheckInputs = [ + addBinToPathHook ipython pytestCheckHook sh ] - ++ lib.concatAttrValues optional-dependencies; - - preCheck = '' - export PATH="$out/bin:$PATH" - ''; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; pythonImportsCheck = [ "dotenv" ]; meta = { - changelog = "https://github.com/theskumar/python-dotenv/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/theskumar/python-dotenv/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Add .env support to your django/flask apps in development and deployments"; mainProgram = "dotenv"; homepage = "https://github.com/theskumar/python-dotenv"; license = lib.licenses.bsdOriginal; maintainers = with lib.maintainers; [ erikarvstedt ]; }; -} +}) diff --git a/pkgs/development/python-modules/python-frontmatter/default.nix b/pkgs/development/python-modules/python-frontmatter/default.nix index c43a7d2f1a99..ee7c192ee875 100644 --- a/pkgs/development/python-modules/python-frontmatter/default.nix +++ b/pkgs/development/python-modules/python-frontmatter/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "python-frontmatter"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "eyeseast"; diff --git a/pkgs/development/python-modules/python-hostlist/default.nix b/pkgs/development/python-modules/python-hostlist/default.nix index 3de14c209422..fb9f2973db9a 100644 --- a/pkgs/development/python-modules/python-hostlist/default.nix +++ b/pkgs/development/python-modules/python-hostlist/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "python-hostlist"; version = "2.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchurl { url = "https://www.nsc.liu.se/~kent/python-hostlist/python_hostlist-${finalAttrs.version}.tar.gz"; diff --git a/pkgs/development/python-modules/python-jobspy/default.nix b/pkgs/development/python-modules/python-jobspy/default.nix index eb3d538a6b0b..a0f8ff03e872 100644 --- a/pkgs/development/python-modules/python-jobspy/default.nix +++ b/pkgs/development/python-modules/python-jobspy/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.82"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Bunsly"; repo = "JobSpy"; diff --git a/pkgs/development/python-modules/python-lsp-ruff/default.nix b/pkgs/development/python-modules/python-lsp-ruff/default.nix index 095332098c4f..ebd4e36e6b50 100644 --- a/pkgs/development/python-modules/python-lsp-ruff/default.nix +++ b/pkgs/development/python-modules/python-lsp-ruff/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "python-lsp-ruff"; version = "2.3.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "python-lsp"; diff --git a/pkgs/development/python-modules/python-resize-image/default.nix b/pkgs/development/python-modules/python-resize-image/default.nix index f0e272b7e8d9..09b0b5870979 100644 --- a/pkgs/development/python-modules/python-resize-image/default.nix +++ b/pkgs/development/python-modules/python-resize-image/default.nix @@ -32,8 +32,6 @@ buildPythonPackage (finalAttrs: { doCheck = false; # sdist missing test artifact - __structuredAttrs = true; - meta = { description = "Python package to easily resize images"; homepage = "https://pypi.org/project/python-resize-image"; diff --git a/pkgs/development/python-modules/python-statemachine/default.nix b/pkgs/development/python-modules/python-statemachine/default.nix index ff83985c6761..83e061821ae1 100644 --- a/pkgs/development/python-modules/python-statemachine/default.nix +++ b/pkgs/development/python-modules/python-statemachine/default.nix @@ -21,8 +21,6 @@ buildPythonPackage (finalAttrs: { version = "3.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "python_statemachine"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/python-yate/default.nix b/pkgs/development/python-modules/python-yate/default.nix index 21db94623b36..29b915382cd6 100644 --- a/pkgs/development/python-modules/python-yate/default.nix +++ b/pkgs/development/python-modules/python-yate/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "eventphone"; repo = "python-yate"; diff --git a/pkgs/development/python-modules/python3-otr/default.nix b/pkgs/development/python-modules/python3-otr/default.nix index 576eb3631e47..018d5b6984cf 100644 --- a/pkgs/development/python-modules/python3-otr/default.nix +++ b/pkgs/development/python-modules/python3-otr/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "AGProjects"; repo = "python3-otr"; diff --git a/pkgs/development/python-modules/pytmx/default.nix b/pkgs/development/python-modules/pytmx/default.nix index 691a0f672db7..4d55d4f7fd98 100644 --- a/pkgs/development/python-modules/pytmx/default.nix +++ b/pkgs/development/python-modules/pytmx/default.nix @@ -19,7 +19,6 @@ buildPythonPackage { pname = "pytmx"; version = "3.32"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "bitcraft"; diff --git a/pkgs/development/python-modules/pytokens/default.nix b/pkgs/development/python-modules/pytokens/default.nix index cd0346f06223..9715a8ddaf10 100644 --- a/pkgs/development/python-modules/pytokens/default.nix +++ b/pkgs/development/python-modules/pytokens/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "pytokens"; version = "0.4.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tusharsadhwani"; diff --git a/pkgs/development/python-modules/pytorch-bench/default.nix b/pkgs/development/python-modules/pytorch-bench/default.nix index 6748a0e1f3f0..5a9ade60924b 100644 --- a/pkgs/development/python-modules/pytorch-bench/default.nix +++ b/pkgs/development/python-modules/pytorch-bench/default.nix @@ -24,7 +24,6 @@ buildPythonPackage { pname = "pytorch-bench"; version = "0-unstable-2025-05-05"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "MaximeGloesener"; diff --git a/pkgs/development/python-modules/pytorch-lightning/default.nix b/pkgs/development/python-modules/pytorch-lightning/default.nix index c7f041c76662..e865765435b7 100644 --- a/pkgs/development/python-modules/pytorch-lightning/default.nix +++ b/pkgs/development/python-modules/pytorch-lightning/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "pytorch-lightning"; version = "2.6.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Lightning-AI"; diff --git a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix index 08c6680a1300..f0c5095ac67f 100644 --- a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix +++ b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "pytorch-pfn-extras"; version = "0.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pfnet"; diff --git a/pkgs/development/python-modules/pytorch-tokenizers/default.nix b/pkgs/development/python-modules/pytorch-tokenizers/default.nix index 0ef52c0333ad..aac4b63bbea2 100644 --- a/pkgs/development/python-modules/pytorch-tokenizers/default.nix +++ b/pkgs/development/python-modules/pytorch-tokenizers/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "pytorch-tokenizers"; version = "1.5.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; diff --git a/pkgs/development/python-modules/pytorchviz/default.nix b/pkgs/development/python-modules/pytorchviz/default.nix index a4bad9b38c43..6151c922f8d8 100644 --- a/pkgs/development/python-modules/pytorchviz/default.nix +++ b/pkgs/development/python-modules/pytorchviz/default.nix @@ -33,7 +33,7 @@ buildPythonPackage { fsspec ]; - unittestFlagsArray = [ "test/" ]; + unittestFlags = [ "--start-directory=test" ]; pythonImportsCheck = [ "torchviz" ]; diff --git a/pkgs/development/python-modules/pytweening/default.nix b/pkgs/development/python-modules/pytweening/default.nix index b8da44f4838e..9b5059a5b9c5 100644 --- a/pkgs/development/python-modules/pytweening/default.nix +++ b/pkgs/development/python-modules/pytweening/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { pname = "pytweening"; version = "1.2.0"; - __structuredAttrs = true; pyproject = true; src = fetchPypi { diff --git a/pkgs/development/python-modules/pytz/default.nix b/pkgs/development/python-modules/pytz/default.nix index 3e7ff7322381..8be2558b5c48 100644 --- a/pkgs/development/python-modules/pytz/default.nix +++ b/pkgs/development/python-modules/pytz/default.nix @@ -7,14 +7,15 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pytz"; - version = "2026.3.post1"; + version = "2026.5"; pyproject = true; src = fetchPypi { - inherit pname version; - hash = "sha256-IhHT/Pmnl9NAXKyWrH9h2A5qZE9yozCWBygv6KIBDF0="; + pname = "pytz"; + inherit (finalAttrs) version; + hash = "sha256-+iNyS5xIZUO5/1SjJ+51aayDreVLua/Q/BhnZiBAHIY="; }; postPatch = '' @@ -27,9 +28,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "pytz/tests" + unittestFlags = [ + "--start-directory=pytz/tests" ]; pythonImportsCheck = [ "pytz" ]; @@ -44,4 +44,4 @@ buildPythonPackage rec { jherland ]; }; -} +}) diff --git a/pkgs/development/python-modules/pyworld/default.nix b/pkgs/development/python-modules/pyworld/default.nix index 410fd4443b6e..9064e87c763b 100644 --- a/pkgs/development/python-modules/pyworld/default.nix +++ b/pkgs/development/python-modules/pyworld/default.nix @@ -30,8 +30,6 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "pyworld" ]; - __structuredAttrs = true; - meta = { description = "PyWorld is a Python wrapper for WORLD vocoder"; homepage = "https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder"; diff --git a/pkgs/development/python-modules/pyzhuyin/default.nix b/pkgs/development/python-modules/pyzhuyin/default.nix index 522d9595c434..b50dbaf598cb 100644 --- a/pkgs/development/python-modules/pyzhuyin/default.nix +++ b/pkgs/development/python-modules/pyzhuyin/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "pyzhuyin"; version = "0.0.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "rku1999"; diff --git a/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix b/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix index b33408231eef..3ff6717a6b6d 100644 --- a/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix +++ b/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "qcodes-contrib-drivers"; version = "0.25.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "QCoDeS"; diff --git a/pkgs/development/python-modules/qgrid/default.nix b/pkgs/development/python-modules/qgrid/default.nix index 52cac127bb4d..c7bc4263563d 100644 --- a/pkgs/development/python-modules/qgrid/default.nix +++ b/pkgs/development/python-modules/qgrid/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "qgrid"; version = "1.3.1"; pyproject = true; - __structuredAttrs = true; # Using the Pypi archive to avoid building the node modules from source src = fetchPypi { diff --git a/pkgs/development/python-modules/qh3/default.nix b/pkgs/development/python-modules/qh3/default.nix index a96d04da4cca..ae94d4929dec 100644 --- a/pkgs/development/python-modules/qh3/default.nix +++ b/pkgs/development/python-modules/qh3/default.nix @@ -1,10 +1,12 @@ { + aws-lc, buildPythonPackage, cmake, cryptography, dnspython, fetchFromGitHub, lib, + pkg-config, pytest-asyncio, pytest-mock, pytestCheckHook, @@ -31,6 +33,7 @@ buildPythonPackage (finalAttrs: { nativeBuildInputs = [ cmake + pkg-config rustPlatform.bindgenHook rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook @@ -38,6 +41,10 @@ buildPythonPackage (finalAttrs: { dontUseCmakeConfigure = true; + buildInputs = [ + aws-lc + ]; + env.NIX_CFLAGS_COMPILE = toString ( lib.optionals stdenv.cc.isGNU [ "-Wno-error=stringop-overflow" diff --git a/pkgs/development/python-modules/qpsolvers/default.nix b/pkgs/development/python-modules/qpsolvers/default.nix index d125f6c50ac2..7eb4ad025e03 100644 --- a/pkgs/development/python-modules/qpsolvers/default.nix +++ b/pkgs/development/python-modules/qpsolvers/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "qpsolvers"; version = "4.13.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "qpsolvers"; diff --git a/pkgs/development/python-modules/qrcode/default.nix b/pkgs/development/python-modules/qrcode/default.nix index a38800caba5f..d90e581c6568 100644 --- a/pkgs/development/python-modules/qrcode/default.nix +++ b/pkgs/development/python-modules/qrcode/default.nix @@ -22,8 +22,6 @@ buildPythonPackage (finalAttrs: { version = "8.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "lincolnloop"; repo = "python-qrcode"; diff --git a/pkgs/development/python-modules/quack-kernels/default.nix b/pkgs/development/python-modules/quack-kernels/default.nix index 95cf984598f6..f4475cecece1 100644 --- a/pkgs/development/python-modules/quack-kernels/default.nix +++ b/pkgs/development/python-modules/quack-kernels/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "quack-kernels"; version = "0.6.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Dao-AILab"; diff --git a/pkgs/development/python-modules/quantulum3/default.nix b/pkgs/development/python-modules/quantulum3/default.nix index c463061da140..fb5820fcd7dd 100644 --- a/pkgs/development/python-modules/quantulum3/default.nix +++ b/pkgs/development/python-modules/quantulum3/default.nix @@ -21,12 +21,11 @@ buildPythonPackage { inherit version pname; pyproject = true; - # Pypi source package doesn't contain tests src = fetchFromGitHub { owner = "nielstron"; repo = "quantulum3"; - rev = "9dafd76d3586aa5ea1b96164d86c73037e827294"; - hash = "sha256-fHztPeTbMp1aYsj+STYWzHgwdY0Q9078qXpXxtA8pPs="; + tag = version; + hash = "sha256-gE5JNUkIa+x/ottgXEf1WlieUG9mEcKjl3GSC2fWATY="; }; postPatch = '' @@ -34,7 +33,7 @@ buildPythonPackage { --replace-fail 'VERSION = (0, 9, 0)' 'VERSION = (0, 10, 0)' ''; - propagatedBuildInputs = [ + dependencies = [ inflect num2words numpy diff --git a/pkgs/development/python-modules/qudida/default.nix b/pkgs/development/python-modules/qudida/default.nix index fbb3edc7cdaa..3367f48a6a89 100644 --- a/pkgs/development/python-modules/qudida/default.nix +++ b/pkgs/development/python-modules/qudida/default.nix @@ -5,20 +5,23 @@ numpy, opencv-python, scikit-learn, + setuptools_80, typing-extensions, }: buildPythonPackage rec { pname = "qudida"; version = "0.0.4"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-2xmOKIerDJqgAj5WWvv/Qd+3azYfhf1eE/eA11uhjMg="; }; - propagatedBuildInputs = [ + build-system = [ setuptools_80 ]; + + dependencies = [ numpy opencv-python scikit-learn diff --git a/pkgs/development/python-modules/qutip/default.nix b/pkgs/development/python-modules/qutip/default.nix index ddf33e2642d2..aee19ebcdbec 100644 --- a/pkgs/development/python-modules/qutip/default.nix +++ b/pkgs/development/python-modules/qutip/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "qutip"; version = "5.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "qutip"; diff --git a/pkgs/development/python-modules/radio-beam/default.nix b/pkgs/development/python-modules/radio-beam/default.nix index 4b562dde5be2..8f94136db101 100644 --- a/pkgs/development/python-modules/radio-beam/default.nix +++ b/pkgs/development/python-modules/radio-beam/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "radio-beam"; version = "0.3.10"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "radio-astro-tools"; diff --git a/pkgs/development/python-modules/radixtarget/default.nix b/pkgs/development/python-modules/radixtarget/default.nix index 9ace8b6d41eb..19b7889272be 100644 --- a/pkgs/development/python-modules/radixtarget/default.nix +++ b/pkgs/development/python-modules/radixtarget/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "4.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-uHmznv6XpjmeejmG8lnZKMDxfl9hZES3quFYn89BO3E="; diff --git a/pkgs/development/python-modules/railroad-diagrams/default.nix b/pkgs/development/python-modules/railroad-diagrams/default.nix index 72700efb323b..004452cf11cb 100644 --- a/pkgs/development/python-modules/railroad-diagrams/default.nix +++ b/pkgs/development/python-modules/railroad-diagrams/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-qRMyuskAyzw2czH6m2mfCJe8+GtyZPZUWGdd9DDQTOM="; diff --git a/pkgs/development/python-modules/rapidfuzz/default.nix b/pkgs/development/python-modules/rapidfuzz/default.nix index 4179c6ab3c2a..cb2775dc6395 100644 --- a/pkgs/development/python-modules/rapidfuzz/default.nix +++ b/pkgs/development/python-modules/rapidfuzz/default.nix @@ -56,10 +56,6 @@ buildPythonPackage (finalAttrs: { env.RAPIDFUZZ_BUILD_EXTENSION = 1; - preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB" - ''; - optional-dependencies = { all = [ numpy ]; }; diff --git a/pkgs/development/python-modules/rapidocr/default.nix b/pkgs/development/python-modules/rapidocr/default.nix index b47a23172de9..7cb1686517a7 100644 --- a/pkgs/development/python-modules/rapidocr/default.nix +++ b/pkgs/development/python-modules/rapidocr/default.nix @@ -48,7 +48,6 @@ buildPythonPackage (finalAttrs: { pname = "rapidocr"; inherit version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "RapidAI"; diff --git a/pkgs/development/python-modules/rapidyaml/default.nix b/pkgs/development/python-modules/rapidyaml/default.nix index 1992b336ce7e..bdcdd89ad82d 100644 --- a/pkgs/development/python-modules/rapidyaml/default.nix +++ b/pkgs/development/python-modules/rapidyaml/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "rapidyaml"; version = "0.15.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "biojppm"; diff --git a/pkgs/development/python-modules/rawpy/default.nix b/pkgs/development/python-modules/rawpy/default.nix index ea694eb93ccf..c5ca28874f30 100644 --- a/pkgs/development/python-modules/rawpy/default.nix +++ b/pkgs/development/python-modules/rawpy/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "rawpy"; version = "0.27.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "letmaik"; diff --git a/pkgs/development/python-modules/ray/default.nix b/pkgs/development/python-modules/ray/default.nix index 2cd7eb0c9cc8..961743e4834c 100644 --- a/pkgs/development/python-modules/ray/default.nix +++ b/pkgs/development/python-modules/ray/default.nix @@ -80,7 +80,6 @@ buildPythonPackage (finalAttrs: { pname = "ray"; version = "2.59.0"; format = "wheel"; - __structuredAttrs = true; disabled = pythonAtLeast "3.15"; diff --git a/pkgs/development/python-modules/readlike/default.nix b/pkgs/development/python-modules/readlike/default.nix index d9b18b1ba6c7..0de5a89e99da 100644 --- a/pkgs/development/python-modules/readlike/default.nix +++ b/pkgs/development/python-modules/readlike/default.nix @@ -5,7 +5,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "readlike"; version = "0.1.3"; format = "setuptools"; @@ -13,15 +13,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "jangler"; repo = "readlike"; - rev = version; + tag = finalAttrs.version; hash = "sha256-gWFkKrp9nyhYUSS89MfQJXISnbs8akH+ahgi3RSSiNc="; }; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; meta = { @@ -30,4 +29,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +}) diff --git a/pkgs/development/python-modules/recordlinkage/default.nix b/pkgs/development/python-modules/recordlinkage/default.nix index 2264fcec82f3..c622be709184 100644 --- a/pkgs/development/python-modules/recordlinkage/default.nix +++ b/pkgs/development/python-modules/recordlinkage/default.nix @@ -18,23 +18,27 @@ wheel, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "recordlinkage"; version = "0.16"; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-7NoMEN/xOLFwaBXeMysShfZwrn6MzpJZYhNQHVieaqQ="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm wheel ]; - propagatedBuildInputs = [ + pythonRelaxDeps = [ + "pandas" + ]; + + dependencies = [ pyarrow jellyfish numpy @@ -56,8 +60,8 @@ buildPythonPackage rec { meta = { description = "Library to link records in or between data sources"; homepage = "https://recordlinkage.readthedocs.io/"; - changelog = "https://github.com/J535D165/recordlinkage/releases/tag/v${version}"; + changelog = "https://github.com/J535D165/recordlinkage/releases/tag/v${finalAttrs.version}"; license = lib.licenses.bsd3; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/regex/default.nix b/pkgs/development/python-modules/regex/default.nix index fb00ca1664ba..3b4e61a480f6 100644 --- a/pkgs/development/python-modules/regex/default.nix +++ b/pkgs/development/python-modules/regex/default.nix @@ -8,14 +8,14 @@ buildPythonPackage (finalAttrs: { pname = "regex"; - version = "2026.8.12"; + version = "2026.9.29"; pyproject = true; src = fetchFromGitHub { owner = "mrabarnett"; repo = "mrab-regex"; tag = finalAttrs.version; - hash = "sha256-TOaJBk9W/ZEA+l2i0kzrr6RxlkdFzTIxj+Bu25JBNws="; + hash = "sha256-9WiynNc25LhHzooLEU4AubVFc6fXAJnBjqPIvfk/l44="; }; build-system = [ setuptools ]; @@ -35,6 +35,7 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "regex" ]; meta = { + changelog = "https://github.com/mrabarnett/mrab-regex/blob/${finalAttrs.src.tag}/changelog.txt"; description = "Alternative regular expression module, to replace re"; homepage = "https://github.com/mrabarnett/mrab-regex"; license = [ diff --git a/pkgs/development/python-modules/requests/default.nix b/pkgs/development/python-modules/requests/default.nix index 6f5c636620f1..95ed8e1783ba 100644 --- a/pkgs/development/python-modules/requests/default.nix +++ b/pkgs/development/python-modules/requests/default.nix @@ -64,13 +64,13 @@ buildPythonPackage (finalAttrs: { "TestRequests" "TestTimeout" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Fatal Python error: Aborted "test_basic_response" "test_text_response" ]; - disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ # Fatal Python error: Aborted "tests/test_lowlevel.py" ]; diff --git a/pkgs/development/python-modules/rerun-notebook/default.nix b/pkgs/development/python-modules/rerun-notebook/default.nix index 048c756d9734..903b93ee2d16 100644 --- a/pkgs/development/python-modules/rerun-notebook/default.nix +++ b/pkgs/development/python-modules/rerun-notebook/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "rerun-notebook"; inherit (rerun) version; format = "wheel"; - __structuredAttrs = true; # Building this package from source is very cumbersome (it requires a wasm web-viewer # cross-compile via cargo + an npm/esbuild bundle). Using the upstream wheel for now. diff --git a/pkgs/development/python-modules/rerun-sdk/default.nix b/pkgs/development/python-modules/rerun-sdk/default.nix index 6f1ddc4f2c4b..09cc1185f8b3 100644 --- a/pkgs/development/python-modules/rerun-sdk/default.nix +++ b/pkgs/development/python-modules/rerun-sdk/default.nix @@ -33,7 +33,6 @@ buildPythonPackage { pname = "rerun-sdk"; pyproject = true; - __structuredAttrs = true; inherit (rerun) src diff --git a/pkgs/development/python-modules/resize-image/default.nix b/pkgs/development/python-modules/resize-image/default.nix index eeaac9ca7021..5e8d533780dc 100644 --- a/pkgs/development/python-modules/resize-image/default.nix +++ b/pkgs/development/python-modules/resize-image/default.nix @@ -32,8 +32,6 @@ buildPythonPackage (finalAttrs: { "resize" ]; - __structuredAttrs = true; - meta = { description = "Commandline utility to resize an image"; homepage = "https://github.com/jaymu53/resize-image"; diff --git a/pkgs/development/python-modules/retina-face/default.nix b/pkgs/development/python-modules/retina-face/default.nix index 005ab1ee7864..0b55b575a7a0 100644 --- a/pkgs/development/python-modules/retina-face/default.nix +++ b/pkgs/development/python-modules/retina-face/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "retina-face"; version = "0.0.17"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "serengil"; diff --git a/pkgs/development/python-modules/reusables/default.nix b/pkgs/development/python-modules/reusables/default.nix index c34ef8042cfd..0029f208724c 100644 --- a/pkgs/development/python-modules/reusables/default.nix +++ b/pkgs/development/python-modules/reusables/default.nix @@ -14,8 +14,6 @@ buildPythonPackage rec { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "cdgriffith"; repo = "Reusables"; diff --git a/pkgs/development/python-modules/reuse/default.nix b/pkgs/development/python-modules/reuse/default.nix index 9bd3612b6d43..2a726d609c72 100644 --- a/pkgs/development/python-modules/reuse/default.nix +++ b/pkgs/development/python-modules/reuse/default.nix @@ -75,11 +75,8 @@ buildPythonPackage (finalAttrs: { ]; sphinxBuilders = [ - # HACK: sphinxBuilders is currently broken with __structuredAttrs = true, - # and ignores all but the first array item. for now, pass them as a single - # space-separated entry. fixed on staging-next, but requires a mass-rebuild. - # TODO: revert to [ "html" "man" ] on staging-next. - "html man" + "html" + "man" ]; sphinxRoot = "docs"; diff --git a/pkgs/development/python-modules/rfc3161-client/default.nix b/pkgs/development/python-modules/rfc3161-client/default.nix index f4c5f5251d0e..1ab8b0b58cde 100644 --- a/pkgs/development/python-modules/rfc3161-client/default.nix +++ b/pkgs/development/python-modules/rfc3161-client/default.nix @@ -4,6 +4,8 @@ fetchFromGitHub, perl, cryptography, + openssl, + pkg-config, rustPlatform, pretend, pytestCheckHook, @@ -26,22 +28,22 @@ buildPythonPackage (finalAttrs: { hash = "sha256-YCn/MDSDgrntbFZBJ9eQ5KM74fx7+r0aMdW3jOGJ5+w="; }; - pythonRelaxDeps = [ - "cryptography" - ]; - nativeBuildInputs = [ + pkg-config rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook - perl + ]; + + buildInputs = [ + openssl ]; dependencies = [ cryptography - pretend ]; nativeCheckInputs = [ + pretend pytestCheckHook ]; diff --git a/pkgs/development/python-modules/rich-click/default.nix b/pkgs/development/python-modules/rich-click/default.nix index 28454499bfe8..d80f8905c367 100644 --- a/pkgs/development/python-modules/rich-click/default.nix +++ b/pkgs/development/python-modules/rich-click/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "rich-click"; version = "1.9.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ewels"; diff --git a/pkgs/development/python-modules/rlax/default.nix b/pkgs/development/python-modules/rlax/default.nix index a1c9fe332fe7..26534a560899 100644 --- a/pkgs/development/python-modules/rlax/default.nix +++ b/pkgs/development/python-modules/rlax/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "rlax"; version = "0.1.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google-deepmind"; diff --git a/pkgs/development/python-modules/rns/default.nix b/pkgs/development/python-modules/rns/default.nix index 4635e1b68a37..36055bac462c 100644 --- a/pkgs/development/python-modules/rns/default.nix +++ b/pkgs/development/python-modules/rns/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "rns"; version = "1.5.7"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "rns"; diff --git a/pkgs/development/python-modules/roadlib/default.nix b/pkgs/development/python-modules/roadlib/default.nix index c7a23b4b31e7..dffbe9b51c39 100644 --- a/pkgs/development/python-modules/roadlib/default.nix +++ b/pkgs/development/python-modules/roadlib/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.7.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-al1FnLcKAFWRY43weXtsS8DN5pXCO1qFUw1vwLfZvGM="; diff --git a/pkgs/development/python-modules/roadrecon/default.nix b/pkgs/development/python-modules/roadrecon/default.nix index 404a48ca47de..170f4de079ca 100644 --- a/pkgs/development/python-modules/roadrecon/default.nix +++ b/pkgs/development/python-modules/roadrecon/default.nix @@ -20,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-wzr0J6tGhsZdjTDeIeSzCRTquiw4iZ8FxqFEl1fC2iU="; diff --git a/pkgs/development/python-modules/roadtools/default.nix b/pkgs/development/python-modules/roadtools/default.nix index 30e137620f87..1d3bf6befcb7 100644 --- a/pkgs/development/python-modules/roadtools/default.nix +++ b/pkgs/development/python-modules/roadtools/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-RxRbcT9uhQBYRDqq1asYDIwqrji14zi7dwRuQLXJiyQ="; diff --git a/pkgs/development/python-modules/roadtx/default.nix b/pkgs/development/python-modules/roadtx/default.nix index 253571710596..c236bb4acc2b 100644 --- a/pkgs/development/python-modules/roadtx/default.nix +++ b/pkgs/development/python-modules/roadtx/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "1.22.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-kOsXowM5LM5jX8XW+G8u65P9y2/6ZMIwMFvbAtO/b34="; diff --git a/pkgs/development/python-modules/rq/default.nix b/pkgs/development/python-modules/rq/default.nix index 009862f74a88..6c5badf8b84b 100644 --- a/pkgs/development/python-modules/rq/default.nix +++ b/pkgs/development/python-modules/rq/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "rq"; version = "2.12"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "rq"; @@ -56,8 +55,7 @@ buildPythonPackage (finalAttrs: { __darwinAllowLocalNetworking = true; - # redisTestHook does not work on darwin-x86_64 - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); + doCheck = true; disabledTests = lib.optionals diff --git a/pkgs/development/python-modules/rsl-rl-lib/default.nix b/pkgs/development/python-modules/rsl-rl-lib/default.nix index 50a24882ddaf..432ea857a4e4 100644 --- a/pkgs/development/python-modules/rsl-rl-lib/default.nix +++ b/pkgs/development/python-modules/rsl-rl-lib/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "rsl-rl-lib"; version = "5.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "leggedrobotics"; diff --git a/pkgs/development/python-modules/rtf-tokenize/default.nix b/pkgs/development/python-modules/rtf-tokenize/default.nix index 0f54f2775e6d..3f39d339b159 100644 --- a/pkgs/development/python-modules/rtf-tokenize/default.nix +++ b/pkgs/development/python-modules/rtf-tokenize/default.nix @@ -10,7 +10,6 @@ }: buildPythonPackage (finalAttrs: { - __structuredAttrs = true; pname = "rtf-tokenize"; version = "1.0.1"; diff --git a/pkgs/development/python-modules/rtoml/default.nix b/pkgs/development/python-modules/rtoml/default.nix index 71081a4a3154..fe3dc50c37b8 100644 --- a/pkgs/development/python-modules/rtoml/default.nix +++ b/pkgs/development/python-modules/rtoml/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { pname = "rtoml"; version = "0.13"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "samuelcolvin"; diff --git a/pkgs/development/python-modules/rtp/default.nix b/pkgs/development/python-modules/rtp/default.nix index 20016f3d23e4..ebc0970c679d 100644 --- a/pkgs/development/python-modules/rtp/default.nix +++ b/pkgs/development/python-modules/rtp/default.nix @@ -9,13 +9,14 @@ }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "rtp"; version = "0.0.3"; format = "setuptools"; src = fetchPypi { - inherit pname version; + pname = "rtp"; + inherit (finalAttrs) version; hash = "sha256-I5k3uF5lSLDdCWjBEQC4kl2dWyAKcHEJIYwqnEvJDBI="; }; @@ -24,9 +25,8 @@ buildPythonPackage rec { unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" "-v" ]; @@ -38,4 +38,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fleaz ]; }; -} +}) diff --git a/pkgs/development/python-modules/runs/default.nix b/pkgs/development/python-modules/runs/default.nix index c6f28620150b..29fd8fc52de6 100644 --- a/pkgs/development/python-modules/runs/default.nix +++ b/pkgs/development/python-modules/runs/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "rec"; repo = "runs"; diff --git a/pkgs/development/python-modules/runtype/default.nix b/pkgs/development/python-modules/runtype/default.nix index 981415ce59f9..3960c61537fc 100644 --- a/pkgs/development/python-modules/runtype/default.nix +++ b/pkgs/development/python-modules/runtype/default.nix @@ -8,8 +8,6 @@ buildPythonPackage (finalAttrs: { pname = "runtype"; version = "0.5.3"; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "erezsh"; repo = "runtype"; diff --git a/pkgs/development/python-modules/s3torchconnectorclient/default.nix b/pkgs/development/python-modules/s3torchconnectorclient/default.nix index 2db84b4f68ba..82141fed0d99 100644 --- a/pkgs/development/python-modules/s3torchconnectorclient/default.nix +++ b/pkgs/development/python-modules/s3torchconnectorclient/default.nix @@ -19,7 +19,6 @@ buildPythonPackage rec { pname = "s3torchconnectorclient"; version = "1.5.0"; format = "pyproject"; - __structuredAttrs = true; src = fetchFromGitHub { owner = "awslabs"; diff --git a/pkgs/development/python-modules/safetensors/default.nix b/pkgs/development/python-modules/safetensors/default.nix index 8424c94fbd12..25e18a6fca0f 100644 --- a/pkgs/development/python-modules/safetensors/default.nix +++ b/pkgs/development/python-modules/safetensors/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "safetensors"; version = "0.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; diff --git a/pkgs/development/python-modules/sagemaker-mlflow/default.nix b/pkgs/development/python-modules/sagemaker-mlflow/default.nix index 2e13c49f21d9..8d3b9216804f 100644 --- a/pkgs/development/python-modules/sagemaker-mlflow/default.nix +++ b/pkgs/development/python-modules/sagemaker-mlflow/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "sagemaker-mlflow"; version = "0.5.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "aws"; diff --git a/pkgs/development/python-modules/saiph/default.nix b/pkgs/development/python-modules/saiph/default.nix index cc5ea94069f1..49d70fca042a 100644 --- a/pkgs/development/python-modules/saiph/default.nix +++ b/pkgs/development/python-modules/saiph/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "saiph"; version = "3.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "octopize"; diff --git a/pkgs/development/python-modules/sanic-cors/default.nix b/pkgs/development/python-modules/sanic-cors/default.nix index d70b1c2795da..f904d9310809 100644 --- a/pkgs/development/python-modules/sanic-cors/default.nix +++ b/pkgs/development/python-modules/sanic-cors/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "2.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ashleysommer"; repo = "sanic-cors"; diff --git a/pkgs/development/python-modules/scalecodec/default.nix b/pkgs/development/python-modules/scalecodec/default.nix index 3b7f4cfd15ac..9a515b207653 100644 --- a/pkgs/development/python-modules/scalecodec/default.nix +++ b/pkgs/development/python-modules/scalecodec/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.12"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "JAMdotTech"; repo = "py-scale-codec"; diff --git a/pkgs/development/python-modules/scaleway-core/default.nix b/pkgs/development/python-modules/scaleway-core/default.nix index 5b876590e1f7..fd87b69a0e6e 100644 --- a/pkgs/development/python-modules/scaleway-core/default.nix +++ b/pkgs/development/python-modules/scaleway-core/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "2.12.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "scaleway"; repo = "scaleway-sdk-python"; diff --git a/pkgs/development/python-modules/scaleway/default.nix b/pkgs/development/python-modules/scaleway/default.nix index 2019d185e422..19deb88dbdaa 100644 --- a/pkgs/development/python-modules/scaleway/default.nix +++ b/pkgs/development/python-modules/scaleway/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.12.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "scaleway"; repo = "scaleway-sdk-python"; diff --git a/pkgs/development/python-modules/scanpy/default.nix b/pkgs/development/python-modules/scanpy/default.nix index 5154f52cb554..bfd9b867107f 100644 --- a/pkgs/development/python-modules/scanpy/default.nix +++ b/pkgs/development/python-modules/scanpy/default.nix @@ -66,7 +66,6 @@ buildPythonPackage (finalAttrs: { pname = "scanpy"; version = "1.12.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scverse"; diff --git a/pkgs/development/python-modules/scikit-image/default.nix b/pkgs/development/python-modules/scikit-image/default.nix index fe4bd89a3e08..543775d956a6 100644 --- a/pkgs/development/python-modules/scikit-image/default.nix +++ b/pkgs/development/python-modules/scikit-image/default.nix @@ -127,7 +127,7 @@ let # See https://github.com/scikit-image/scikit-image/issues/7061 and https://github.com/scikit-image/scikit-image/issues/7104 "skimage/measure/tests/test_fit.py" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # https://github.com/scikit-image/scikit-image/issues/7104 "skimage/measure/tests/test_moments.py" ]; diff --git a/pkgs/development/python-modules/scikit-learn/default.nix b/pkgs/development/python-modules/scikit-learn/default.nix index bd7c5dca1d1b..e7cb14b894f5 100644 --- a/pkgs/development/python-modules/scikit-learn/default.nix +++ b/pkgs/development/python-modules/scikit-learn/default.nix @@ -3,7 +3,6 @@ lib, buildPythonPackage, fetchPypi, - fetchpatch, # build-system cython, @@ -25,25 +24,15 @@ buildPythonPackage (finalAttrs: { pname = "scikit-learn"; - version = "1.9.0"; + version = "1.9.1"; pyproject = true; src = fetchPypi { pname = "scikit_learn"; inherit (finalAttrs) version; - hash = "sha256-iDMmaYnTpREBeKn64weDZ1Rgck0OHvsTsUkB0sZgxVc="; + hash = "sha256-Ypyto+M+K5vzds3HYUpHpBQLiu3B2DZXnjWXNvvYKXc="; }; - patches = [ - # Fix HTML display performance when user has many features - # https://github.com/scikit-learn/scikit-learn/pull/34362 - # TODO: remove when updating to the next release. - (fetchpatch { - url = "https://github.com/scikit-learn/scikit-learn/commit/aeadb51af96556dd0f884c0037c9dc9993449538.patch"; - hash = "sha256-J7igLpK8pdcbgMwxFqaAGDEwm87VrLHb+ckg/pEh6IY="; - }) - ]; - pythonRelaxDeps = [ "numpy" "scipy" @@ -54,10 +43,10 @@ buildPythonPackage (finalAttrs: { "run_command('sklearn/_build_utils/version.py', check: true).stdout().strip()," \ "'${finalAttrs.version}'," substituteInPlace pyproject.toml \ - --replace-fail "cython>=3.1.2,<3.3.0" cython \ - --replace-fail "meson-python>=0.17.1,<0.20.0" meson-python \ - --replace-fail "numpy>=2,<2.5.0" numpy \ - --replace-fail "scipy>=1.10.0,<1.18.0" scipy + --replace-fail "cython>=3.1.2,<3.2.6" cython \ + --replace-fail "meson-python>=0.17.1,<0.22.0" meson-python \ + --replace-fail "numpy>=2,<2.6.0" numpy \ + --replace-fail "scipy>=1.10.0,<1.19.0" scipy ''; buildInputs = [ @@ -98,12 +87,6 @@ buildPythonPackage (finalAttrs: { # Skip test_feature_importance_regression - does web fetch "test_feature_importance_regression" - # Fail due to new deprecation warnings in scipy - # FIXME: reenable when fixed upstream - "test_logistic_regression_path_convergence_fail" - "test_linalg_warning_with_newton_solver" - "test_newton_cholesky_fallback_to_lbfgs" - # NuSVC memmap tests causes segmentation faults in certain environments # (e.g. Hydra Darwin machines) related to a long-standing joblib issue # (https://github.com/joblib/joblib/issues/563). See also: diff --git a/pkgs/development/python-modules/scikit-survival/default.nix b/pkgs/development/python-modules/scikit-survival/default.nix index e49a81ab3ba8..ff530bfff8d0 100644 --- a/pkgs/development/python-modules/scikit-survival/default.nix +++ b/pkgs/development/python-modules/scikit-survival/default.nix @@ -42,7 +42,7 @@ let # Flaky numerical assertion (AssertionError) "test_baseline_predict" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # floating point mismatch on aarch64 # 27079905.88052468 too far from 27079905.880496684 "test_coxnet" diff --git a/pkgs/development/python-modules/sciline/default.nix b/pkgs/development/python-modules/sciline/default.nix index 22c7c4979909..20f9c44d9536 100644 --- a/pkgs/development/python-modules/sciline/default.nix +++ b/pkgs/development/python-modules/sciline/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "sciline"; version = "26.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scipp"; diff --git a/pkgs/development/python-modules/scippneutron/default.nix b/pkgs/development/python-modules/scippneutron/default.nix index a225cf80ef11..d29009f52e70 100644 --- a/pkgs/development/python-modules/scippneutron/default.nix +++ b/pkgs/development/python-modules/scippneutron/default.nix @@ -40,7 +40,6 @@ buildPythonPackage (finalAttrs: { pname = "scippneutron"; version = "26.7.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scipp"; @@ -92,7 +91,6 @@ buildPythonPackage (finalAttrs: { name = "plopp-test-data"; dontUnpack = true; strictDeps = true; - __structuredAttrs = true; nativeBuildInputs = [ curl ]; diff --git a/pkgs/development/python-modules/scippnexus/default.nix b/pkgs/development/python-modules/scippnexus/default.nix index 449fd04b3490..1713cc48a567 100644 --- a/pkgs/development/python-modules/scippnexus/default.nix +++ b/pkgs/development/python-modules/scippnexus/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "scippnexus"; version = "26.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scipp"; diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index aa3d58c5ddda..96e14b033998 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -67,6 +67,7 @@ buildPythonPackage (finalAttrs: { postPatch = '' substituteInPlace pyproject.toml \ --replace-fail '"pybind11>=2.13.2,<3.1.0",' '"pybind11",' \ + --replace-fail "meson-python>=0.15.0,<0.22.0" "meson-python>=0.15.0" \ --replace-fail "Cython>=3.2.0,<3.3.0" "Cython>=3.2.0" '' + lib.optionalString (stdenv.hostPlatform.isDarwin) '' @@ -116,7 +117,7 @@ buildPythonPackage (finalAttrs: { # see: https://github.com/scipy/scipy/issues/25522 "test_convergence" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # The following tests are broken on aarch64-darwin with newer compilers and library versions. # See https://github.com/scipy/scipy/issues/18308 "test_a_b_neg_int_after_euler_hypergeometric_transformation" @@ -143,7 +144,7 @@ buildPythonPackage (finalAttrs: { "test_support_moments_sample" ]; - doCheck = !(stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin); + doCheck = true; preConfigure = '' # Helps parallelization a bit @@ -180,14 +181,14 @@ buildPythonPackage (finalAttrs: { # # ldr x0, [x0, ___stack_chk_guard];momd # - hardeningDisable = lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [ + hardeningDisable = lib.optionals stdenv.hostPlatform.isDarwin [ "stackprotector" ]; # remove references to dev dependencies postInstall = '' nuke-refs $out/${python.sitePackages}/scipy/__config__.py - rm $out/${python.sitePackages}/scipy/__pycache__/__config__.*.opt-1.pyc + rm $out/${python.sitePackages}/scipy/__pycache__/__config__.*.pyc ''; preCheck = '' diff --git a/pkgs/development/python-modules/scs/default.nix b/pkgs/development/python-modules/scs/default.nix index f12c9d71a435..e52ea5cfa88f 100644 --- a/pkgs/development/python-modules/scs/default.nix +++ b/pkgs/development/python-modules/scs/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "scs"; inherit (pkgs.scs) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "bodono"; diff --git a/pkgs/development/python-modules/scverse-misc/default.nix b/pkgs/development/python-modules/scverse-misc/default.nix index 446e4fd2b6cf..bab1aecfcd65 100644 --- a/pkgs/development/python-modules/scverse-misc/default.nix +++ b/pkgs/development/python-modules/scverse-misc/default.nix @@ -31,7 +31,6 @@ buildPythonPackage (finalAttrs: { pname = "scverse-misc"; version = "0.1.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scverse"; diff --git a/pkgs/development/python-modules/seaborn/default.nix b/pkgs/development/python-modules/seaborn/default.nix index 340774ab71e9..98b1a3e339a3 100644 --- a/pkgs/development/python-modules/seaborn/default.nix +++ b/pkgs/development/python-modules/seaborn/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "seaborn"; version = "0.13.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mwaskom"; diff --git a/pkgs/development/python-modules/selenium-wire-roadtx/default.nix b/pkgs/development/python-modules/selenium-wire-roadtx/default.nix index c1f67db1995a..41bae87a802b 100644 --- a/pkgs/development/python-modules/selenium-wire-roadtx/default.nix +++ b/pkgs/development/python-modules/selenium-wire-roadtx/default.nix @@ -29,8 +29,6 @@ buildPythonPackage (finalAttrs: { version = "5.2.4-unstable-2026-05-20"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "dirkjanm"; repo = "selenium-wire-roadtx"; diff --git a/pkgs/development/python-modules/selfies/default.nix b/pkgs/development/python-modules/selfies/default.nix index 5787ebc79080..e6aecd42b342 100644 --- a/pkgs/development/python-modules/selfies/default.nix +++ b/pkgs/development/python-modules/selfies/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "2.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "the-matter-lab"; repo = "selfies"; diff --git a/pkgs/development/python-modules/semgrep/default.nix b/pkgs/development/python-modules/semgrep/default.nix index c3a07f8ed4c0..2425a3f22432 100644 --- a/pkgs/development/python-modules/semgrep/default.nix +++ b/pkgs/development/python-modules/semgrep/default.nix @@ -60,7 +60,6 @@ buildPythonPackage (finalAttrs: { pname = "semgrep"; inherit (common) version; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "semgrep"; diff --git a/pkgs/development/python-modules/sentence-transformers/default.nix b/pkgs/development/python-modules/sentence-transformers/default.nix index 6bd6fe5cc5b5..efa6c61169c8 100644 --- a/pkgs/development/python-modules/sentence-transformers/default.nix +++ b/pkgs/development/python-modules/sentence-transformers/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "sentence-transformers"; version = "6.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; diff --git a/pkgs/development/python-modules/setproctitle/default.nix b/pkgs/development/python-modules/setproctitle/default.nix index 46daff35a257..e4824f8199ce 100644 --- a/pkgs/development/python-modules/setproctitle/default.nix +++ b/pkgs/development/python-modules/setproctitle/default.nix @@ -8,16 +8,16 @@ stdenv, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "setproctitle"; - version = "1.3.7"; + version = "1.3.8"; pyproject = true; src = fetchFromGitHub { owner = "dvarrazzo"; repo = "py-setproctitle"; - tag = "version-${version}"; - hash = "sha256-dfOdtfOXRAoCQLW307+YMsFIWRv4CupbKUxckev1oUw="; + tag = "version-${finalAttrs.version}"; + hash = "sha256-PGTaK9/Wwd5Lp2tZCVSrnPkfVwWvJIq8rWNQ83OH/eI="; }; build-system = [ setuptools ]; @@ -30,9 +30,6 @@ buildPythonPackage rec { disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ # Setting the process title fails on macOS in the Nix builder environment (regardless of sandboxing) "test_setproctitle_darwin" - # *** multi-threaded process forked ***; crashed on child side of fork pre-exec. fork without exec is unsafe. - "test_fork_segfault" - "test_thread_fork_segfault" ]; pythonImportsCheck = [ "setproctitle" ]; @@ -40,8 +37,8 @@ buildPythonPackage rec { meta = { description = "Allows a process to change its title (as displayed by system tools such as ps and top)"; homepage = "https://github.com/dvarrazzo/py-setproctitle"; - changelog = "https://github.com/dvarrazzo/py-setproctitle/blob/${src.tag}/HISTORY.rst"; + changelog = "https://github.com/dvarrazzo/py-setproctitle/blob/${finalAttrs.src.tag}/HISTORY.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ exi ]; }; -} +}) diff --git a/pkgs/development/python-modules/setuptools-lint/default.nix b/pkgs/development/python-modules/setuptools-lint/default.nix index 1672d68b2333..19d9338e93ff 100644 --- a/pkgs/development/python-modules/setuptools-lint/default.nix +++ b/pkgs/development/python-modules/setuptools-lint/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "setuptools-lint"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/sgmllib3k/default.nix b/pkgs/development/python-modules/sgmllib3k/default.nix index 85f09d561d3d..31baefc1c7f1 100644 --- a/pkgs/development/python-modules/sgmllib3k/default.nix +++ b/pkgs/development/python-modules/sgmllib3k/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-eGj7HIv6dkwaxWPTzzacOB0TJdNhJJM6cm8p/NqoEuk="; diff --git a/pkgs/development/python-modules/shacl2code/default.nix b/pkgs/development/python-modules/shacl2code/default.nix index c393957b98c7..10451ed439d7 100644 --- a/pkgs/development/python-modules/shacl2code/default.nix +++ b/pkgs/development/python-modules/shacl2code/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "shacl2code"; version = "1.3.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "JPEWdev"; diff --git a/pkgs/development/python-modules/shap/default.nix b/pkgs/development/python-modules/shap/default.nix index 8e010ce39a0b..adbb2c5233e5 100644 --- a/pkgs/development/python-modules/shap/default.nix +++ b/pkgs/development/python-modules/shap/default.nix @@ -42,7 +42,6 @@ buildPythonPackage (finalAttrs: { pname = "shap"; version = "0.52.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "slundberg"; diff --git a/pkgs/development/python-modules/shapely/default.nix b/pkgs/development/python-modules/shapely/default.nix index bd44c37972cb..f25b55a6fdd0 100644 --- a/pkgs/development/python-modules/shapely/default.nix +++ b/pkgs/development/python-modules/shapely/default.nix @@ -4,36 +4,45 @@ buildPythonPackage, fetchFromGitHub, pytestCheckHook, + pyprojectVersionPatchHook, + # build deps cython, + meson-python, + pkg-config, + + # runtime deps geos, numpy, oldest-supported-numpy, - setuptools, - wheel, }: buildPythonPackage rec { pname = "shapely"; - version = "2.1.2"; + version = "2.2.0"; pyproject = true; src = fetchFromGitHub { owner = "shapely"; repo = "shapely"; tag = version; - hash = "sha256-tnnOJsAI3v52ngFOIUIkeDuRIu2JlZGuHreVv4W8LeE="; + hash = "sha256-ddBbNAahYK1/+VtCYVqjrhOfRAtZERv7axTHrYlYBfA="; }; nativeBuildInputs = [ - cython - geos # for geos-config - oldest-supported-numpy - setuptools - wheel + pyprojectVersionPatchHook + pkg-config ]; - buildInputs = [ geos ]; + build-system = [ + meson-python + cython + ]; + + buildInputs = [ + oldest-supported-numpy + geos + ]; dependencies = [ numpy ]; @@ -45,7 +54,7 @@ buildPythonPackage rec { cd $out ''; - disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ # FIXME(lf-): these logging tests are broken, which is definitely our # fault. I've tried figuring out the cause and failed. # diff --git a/pkgs/development/python-modules/sharedmem/default.nix b/pkgs/development/python-modules/sharedmem/default.nix index bb32022ec263..183239b9ab58 100644 --- a/pkgs/development/python-modules/sharedmem/default.nix +++ b/pkgs/development/python-modules/sharedmem/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.8"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "rainwoodman"; repo = "sharedmem"; diff --git a/pkgs/development/python-modules/shellescape/default.nix b/pkgs/development/python-modules/shellescape/default.nix index a092ff2ff41a..4b265504dc23 100644 --- a/pkgs/development/python-modules/shellescape/default.nix +++ b/pkgs/development/python-modules/shellescape/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.8.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "chrissimpkins"; repo = "shellescape"; diff --git a/pkgs/development/python-modules/shelljob/default.nix b/pkgs/development/python-modules/shelljob/default.nix index 557f8d0f7a8d..2b30d0256a9b 100644 --- a/pkgs/development/python-modules/shelljob/default.nix +++ b/pkgs/development/python-modules/shelljob/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "shelljob"; version = "0.6.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mortoray"; diff --git a/pkgs/development/python-modules/shodan/default.nix b/pkgs/development/python-modules/shodan/default.nix index 908f9cb25171..4ef60d91874b 100644 --- a/pkgs/development/python-modules/shodan/default.nix +++ b/pkgs/development/python-modules/shodan/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.31.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "shodan"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/should-dsl/default.nix b/pkgs/development/python-modules/should-dsl/default.nix index 97ae7466caa0..e89ca58c1d60 100644 --- a/pkgs/development/python-modules/should-dsl/default.nix +++ b/pkgs/development/python-modules/should-dsl/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "should_dsl"; diff --git a/pkgs/development/python-modules/shutilwhich/default.nix b/pkgs/development/python-modules/shutilwhich/default.nix index aeb7310f57e4..6ab05f95b91d 100644 --- a/pkgs/development/python-modules/shutilwhich/default.nix +++ b/pkgs/development/python-modules/shutilwhich/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "mbr"; repo = "shutilwhich"; diff --git a/pkgs/development/python-modules/sigima/default.nix b/pkgs/development/python-modules/sigima/default.nix index a967ae74198a..ea8d97373642 100644 --- a/pkgs/development/python-modules/sigima/default.nix +++ b/pkgs/development/python-modules/sigima/default.nix @@ -50,7 +50,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; __darwinAllowLocalNetworking = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "DataLab-Platform"; diff --git a/pkgs/development/python-modules/signalslot/default.nix b/pkgs/development/python-modules/signalslot/default.nix index 44d1d5f8a541..87ec05837fa0 100644 --- a/pkgs/development/python-modules/signalslot/default.nix +++ b/pkgs/development/python-modules/signalslot/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "signalslot"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/signedjson/default.nix b/pkgs/development/python-modules/signedjson/default.nix index 065809198240..fa48b24e9190 100644 --- a/pkgs/development/python-modules/signedjson/default.nix +++ b/pkgs/development/python-modules/signedjson/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "signedjson"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/sigstore/default.nix b/pkgs/development/python-modules/sigstore/default.nix index e0c0840e7396..c1bde6218c26 100644 --- a/pkgs/development/python-modules/sigstore/default.nix +++ b/pkgs/development/python-modules/sigstore/default.nix @@ -33,7 +33,6 @@ buildPythonPackage (finalAttrs: { pname = "sigstore"; version = "4.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sigstore"; @@ -42,6 +41,11 @@ buildPythonPackage (finalAttrs: { hash = "sha256-YpqkKyhgr8cZ3NxVGVmTkv1Wz+lqkBikHY4N2LVK/UI="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'uv_build>=0.12.0,<0.13.0' uv_build + ''; + build-system = [ uv-build ]; pythonRelaxDeps = [ diff --git a/pkgs/development/python-modules/silabs-ble-ota/default.nix b/pkgs/development/python-modules/silabs-ble-ota/default.nix index 2a79e36a76e9..7067ed933087 100644 --- a/pkgs/development/python-modules/silabs-ble-ota/default.nix +++ b/pkgs/development/python-modules/silabs-ble-ota/default.nix @@ -41,8 +41,6 @@ buildPythonPackage (finalAttrs: { "silabs_ble_ota" ]; - __structuredAttrs = true; - meta = { description = "Flash firmware to Silicon Labs EFR32 devices over BLE"; homepage = "https://github.com/OpenDisplay/silabs-ble-ota"; diff --git a/pkgs/development/python-modules/simanneal/default.nix b/pkgs/development/python-modules/simanneal/default.nix index 2cdbf44c10d5..ea263ddfe083 100644 --- a/pkgs/development/python-modules/simanneal/default.nix +++ b/pkgs/development/python-modules/simanneal/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "perrygeo"; repo = "simanneal"; diff --git a/pkgs/development/python-modules/simber/default.nix b/pkgs/development/python-modules/simber/default.nix index ce93635e115e..873930d4d2d0 100644 --- a/pkgs/development/python-modules/simber/default.nix +++ b/pkgs/development/python-modules/simber/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.6"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "deepjyoti30"; repo = "simber"; diff --git a/pkgs/development/python-modules/simple-di/default.nix b/pkgs/development/python-modules/simple-di/default.nix index 0b74fbd785c2..cf4bbcc7f4f7 100644 --- a/pkgs/development/python-modules/simple-di/default.nix +++ b/pkgs/development/python-modules/simple-di/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "simple_di"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/simple-parsing/default.nix b/pkgs/development/python-modules/simple-parsing/default.nix index 79057050a5cc..7ef6d19822ff 100644 --- a/pkgs/development/python-modules/simple-parsing/default.nix +++ b/pkgs/development/python-modules/simple-parsing/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "simple-parsing"; version = "0.1.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lebrice"; diff --git a/pkgs/development/python-modules/simplefix/default.nix b/pkgs/development/python-modules/simplefix/default.nix index 18dfe1329d3a..ca0e27f7ceaf 100644 --- a/pkgs/development/python-modules/simplefix/default.nix +++ b/pkgs/development/python-modules/simplefix/default.nix @@ -5,7 +5,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "simplefix"; version = "1.0.17"; format = "setuptools"; @@ -13,7 +13,7 @@ buildPythonPackage rec { src = fetchFromGitHub { repo = "simplefix"; owner = "da4089"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-D85JW3JRQ1xErw6krMbAg94WYjPi76Xqjv/MGNMY5ZU="; }; @@ -21,15 +21,14 @@ buildPythonPackage rec { pythonImportsCheck = [ "simplefix" ]; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" ]; meta = { description = "Simple FIX Protocol implementation for Python"; homepage = "https://github.com/da4089/simplefix"; - changelog = "https://github.com/da4089/simplefix/releases/tag/v${version}"; + changelog = "https://github.com/da4089/simplefix/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; }; -} +}) diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix index beedae84943c..d1c02a918276 100644 --- a/pkgs/development/python-modules/sip/default.nix +++ b/pkgs/development/python-modules/sip/default.nix @@ -34,6 +34,8 @@ buildPythonPackage (finalAttrs: { ]; patches = [ + ./deterministic-wheel-order.patch + # Backports pyqt5 compile failure fix from upstream # https://github.com/Python-SIP/sip/issues/114 (fetchpatch { diff --git a/pkgs/development/python-modules/sip/deterministic-wheel-order.patch b/pkgs/development/python-modules/sip/deterministic-wheel-order.patch new file mode 100644 index 000000000000..73b98ff5f621 --- /dev/null +++ b/pkgs/development/python-modules/sip/deterministic-wheel-order.patch @@ -0,0 +1,12 @@ +diff --git a/sipbuild/builder.py b/sipbuild/builder.py +--- a/sipbuild/builder.py ++++ b/sipbuild/builder.py +@@ -200,5 +200,6 @@ class Builder(AbstractBuilder): + with ZipFile(wheel_path, 'w') as zf: +- for dirpath, _, filenames in os.walk('.'): +- for filename in filenames: ++ for dirpath, dirnames, filenames in os.walk('.'): ++ dirnames.sort() ++ for filename in sorted(filenames): + # This will result in a name with no leading '.'. + name = os.path.relpath(os.path.join(dirpath, filename)) diff --git a/pkgs/development/python-modules/skggm/default.nix b/pkgs/development/python-modules/skggm/default.nix index 92f413566514..33d9cea2379e 100644 --- a/pkgs/development/python-modules/skggm/default.nix +++ b/pkgs/development/python-modules/skggm/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { # to package: version = "0.2.8-unstable-2025-06-14"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "skggm"; diff --git a/pkgs/development/python-modules/skl2onnx/default.nix b/pkgs/development/python-modules/skl2onnx/default.nix index 6b37430426f9..6bf63d4c5e86 100644 --- a/pkgs/development/python-modules/skl2onnx/default.nix +++ b/pkgs/development/python-modules/skl2onnx/default.nix @@ -43,9 +43,8 @@ buildPythonPackage (finalAttrs: { unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; # Core dump diff --git a/pkgs/development/python-modules/skops/default.nix b/pkgs/development/python-modules/skops/default.nix index 7ea4ebe1fe43..aba24b8428f7 100644 --- a/pkgs/development/python-modules/skops/default.nix +++ b/pkgs/development/python-modules/skops/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "skops"; version = "0.15"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "skops-dev"; diff --git a/pkgs/development/python-modules/skorch/default.nix b/pkgs/development/python-modules/skorch/default.nix index 82e9d14614f7..a1909fbf4c10 100644 --- a/pkgs/development/python-modules/skorch/default.nix +++ b/pkgs/development/python-modules/skorch/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "skorch"; version = "1.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "skorch-dev"; diff --git a/pkgs/development/python-modules/skrl/default.nix b/pkgs/development/python-modules/skrl/default.nix index 3d3e846480c7..c52b5f43f340 100644 --- a/pkgs/development/python-modules/skrl/default.nix +++ b/pkgs/development/python-modules/skrl/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "skrl"; version = "2.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Toni-SM"; diff --git a/pkgs/development/python-modules/slicer/default.nix b/pkgs/development/python-modules/slicer/default.nix index fd551e1cb1e6..215a07a2dfc7 100644 --- a/pkgs/development/python-modules/slicer/default.nix +++ b/pkgs/development/python-modules/slicer/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "slicer"; version = "0.0.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "interpretml"; diff --git a/pkgs/development/python-modules/smartthings-local/default.nix b/pkgs/development/python-modules/smartthings-local/default.nix index d5a19c574a46..652226d7d116 100644 --- a/pkgs/development/python-modules/smartthings-local/default.nix +++ b/pkgs/development/python-modules/smartthings-local/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "smartthings-local"; version = "0.1.24"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "QuiteYellow"; diff --git a/pkgs/development/python-modules/smg-grpc-proto/default.nix b/pkgs/development/python-modules/smg-grpc-proto/default.nix index 61a738fccd61..4e98e64c01f4 100644 --- a/pkgs/development/python-modules/smg-grpc-proto/default.nix +++ b/pkgs/development/python-modules/smg-grpc-proto/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "smg-grpc-proto"; version = "0.4.14"; pyproject = true; - __structuredAttrs = true; # No tags on GitHub src = fetchPypi { diff --git a/pkgs/development/python-modules/smg-grpc-servicer/default.nix b/pkgs/development/python-modules/smg-grpc-servicer/default.nix index 0727201f056a..83f1d6b3f102 100644 --- a/pkgs/development/python-modules/smg-grpc-servicer/default.nix +++ b/pkgs/development/python-modules/smg-grpc-servicer/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "smg-grpc-servicer"; version = "0.5.6"; pyproject = true; - __structuredAttrs = true; # No tags on GitHub src = fetchPypi { diff --git a/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix b/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix index 660b4db7bfac..0328f30ab772 100644 --- a/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix +++ b/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-executor-plugin-cluster-generic"; version = "1.0.9"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-interface-common/default.nix b/pkgs/development/python-modules/snakemake-interface-common/default.nix index 6d75761241a1..0afe85708195 100644 --- a/pkgs/development/python-modules/snakemake-interface-common/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-common/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-interface-common"; version = "1.23.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix index 57d6ab72f582..33257126c2c0 100644 --- a/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-interface-executor-plugins"; version = "9.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-interface-logger-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-logger-plugins/default.nix index e4a115ea5c19..fdd4f25a7ace 100644 --- a/pkgs/development/python-modules/snakemake-interface-logger-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-logger-plugins/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-interface-logger-plugins"; version = "2.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix index d4400ce99643..547a7a803e20 100644 --- a/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-interface-report-plugins"; version = "1.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-interface-scheduler-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-scheduler-plugins/default.nix index 6ccfe7862249..7d0b3d867783 100644 --- a/pkgs/development/python-modules/snakemake-interface-scheduler-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-scheduler-plugins/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-interface-scheduler-plugins"; version = "2.0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix index 51eecb1406c0..5817d0dd6f1f 100644 --- a/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-interface-storage-plugins"; version = "4.4.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-logger-plugin-rich/default.nix b/pkgs/development/python-modules/snakemake-logger-plugin-rich/default.nix index d0d56fb7e01f..b6d09173d070 100644 --- a/pkgs/development/python-modules/snakemake-logger-plugin-rich/default.nix +++ b/pkgs/development/python-modules/snakemake-logger-plugin-rich/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-logger-plugin-rich"; version = "0.5.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "cademirch"; diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-fs/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-fs/default.nix index 766cb526b4e1..61dd199c582d 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-fs/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-fs/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-storage-plugin-fs"; version = "1.1.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-http/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-http/default.nix index d39d01e59b72..72f152740ce7 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-http/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-http/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-storage-plugin-http"; version = "0.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix index d757a619609a..c226b7002e24 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-storage-plugin-s3"; version = "0.3.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix index 37fa04bf8952..a65b4ffe8993 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "snakemake-storage-plugin-xrootd"; version = "1.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; diff --git a/pkgs/development/python-modules/snowballstemmer/default.nix b/pkgs/development/python-modules/snowballstemmer/default.nix index 49658aef35cb..c79db143011d 100644 --- a/pkgs/development/python-modules/snowballstemmer/default.nix +++ b/pkgs/development/python-modules/snowballstemmer/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-4Hu8VKDXmP5gEKEjmEIuYqi/u6lcOU/QlW71jLTT4mA="; diff --git a/pkgs/development/python-modules/social-auth-app-django/default.nix b/pkgs/development/python-modules/social-auth-app-django/default.nix index e9143c991a24..cada6dfa304e 100644 --- a/pkgs/development/python-modules/social-auth-app-django/default.nix +++ b/pkgs/development/python-modules/social-auth-app-django/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "social-auth-app-django"; version = "6.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "python-social-auth"; diff --git a/pkgs/development/python-modules/social-auth-core/default.nix b/pkgs/development/python-modules/social-auth-core/default.nix index 804a06f81b9f..cc70d09782ad 100644 --- a/pkgs/development/python-modules/social-auth-core/default.nix +++ b/pkgs/development/python-modules/social-auth-core/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "social-auth-core"; version = "5.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "python-social-auth"; diff --git a/pkgs/development/python-modules/sourmash/default.nix b/pkgs/development/python-modules/sourmash/default.nix index e046eff43734..562f75989cce 100644 --- a/pkgs/development/python-modules/sourmash/default.nix +++ b/pkgs/development/python-modules/sourmash/default.nix @@ -80,7 +80,7 @@ buildPythonPackage rec { # argparse subparser usage prefix changed in 3.14 "test_cmd_3" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # rocksdb segfaults pytest workers "rocksdb" "disk_revindex" diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index 4932ced7f885..1595163384e6 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -51,7 +51,6 @@ buildPythonPackage (finalAttrs: { pname = "spacy"; version = "3.8.19"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "explosion"; diff --git a/pkgs/development/python-modules/spark-parser/default.nix b/pkgs/development/python-modules/spark-parser/default.nix index 4f5ad1dc3de0..19a87b18d08d 100644 --- a/pkgs/development/python-modules/spark-parser/default.nix +++ b/pkgs/development/python-modules/spark-parser/default.nix @@ -6,23 +6,22 @@ click, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "spark-parser"; version = "1.9.0"; format = "setuptools"; src = fetchPypi { pname = "spark_parser"; - inherit version; + inherit (finalAttrs) version; hash = "sha256-3GbUjEJlxBM9tBqcX+nBxQKzsgFn3xWKDyNM0xcSz2Q="; }; propagatedBuildInputs = [ click ]; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" + unittestFlags = [ + "--start-directory=test" "-v" ]; @@ -33,4 +32,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ raskin ]; }; -} +}) diff --git a/pkgs/development/python-modules/sparsediffpy/default.nix b/pkgs/development/python-modules/sparsediffpy/default.nix index 54612427246a..1983f0828fb0 100644 --- a/pkgs/development/python-modules/sparsediffpy/default.nix +++ b/pkgs/development/python-modules/sparsediffpy/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "sparsediffpy"; version = "0.8.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "SparseDifferentiation"; diff --git a/pkgs/development/python-modules/spdx-license-list/default.nix b/pkgs/development/python-modules/spdx-license-list/default.nix index 83880d34b278..0c5e24ccd63c 100644 --- a/pkgs/development/python-modules/spdx-license-list/default.nix +++ b/pkgs/development/python-modules/spdx-license-list/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { pname = "spdx-license-list"; version = "3.29.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "JJMC89"; diff --git a/pkgs/development/python-modules/spdx-python-model/default.nix b/pkgs/development/python-modules/spdx-python-model/default.nix index e58253237175..396beaf26c05 100644 --- a/pkgs/development/python-modules/spdx-python-model/default.nix +++ b/pkgs/development/python-modules/spdx-python-model/default.nix @@ -39,8 +39,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "spdx"; repo = "spdx-python-model"; diff --git a/pkgs/development/python-modules/spdx3-validate/default.nix b/pkgs/development/python-modules/spdx3-validate/default.nix index 0058e0ac58c6..93ab6a1eb5fa 100644 --- a/pkgs/development/python-modules/spdx3-validate/default.nix +++ b/pkgs/development/python-modules/spdx3-validate/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.7"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "JPEWdev"; repo = "spdx3-validate"; diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix index b70bf47d25fc..c4946744771d 100644 --- a/pkgs/development/python-modules/spectral-cube/default.nix +++ b/pkgs/development/python-modules/spectral-cube/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "spectral-cube"; version = "0.7.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "radio-astro-tools"; diff --git a/pkgs/development/python-modules/speechbrain/default.nix b/pkgs/development/python-modules/speechbrain/default.nix index c18e979e544c..38bb3561ad36 100644 --- a/pkgs/development/python-modules/speechbrain/default.nix +++ b/pkgs/development/python-modules/speechbrain/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "speechbrain"; version = "1.1.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "speechbrain"; diff --git a/pkgs/development/python-modules/speechrecognition/default.nix b/pkgs/development/python-modules/speechrecognition/default.nix index 741c5b034ee2..aa6fb8e0a8c7 100644 --- a/pkgs/development/python-modules/speechrecognition/default.nix +++ b/pkgs/development/python-modules/speechrecognition/default.nix @@ -44,7 +44,6 @@ buildPythonPackage (finalAttrs: { pname = "speechrecognition"; version = "3.17.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Uberi"; diff --git a/pkgs/development/python-modules/sphinx-gallery/default.nix b/pkgs/development/python-modules/sphinx-gallery/default.nix index 357ad1e3d6ff..ba6cdb4501b1 100644 --- a/pkgs/development/python-modules/sphinx-gallery/default.nix +++ b/pkgs/development/python-modules/sphinx-gallery/default.nix @@ -42,7 +42,6 @@ buildPythonPackage (finalAttrs: { pname = "sphinx-gallery"; version = "0.21.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sphinx-gallery"; diff --git a/pkgs/development/python-modules/sphinx-llm/default.nix b/pkgs/development/python-modules/sphinx-llm/default.nix index 2a00de00b91c..b63dfa9eea07 100644 --- a/pkgs/development/python-modules/sphinx-llm/default.nix +++ b/pkgs/development/python-modules/sphinx-llm/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "sphinx-llm"; version = "0.4.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/sphinx-llms-txt/default.nix b/pkgs/development/python-modules/sphinx-llms-txt/default.nix index cf7003a9aa3d..11c9ed1270a6 100644 --- a/pkgs/development/python-modules/sphinx-llms-txt/default.nix +++ b/pkgs/development/python-modules/sphinx-llms-txt/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "sphinx-llms-txt"; version = "0.7.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jdillard"; diff --git a/pkgs/development/python-modules/sphinx-testing/default.nix b/pkgs/development/python-modules/sphinx-testing/default.nix index 066436fc21d1..099409df5589 100644 --- a/pkgs/development/python-modules/sphinx-testing/default.nix +++ b/pkgs/development/python-modules/sphinx-testing/default.nix @@ -8,13 +8,14 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "sphinx-testing"; version = "1.0.1"; format = "setuptools"; src = fetchPypi { - inherit pname version; + pname = "sphinx-testing"; + inherit (finalAttrs) version; hash = "sha256-72YXdbVyLXsA9n/CKRBDF9NWN6T7RDS/LABa/fHaTQk="; }; @@ -27,9 +28,8 @@ buildPythonPackage rec { six ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; # Test failures https://github.com/sphinx-doc/sphinx-testing/issues/5 @@ -40,4 +40,4 @@ buildPythonPackage rec { license = lib.licenses.bsd2; description = "Testing utility classes and functions for Sphinx extensions"; }; -} +}) diff --git a/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix index 9cdf52761f59..96e8000b872b 100644 --- a/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix @@ -9,13 +9,14 @@ blockdiag, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "sphinxcontrib-blockdiag"; version = "3.0.0"; format = "setuptools"; src = fetchPypi { - inherit pname version; + pname = "sphinxcontrib-blockdiag"; + inherit (finalAttrs) version; hash = "sha256-qkm/kkUW9d6KR5mUx76B4HffVZnJ2ioIIAPVs4jh1FA="; }; @@ -33,9 +34,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonNamespaces = [ "sphinxcontrib" ]; @@ -46,4 +46,4 @@ buildPythonPackage rec { maintainers = [ ]; license = lib.licenses.bsd2; }; -} +}) diff --git a/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix b/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix index 5ddf2c11466d..c515430a2371 100644 --- a/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256:1q79byn3k3ribvwqafbpixwabjhymk46ns8ym0hxcn8vhf5nljzd"; diff --git a/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix b/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix index 6f7deda12056..84dce4ab51c1 100644 --- a/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-qZJeSkWHJH7SGRoi319pcGVsuMor1ihDCVePIVPgxLg="; diff --git a/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix b/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix index 2d4c3db198e4..824b15997c1b 100644 --- a/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "davidism"; repo = "sphinxcontrib-log-cabinet"; diff --git a/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix b/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix index 8f6e3810fb12..edb844721225 100644 --- a/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-AXfSWRq3CepT/jNOgHxiYT7vkdKZejPu/LeUqxZ8T5A="; diff --git a/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix index bf18dfcc5dbe..3189eb192ae3 100644 --- a/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-bula1DutRv6NwfZRhciZfLHRZmXu42p+qvbeExN/+Fk="; diff --git a/pkgs/development/python-modules/sphinxcontrib-restbuilder/default.nix b/pkgs/development/python-modules/sphinxcontrib-restbuilder/default.nix index 0cc722cdb8c3..d58a641ebc8c 100644 --- a/pkgs/development/python-modules/sphinxcontrib-restbuilder/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-restbuilder/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "sphinxcontrib-restbuilder"; version = "0.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sphinx-contrib"; diff --git a/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix index da1efdb673a0..35b05d5a978c 100644 --- a/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-QH5IeXZz9x2Ujp/6BHFsrB2ZqeyPYW3jdk1C0DNBZXQ="; diff --git a/pkgs/development/python-modules/spinners/default.nix b/pkgs/development/python-modules/spinners/default.nix index 045c427c379e..a84bfaf0fbdf 100644 --- a/pkgs/development/python-modules/spinners/default.nix +++ b/pkgs/development/python-modules/spinners/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.24"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-HrautHgdcqtC7YoB3PIPMAK/UHQNcVTRL7jJdpv54n8="; diff --git a/pkgs/development/python-modules/spmd-types/default.nix b/pkgs/development/python-modules/spmd-types/default.nix index 03a99d494e15..898d16049996 100644 --- a/pkgs/development/python-modules/spmd-types/default.nix +++ b/pkgs/development/python-modules/spmd-types/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "spmd-types"; version = "0.2.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; diff --git a/pkgs/development/python-modules/spotipy/default.nix b/pkgs/development/python-modules/spotipy/default.nix index 2422de716272..415427b4661b 100644 --- a/pkgs/development/python-modules/spotipy/default.nix +++ b/pkgs/development/python-modules/spotipy/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.26.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "spotipy"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/spsdk-mcu-link/default.nix b/pkgs/development/python-modules/spsdk-mcu-link/default.nix index ecba18a9a62e..5071871341d7 100644 --- a/pkgs/development/python-modules/spsdk-mcu-link/default.nix +++ b/pkgs/development/python-modules/spsdk-mcu-link/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "spsdk-mcu-link"; version = "0.6.18"; pyproject = true; - __structuredAttrs = true; # Latest tag missing on GitHub src = fetchPypi { diff --git a/pkgs/development/python-modules/spsdk/default.nix b/pkgs/development/python-modules/spsdk/default.nix index fe9756445baa..a1abe3a2de9e 100644 --- a/pkgs/development/python-modules/spsdk/default.nix +++ b/pkgs/development/python-modules/spsdk/default.nix @@ -54,7 +54,6 @@ buildPythonPackage (finalAttrs: { pname = "spsdk"; version = "3.11.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nxp-mcuxpresso"; diff --git a/pkgs/development/python-modules/sqlalchemy-adapter/default.nix b/pkgs/development/python-modules/sqlalchemy-adapter/default.nix index 0a2cbe6f46ff..5e0a11d874fb 100644 --- a/pkgs/development/python-modules/sqlalchemy-adapter/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-adapter/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "sqlalchemy-adapter"; version = "1.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "officialpycasbin"; diff --git a/pkgs/development/python-modules/sqlalchemy-citext/default.nix b/pkgs/development/python-modules/sqlalchemy-citext/default.nix index c3697ee85c25..cb8d6c2e95ff 100644 --- a/pkgs/development/python-modules/sqlalchemy-citext/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-citext/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.8.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-oXQOaTqaM058j2CucxCD/nXObBYFu5ymZEpvH2OxW3c="; diff --git a/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix b/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix index f19637cd7434..40cab25c159d 100644 --- a/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "penguinolog"; repo = "sqlalchemy_jsonfield"; diff --git a/pkgs/development/python-modules/sqlfmt/default.nix b/pkgs/development/python-modules/sqlfmt/default.nix index b94e5a4ae8c7..4ee4ff121727 100644 --- a/pkgs/development/python-modules/sqlfmt/default.nix +++ b/pkgs/development/python-modules/sqlfmt/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "sqlfmt"; version = "0.32.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tconbeer"; diff --git a/pkgs/development/python-modules/sqlite-fts4/default.nix b/pkgs/development/python-modules/sqlite-fts4/default.nix index 8e12e8327f0f..74e1eb3d958d 100644 --- a/pkgs/development/python-modules/sqlite-fts4/default.nix +++ b/pkgs/development/python-modules/sqlite-fts4/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "simonw"; repo = "sqlite-fts4"; diff --git a/pkgs/development/python-modules/sqlite-migrate/default.nix b/pkgs/development/python-modules/sqlite-migrate/default.nix index fd55f13f6a44..34032db9e32a 100644 --- a/pkgs/development/python-modules/sqlite-migrate/default.nix +++ b/pkgs/development/python-modules/sqlite-migrate/default.nix @@ -12,7 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "sqlite-migrate"; version = "0.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "simonw"; diff --git a/pkgs/development/python-modules/sqlite-utils/default.nix b/pkgs/development/python-modules/sqlite-utils/default.nix index f3643be4223a..2835ce517113 100644 --- a/pkgs/development/python-modules/sqlite-utils/default.nix +++ b/pkgs/development/python-modules/sqlite-utils/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "sqlite-utils"; version = "4.2.1"; pyproject = true; - __structuredAttrs = true; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/sqliteschema/default.nix b/pkgs/development/python-modules/sqliteschema/default.nix index a98456c62332..c83371d07084 100644 --- a/pkgs/development/python-modules/sqliteschema/default.nix +++ b/pkgs/development/python-modules/sqliteschema/default.nix @@ -24,15 +24,13 @@ buildPythonPackage (finalAttrs: { hash = "sha256-ZGDzGfj78v8o0GvAHcP26JiJCOWPaIr2h1Lqzh5AuSg="; }; + pythonRelaxDeps = [ "typepy" ]; + build-system = [ setuptools setuptools-scm ]; - pythonRelaxDeps = [ - "typepy" - ]; - dependencies = [ mbstrdecoder tabledata diff --git a/pkgs/development/python-modules/sqlparams/default.nix b/pkgs/development/python-modules/sqlparams/default.nix index e96b562c4c38..3621b700b3c0 100644 --- a/pkgs/development/python-modules/sqlparams/default.nix +++ b/pkgs/development/python-modules/sqlparams/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "sqlparams"; version = "6.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "cpburnz"; diff --git a/pkgs/development/python-modules/squarify/default.nix b/pkgs/development/python-modules/squarify/default.nix index 4f88a6b6ee37..17c51c58de14 100644 --- a/pkgs/development/python-modules/squarify/default.nix +++ b/pkgs/development/python-modules/squarify/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "laserson"; repo = "squarify"; diff --git a/pkgs/development/python-modules/sre-yield/default.nix b/pkgs/development/python-modules/sre-yield/default.nix index 97ebefa50f1c..c31dd750921a 100644 --- a/pkgs/development/python-modules/sre-yield/default.nix +++ b/pkgs/development/python-modules/sre-yield/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "sre_yield"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/srp/default.nix b/pkgs/development/python-modules/srp/default.nix index c04b81637fc0..02c5828d48d1 100644 --- a/pkgs/development/python-modules/srp/default.nix +++ b/pkgs/development/python-modules/srp/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.22"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-8zDQ7HOH4qyFd0h7FkljFV1KAxvKbiAk8bCTDrkrql0="; diff --git a/pkgs/development/python-modules/srptools/default.nix b/pkgs/development/python-modules/srptools/default.nix index c8d191df2355..bcd2b3c8785c 100644 --- a/pkgs/development/python-modules/srptools/default.nix +++ b/pkgs/development/python-modules/srptools/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "srptools"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/srt/default.nix b/pkgs/development/python-modules/srt/default.nix index 21621924c57b..217239d5de45 100644 --- a/pkgs/development/python-modules/srt/default.nix +++ b/pkgs/development/python-modules/srt/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "3.5.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SIQxUEOk8HQP0fh47WyqN2rAbXDhNfMGptxEYy7tDMA="; diff --git a/pkgs/development/python-modules/srvlookup/default.nix b/pkgs/development/python-modules/srvlookup/default.nix index d02598951bb9..a79ed79c9524 100644 --- a/pkgs/development/python-modules/srvlookup/default.nix +++ b/pkgs/development/python-modules/srvlookup/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "gmr"; repo = "srvlookup"; diff --git a/pkgs/development/python-modules/ssdeep/default.nix b/pkgs/development/python-modules/ssdeep/default.nix index 523292855ea1..cdf9a8fe1b36 100644 --- a/pkgs/development/python-modules/ssdeep/default.nix +++ b/pkgs/development/python-modules/ssdeep/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "3.4.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "DinoTools"; repo = "python-ssdeep"; diff --git a/pkgs/development/python-modules/sseclient/default.nix b/pkgs/development/python-modules/sseclient/default.nix index eda143a35edd..81256650d1a4 100644 --- a/pkgs/development/python-modules/sseclient/default.nix +++ b/pkgs/development/python-modules/sseclient/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.27"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-sv5TTcszsdP6rRPWDFp8cY4o+FmH8qA07PXsJ5kYwRw="; diff --git a/pkgs/development/python-modules/sslib/default.nix b/pkgs/development/python-modules/sslib/default.nix index a38a31a4a2cd..b65251609267 100644 --- a/pkgs/development/python-modules/sslib/default.nix +++ b/pkgs/development/python-modules/sslib/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - disabled = !isPy3k; src = fetchPypi { diff --git a/pkgs/development/python-modules/stable-baselines3/default.nix b/pkgs/development/python-modules/stable-baselines3/default.nix index ebb23c7229bb..134733eff367 100644 --- a/pkgs/development/python-modules/stable-baselines3/default.nix +++ b/pkgs/development/python-modules/stable-baselines3/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "stable-baselines3"; version = "2.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "DLR-RM"; diff --git a/pkgs/development/python-modules/stackit-core/default.nix b/pkgs/development/python-modules/stackit-core/default.nix index 019dbfb79e92..3b24a33a8534 100644 --- a/pkgs/development/python-modules/stackit-core/default.nix +++ b/pkgs/development/python-modules/stackit-core/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "stackit_core"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/stackit-iaas/default.nix b/pkgs/development/python-modules/stackit-iaas/default.nix index f1d21669c0e1..2e283bc7b75e 100644 --- a/pkgs/development/python-modules/stackit-iaas/default.nix +++ b/pkgs/development/python-modules/stackit-iaas/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "stackit_iaas"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/stackit-objectstorage/default.nix b/pkgs/development/python-modules/stackit-objectstorage/default.nix index 07234b029b31..7a4eb380df6b 100644 --- a/pkgs/development/python-modules/stackit-objectstorage/default.nix +++ b/pkgs/development/python-modules/stackit-objectstorage/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "stackit_objectstorage"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/stackit-resourcemanager/default.nix b/pkgs/development/python-modules/stackit-resourcemanager/default.nix index b719941a0ca1..aff0d823c333 100644 --- a/pkgs/development/python-modules/stackit-resourcemanager/default.nix +++ b/pkgs/development/python-modules/stackit-resourcemanager/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.12.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "stackit_resourcemanager"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/stackit-ske/default.nix b/pkgs/development/python-modules/stackit-ske/default.nix index 3e4cf6d287f7..37536862978e 100644 --- a/pkgs/development/python-modules/stackit-ske/default.nix +++ b/pkgs/development/python-modules/stackit-ske/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.14.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "stackit_ske"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/starfile/default.nix b/pkgs/development/python-modules/starfile/default.nix index 97ecdca4f31f..6116ae14078a 100644 --- a/pkgs/development/python-modules/starfile/default.nix +++ b/pkgs/development/python-modules/starfile/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "starfile"; version = "0.5.13"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "teamtomo"; diff --git a/pkgs/development/python-modules/starlark/default.nix b/pkgs/development/python-modules/starlark/default.nix index 3762afeb60a8..408615be0a39 100644 --- a/pkgs/development/python-modules/starlark/default.nix +++ b/pkgs/development/python-modules/starlark/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "starlark"; version = "0.5.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "dbohdan"; diff --git a/pkgs/development/python-modules/stashy/default.nix b/pkgs/development/python-modules/stashy/default.nix index dade72f42edb..457e0569cf46 100644 --- a/pkgs/development/python-modules/stashy/default.nix +++ b/pkgs/development/python-modules/stashy/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-mWWqGFCbdXa71LBoli2amkgozsjOIu5aNl3bzr/6CfU="; diff --git a/pkgs/development/python-modules/static3/default.nix b/pkgs/development/python-modules/static3/default.nix index 1528afbd3930..82da9937586b 100644 --- a/pkgs/development/python-modules/static3/default.nix +++ b/pkgs/development/python-modules/static3/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "0.7.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "rmohr"; repo = "static3"; diff --git a/pkgs/development/python-modules/staticmap/default.nix b/pkgs/development/python-modules/staticmap/default.nix index d9bbb37f25c5..4cd84c676fb3 100644 --- a/pkgs/development/python-modules/staticmap/default.nix +++ b/pkgs/development/python-modules/staticmap/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-x6lrkCumEpLoGMILCBBhnWuBps21C8wauS1QrE2yCn8="; diff --git a/pkgs/development/python-modules/stdiomask/default.nix b/pkgs/development/python-modules/stdiomask/default.nix index 1f66260bf0b5..48f327c6a3fa 100644 --- a/pkgs/development/python-modules/stdiomask/default.nix +++ b/pkgs/development/python-modules/stdiomask/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-weRwaerZ4QvaFQom95IsoB0q3FAwQqnXrPZId6K5o6Y="; diff --git a/pkgs/development/python-modules/steamodd/default.nix b/pkgs/development/python-modules/steamodd/default.nix index 7e09f0cbd233..cad0b604de4f 100644 --- a/pkgs/development/python-modules/steamodd/default.nix +++ b/pkgs/development/python-modules/steamodd/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Lagg"; repo = "steamodd"; diff --git a/pkgs/development/python-modules/strategies/default.nix b/pkgs/development/python-modules/strategies/default.nix index 01eb3c3c9203..ef58e9d4f2fd 100644 --- a/pkgs/development/python-modules/strategies/default.nix +++ b/pkgs/development/python-modules/strategies/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "strategies"; version = "0.2.3"; - __structuredAttrs = true; pyproject = true; # GitHub upstream do not have proper release tags diff --git a/pkgs/development/python-modules/stravaweblib/default.nix b/pkgs/development/python-modules/stravaweblib/default.nix index d25f636741eb..5d303313923b 100644 --- a/pkgs/development/python-modules/stravaweblib/default.nix +++ b/pkgs/development/python-modules/stravaweblib/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.10"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "pR0Ps"; repo = "stravaweblib"; diff --git a/pkgs/development/python-modules/stream-inflate/default.nix b/pkgs/development/python-modules/stream-inflate/default.nix index 15316e5c8d19..aece06bd0d1c 100644 --- a/pkgs/development/python-modules/stream-inflate/default.nix +++ b/pkgs/development/python-modules/stream-inflate/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.43"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "michalc"; repo = "stream-inflate"; diff --git a/pkgs/development/python-modules/stream-unzip/default.nix b/pkgs/development/python-modules/stream-unzip/default.nix index 298313d11d13..212264222aca 100644 --- a/pkgs/development/python-modules/stream-unzip/default.nix +++ b/pkgs/development/python-modules/stream-unzip/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.101"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "uktrade"; repo = "stream-unzip"; diff --git a/pkgs/development/python-modules/streamcontroller-plugin-tools/default.nix b/pkgs/development/python-modules/streamcontroller-plugin-tools/default.nix index 86da21d65021..c482c02a1de0 100644 --- a/pkgs/development/python-modules/streamcontroller-plugin-tools/default.nix +++ b/pkgs/development/python-modules/streamcontroller-plugin-tools/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "StreamController"; repo = "streamcontroller-plugin-tools"; diff --git a/pkgs/development/python-modules/streamdeck/default.nix b/pkgs/development/python-modules/streamdeck/default.nix index 15d5c395f2db..c22b480f1bb0 100644 --- a/pkgs/development/python-modules/streamdeck/default.nix +++ b/pkgs/development/python-modules/streamdeck/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "streamdeck"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/streamingjson/default.nix b/pkgs/development/python-modules/streamingjson/default.nix index 38a6a8b0a38d..0947b69fdbcd 100644 --- a/pkgs/development/python-modules/streamingjson/default.nix +++ b/pkgs/development/python-modules/streamingjson/default.nix @@ -7,7 +7,6 @@ }: buildPythonPackage rec { - __structuredAttrs = true; pname = "streamingjson"; version = "0.0.5"; diff --git a/pkgs/development/python-modules/streamlabswater/default.nix b/pkgs/development/python-modules/streamlabswater/default.nix index 95c9099094cc..39fb72cde998 100644 --- a/pkgs/development/python-modules/streamlabswater/default.nix +++ b/pkgs/development/python-modules/streamlabswater/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-kXG0Wg3PVryMBQ9RMMtEzudMiwVQq7Ikw2OK7JcBojA="; diff --git a/pkgs/development/python-modules/strictyaml/default.nix b/pkgs/development/python-modules/strictyaml/default.nix index 8abbc899bd1e..0a29fff37b0b 100644 --- a/pkgs/development/python-modules/strictyaml/default.nix +++ b/pkgs/development/python-modules/strictyaml/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.7.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-IvhUpfyrQrXduoAwoOS+UcqJrwJnlhyNbPqGOVWGxAc="; diff --git a/pkgs/development/python-modules/stringbrewer/default.nix b/pkgs/development/python-modules/stringbrewer/default.nix index 824444ca1b34..908f0666c750 100644 --- a/pkgs/development/python-modules/stringbrewer/default.nix +++ b/pkgs/development/python-modules/stringbrewer/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-wtETgi+Tk1ALJzzIM6Ic5zkDbALGL0cELg8X75uepkk="; diff --git a/pkgs/development/python-modules/stringcase/default.nix b/pkgs/development/python-modules/stringcase/default.nix index 421ecb0aa17f..eefdf1f8ef27 100644 --- a/pkgs/development/python-modules/stringcase/default.nix +++ b/pkgs/development/python-modules/stringcase/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SKBpgGYZCO/o2dNOqytsE676IWOzztJpcpAuO9/YcAg="; diff --git a/pkgs/development/python-modules/striprtf/default.nix b/pkgs/development/python-modules/striprtf/default.nix index ba5a0d6c99be..7e1a10ecefe0 100644 --- a/pkgs/development/python-modules/striprtf/default.nix +++ b/pkgs/development/python-modules/striprtf/default.nix @@ -15,6 +15,11 @@ buildPythonPackage rec { hash = "sha256-oh6MT3OnkcPyNWHflnAUiMaRqxdJqSSHzJ5f7m6ghFU="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'hatchling>=1.21.0,<1.32' hatchling + ''; + build-system = [ hatchling ]; pythonImportsCheck = [ "striprtf" ]; diff --git a/pkgs/development/python-modules/stubserver/default.nix b/pkgs/development/python-modules/stubserver/default.nix index ad6517ee6edb..cddd0691ec70 100644 --- a/pkgs/development/python-modules/stubserver/default.nix +++ b/pkgs/development/python-modules/stubserver/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-j9R7wpvb07FuN5EhIpE7xTSf26AniQZN4iLpxMjNYKA="; diff --git a/pkgs/development/python-modules/submitit/default.nix b/pkgs/development/python-modules/submitit/default.nix index 56044665bb5a..078362171edc 100644 --- a/pkgs/development/python-modules/submitit/default.nix +++ b/pkgs/development/python-modules/submitit/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "submitit"; version = "1.5.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "facebookincubator"; diff --git a/pkgs/development/python-modules/subzerod/default.nix b/pkgs/development/python-modules/subzerod/default.nix index 3f0bb1ddf73f..8dce6fa369f0 100644 --- a/pkgs/development/python-modules/subzerod/default.nix +++ b/pkgs/development/python-modules/subzerod/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-/7g8Upj9Hb4m83JXLI3X2lqa9faCt42LVxh+V9WpI68="; diff --git a/pkgs/development/python-modules/sumtypes/default.nix b/pkgs/development/python-modules/sumtypes/default.nix index 9139abfa4b7c..06713b223343 100644 --- a/pkgs/development/python-modules/sumtypes/default.nix +++ b/pkgs/development/python-modules/sumtypes/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.1a6"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "radix"; repo = "sumtypes"; diff --git a/pkgs/development/python-modules/sunpy/default.nix b/pkgs/development/python-modules/sunpy/default.nix index 23c9cddd7a95..940662678bbc 100644 --- a/pkgs/development/python-modules/sunpy/default.nix +++ b/pkgs/development/python-modules/sunpy/default.nix @@ -63,7 +63,6 @@ buildPythonPackage (finalAttrs: { pname = "sunpy"; version = "8.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sunpy"; diff --git a/pkgs/development/python-modules/suntime/default.nix b/pkgs/development/python-modules/suntime/default.nix index 9eaa903e2503..15e194ead7a8 100644 --- a/pkgs/development/python-modules/suntime/default.nix +++ b/pkgs/development/python-modules/suntime/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "suntime"; version = "1.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "SatAgro"; diff --git a/pkgs/development/python-modules/supervision/default.nix b/pkgs/development/python-modules/supervision/default.nix index bdcad6fee788..6a356c76bc8f 100644 --- a/pkgs/development/python-modules/supervision/default.nix +++ b/pkgs/development/python-modules/supervision/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "supervision"; version = "0.29.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "roboflow"; diff --git a/pkgs/development/python-modules/surt/default.nix b/pkgs/development/python-modules/surt/default.nix index 19d06dec9a38..103426270e46 100644 --- a/pkgs/development/python-modules/surt/default.nix +++ b/pkgs/development/python-modules/surt/default.nix @@ -13,8 +13,6 @@ buildPythonPackage { version = "0.3.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "internetarchive"; repo = "surt"; diff --git a/pkgs/development/python-modules/sv-ttk/default.nix b/pkgs/development/python-modules/sv-ttk/default.nix index 58ce7cafca9f..f9946acb1301 100644 --- a/pkgs/development/python-modules/sv-ttk/default.nix +++ b/pkgs/development/python-modules/sv-ttk/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "2.6.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "sv_ttk"; diff --git a/pkgs/development/python-modules/svgdigitizer/default.nix b/pkgs/development/python-modules/svgdigitizer/default.nix index f118ffb8cfbb..08a7345b8b53 100644 --- a/pkgs/development/python-modules/svgdigitizer/default.nix +++ b/pkgs/development/python-modules/svgdigitizer/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "svgdigitizer"; version = "0.14.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "echemdb"; diff --git a/pkgs/development/python-modules/swcgeom/default.nix b/pkgs/development/python-modules/swcgeom/default.nix index d4d87099382a..c3ccc7486543 100644 --- a/pkgs/development/python-modules/swcgeom/default.nix +++ b/pkgs/development/python-modules/swcgeom/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "swcgeom"; version = "0.21.6"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "yzx9"; diff --git a/pkgs/development/python-modules/sweeps/default.nix b/pkgs/development/python-modules/sweeps/default.nix index 5ceb3e7d2d06..bcd617bb9c8a 100644 --- a/pkgs/development/python-modules/sweeps/default.nix +++ b/pkgs/development/python-modules/sweeps/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "sweeps"; version = "0.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "wandb"; diff --git a/pkgs/development/python-modules/swh-scanner/default.nix b/pkgs/development/python-modules/swh-scanner/default.nix index f5e8ddbdc2fe..9423d307eb10 100644 --- a/pkgs/development/python-modules/swh-scanner/default.nix +++ b/pkgs/development/python-modules/swh-scanner/default.nix @@ -34,8 +34,6 @@ buildPythonPackage (finalAttrs: { version = "0.8.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitLab { domain = "gitlab.softwareheritage.org"; group = "swh"; diff --git a/pkgs/development/python-modules/symfc/default.nix b/pkgs/development/python-modules/symfc/default.nix index 0c9c5c873810..183d3b3c64d1 100644 --- a/pkgs/development/python-modules/symfc/default.nix +++ b/pkgs/development/python-modules/symfc/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "symfc"; version = "1.7.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "symfc"; diff --git a/pkgs/development/python-modules/sympy/default.nix b/pkgs/development/python-modules/sympy/default.nix index 575698e7a81c..3051beb73eb9 100644 --- a/pkgs/development/python-modules/sympy/default.nix +++ b/pkgs/development/python-modules/sympy/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "sympy"; version = "1.14.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sympy"; diff --git a/pkgs/development/python-modules/synchronicity/default.nix b/pkgs/development/python-modules/synchronicity/default.nix index f3be9ed462f9..aede885cd866 100644 --- a/pkgs/development/python-modules/synchronicity/default.nix +++ b/pkgs/development/python-modules/synchronicity/default.nix @@ -26,7 +26,6 @@ buildPythonPackage (finalAttrs: { pname = "synchronicity"; version = "0.12.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "modal-labs"; diff --git a/pkgs/development/python-modules/syne-tune/default.nix b/pkgs/development/python-modules/syne-tune/default.nix index c788e5d43a6e..88e88733ec00 100644 --- a/pkgs/development/python-modules/syne-tune/default.nix +++ b/pkgs/development/python-modules/syne-tune/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "syne-tune"; version = "0.16.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "syne-tune"; diff --git a/pkgs/development/python-modules/syrupy/default.nix b/pkgs/development/python-modules/syrupy/default.nix index 4fa8b926e41b..d9ff97878d31 100644 --- a/pkgs/development/python-modules/syrupy/default.nix +++ b/pkgs/development/python-modules/syrupy/default.nix @@ -12,14 +12,14 @@ buildPythonPackage (finalAttrs: { pname = "syrupy"; - version = "6.0.0"; + version = "6.1.1"; pyproject = true; src = fetchFromGitHub { owner = "syrupy-project"; repo = "syrupy"; tag = "v${finalAttrs.version}"; - hash = "sha256-dpGEX0abz20sI+tVSRXQRbFTz/EOQEwbduOdtLZS/AQ="; + hash = "sha256-+WuG0UDxbAIVci+/IfRqvKr4YM3ewzvEAtk6PEiBcpw="; }; build-system = [ hatchling ]; diff --git a/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix b/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix index 800655fd57e7..79db37c5970b 100644 --- a/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix +++ b/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "easypost"; repo = "syslog-rfc5424-formatter"; diff --git a/pkgs/development/python-modules/tables/default.nix b/pkgs/development/python-modules/tables/default.nix index 51f0492159dc..a52a8caf005c 100644 --- a/pkgs/development/python-modules/tables/default.nix +++ b/pkgs/development/python-modules/tables/default.nix @@ -34,7 +34,6 @@ buildPythonPackage (finalAttrs: { pname = "tables"; version = "3.11.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "PyTables"; diff --git a/pkgs/development/python-modules/tantivy/default.nix b/pkgs/development/python-modules/tantivy/default.nix index d086ad2b5098..f16a190e7696 100644 --- a/pkgs/development/python-modules/tantivy/default.nix +++ b/pkgs/development/python-modules/tantivy/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "tantivy"; version = "0.26.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "quickwit-oss"; diff --git a/pkgs/development/python-modules/telegraph/default.nix b/pkgs/development/python-modules/telegraph/default.nix index faa380845956..35524558389b 100644 --- a/pkgs/development/python-modules/telegraph/default.nix +++ b/pkgs/development/python-modules/telegraph/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { repo = "telegraph"; owner = "python273"; diff --git a/pkgs/development/python-modules/temescal/default.nix b/pkgs/development/python-modules/temescal/default.nix index 0d8b6adb5961..198d144a4735 100644 --- a/pkgs/development/python-modules/temescal/default.nix +++ b/pkgs/development/python-modules/temescal/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "temescal"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/tensorboard/default.nix b/pkgs/development/python-modules/tensorboard/default.nix index 8349ba6df644..c81d8b3a25ff 100644 --- a/pkgs/development/python-modules/tensorboard/default.nix +++ b/pkgs/development/python-modules/tensorboard/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "tensorboard"; version = "2.21.0"; format = "wheel"; - __structuredAttrs = true; # tensorflow/tensorboard is built from a downloaded wheel, because # https://github.com/tensorflow/tensorboard/issues/719 blocks buildBazelPackage. diff --git a/pkgs/development/python-modules/tensordict/default.nix b/pkgs/development/python-modules/tensordict/default.nix index a0ad858596fd..5e97381489e1 100644 --- a/pkgs/development/python-modules/tensordict/default.nix +++ b/pkgs/development/python-modules/tensordict/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "tensordict"; version = "0.15.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pytorch"; diff --git a/pkgs/development/python-modules/tensorflow-datasets/default.nix b/pkgs/development/python-modules/tensorflow-datasets/default.nix index c167088916eb..82344bda3cc5 100644 --- a/pkgs/development/python-modules/tensorflow-datasets/default.nix +++ b/pkgs/development/python-modules/tensorflow-datasets/default.nix @@ -66,7 +66,6 @@ buildPythonPackage (finalAttrs: { pname = "tensorflow-datasets"; version = "4.9.10"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tensorflow"; diff --git a/pkgs/development/python-modules/tensorflow-metadata/default.nix b/pkgs/development/python-modules/tensorflow-metadata/default.nix index a73c766364cc..239bd572b029 100644 --- a/pkgs/development/python-modules/tensorflow-metadata/default.nix +++ b/pkgs/development/python-modules/tensorflow-metadata/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "tensorflow-metadata"; version = "1.21.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tensorflow"; diff --git a/pkgs/development/python-modules/tensorrt/default.nix b/pkgs/development/python-modules/tensorrt/default.nix index ee333ade6c39..9c955d55843e 100644 --- a/pkgs/development/python-modules/tensorrt/default.nix +++ b/pkgs/development/python-modules/tensorrt/default.nix @@ -38,7 +38,6 @@ buildPythonPackage { src + "/python/${distribution}-${version}-${pythonTag}-${abiTag}-${platformTag}.whl"; format = "wheel"; - __structuredAttrs = true; nativeBuildInputs = [ autoPatchelfHook diff --git a/pkgs/development/python-modules/tensorstore/default.nix b/pkgs/development/python-modules/tensorstore/default.nix index 6f4d3a752a53..db4332bd3cc8 100644 --- a/pkgs/development/python-modules/tensorstore/default.nix +++ b/pkgs/development/python-modules/tensorstore/default.nix @@ -35,7 +35,6 @@ buildPythonPackage (finalAttrs: { pname = "tensorstore"; version = "0.1.84"; format = "wheel"; - __structuredAttrs = true; # The source build involves some wonky Bazel stuff. src = fetchPypi { diff --git a/pkgs/development/python-modules/tern/default.nix b/pkgs/development/python-modules/tern/default.nix index 6a9fd47e914d..6ad2c7ae3d58 100644 --- a/pkgs/development/python-modules/tern/default.nix +++ b/pkgs/development/python-modules/tern/default.nix @@ -23,8 +23,6 @@ buildPythonPackage (finalAttrs: { version = "2.12.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "tern"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/test2ref/default.nix b/pkgs/development/python-modules/test2ref/default.nix index 5c4945b4d84f..e83b3c8af30e 100644 --- a/pkgs/development/python-modules/test2ref/default.nix +++ b/pkgs/development/python-modules/test2ref/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "test2ref"; version = "1.2.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "nbiotcloud"; diff --git a/pkgs/development/python-modules/testcontainers/default.nix b/pkgs/development/python-modules/testcontainers/default.nix index 04482683b867..1a6eaef54b2a 100644 --- a/pkgs/development/python-modules/testcontainers/default.nix +++ b/pkgs/development/python-modules/testcontainers/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "testcontainers"; version = "4.15.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "testcontainers"; diff --git a/pkgs/development/python-modules/textacy/default.nix b/pkgs/development/python-modules/textacy/default.nix index ee0648459a09..ffe1e3f6d24a 100644 --- a/pkgs/development/python-modules/textacy/default.nix +++ b/pkgs/development/python-modules/textacy/default.nix @@ -32,7 +32,6 @@ buildPythonPackage (finalAttrs: { pname = "textacy"; version = "0.13.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "chartbeat-labs"; diff --git a/pkgs/development/python-modules/textdistance/default.nix b/pkgs/development/python-modules/textdistance/default.nix index 7c01f93ae7ed..08cf1ff2cccf 100644 --- a/pkgs/development/python-modules/textdistance/default.nix +++ b/pkgs/development/python-modules/textdistance/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "4.6.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "textdistance"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/textstat/default.nix b/pkgs/development/python-modules/textstat/default.nix index bb10dd382b2a..a610b17883e8 100644 --- a/pkgs/development/python-modules/textstat/default.nix +++ b/pkgs/development/python-modules/textstat/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { pname = "textstat"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "textstat"; repo = "textstat"; diff --git a/pkgs/development/python-modules/textual-fastdatatable/default.nix b/pkgs/development/python-modules/textual-fastdatatable/default.nix index 5526251e06e6..2a0f095ec34d 100644 --- a/pkgs/development/python-modules/textual-fastdatatable/default.nix +++ b/pkgs/development/python-modules/textual-fastdatatable/default.nix @@ -24,7 +24,6 @@ buildPythonPackage (finalAttrs: { pname = "textual-fastdatatable"; version = "0.19.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tconbeer"; diff --git a/pkgs/development/python-modules/textual-image/default.nix b/pkgs/development/python-modules/textual-image/default.nix index af0c30d9f799..7fd2c57521a7 100644 --- a/pkgs/development/python-modules/textual-image/default.nix +++ b/pkgs/development/python-modules/textual-image/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "textual-image"; version = "0.14.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lnqs"; diff --git a/pkgs/development/python-modules/textual-textarea/default.nix b/pkgs/development/python-modules/textual-textarea/default.nix index 9eab850cb4dd..c1beb08d6c91 100644 --- a/pkgs/development/python-modules/textual-textarea/default.nix +++ b/pkgs/development/python-modules/textual-textarea/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "textual-textarea"; version = "0.18.5"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tconbeer"; diff --git a/pkgs/development/python-modules/textual/default.nix b/pkgs/development/python-modules/textual/default.nix index 015681cba90c..263497581b10 100644 --- a/pkgs/development/python-modules/textual/default.nix +++ b/pkgs/development/python-modules/textual/default.nix @@ -39,7 +39,6 @@ buildPythonPackage (finalAttrs: { pname = "textual"; version = "8.2.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "Textualize"; diff --git a/pkgs/development/python-modules/textualeffects/default.nix b/pkgs/development/python-modules/textualeffects/default.nix index 66a6df540cc8..78190467a339 100644 --- a/pkgs/development/python-modules/textualeffects/default.nix +++ b/pkgs/development/python-modules/textualeffects/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "textualeffects"; version = "0.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { inherit (finalAttrs) pname version; diff --git a/pkgs/development/python-modules/tf-playwright-stealth/default.nix b/pkgs/development/python-modules/tf-playwright-stealth/default.nix index 3da1803b3b0b..3ef5de004a6b 100644 --- a/pkgs/development/python-modules/tf-playwright-stealth/default.nix +++ b/pkgs/development/python-modules/tf-playwright-stealth/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.2-unstable-2026-06-30"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "tinyfish-io"; repo = "tf-playwright-stealth"; diff --git a/pkgs/development/python-modules/three-merge/default.nix b/pkgs/development/python-modules/three-merge/default.nix index 37d3cabdf405..217f10e4459d 100644 --- a/pkgs/development/python-modules/three-merge/default.nix +++ b/pkgs/development/python-modules/three-merge/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.1"; pyproject = true; - __structuredAttrs = true; - # pypi does not contain test files src = fetchFromGitHub { owner = "spyder-ide"; diff --git a/pkgs/development/python-modules/tilelang/default.nix b/pkgs/development/python-modules/tilelang/default.nix index bf0e6eaf6733..32e835fc568d 100644 --- a/pkgs/development/python-modules/tilelang/default.nix +++ b/pkgs/development/python-modules/tilelang/default.nix @@ -45,7 +45,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "tilelang"; version = "0.1.15"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tile-ai"; diff --git a/pkgs/development/python-modules/timeago/default.nix b/pkgs/development/python-modules/timeago/default.nix index 359dd328845c..230cd6411fec 100644 --- a/pkgs/development/python-modules/timeago/default.nix +++ b/pkgs/development/python-modules/timeago/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.16"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "hustcc"; repo = "timeago"; diff --git a/pkgs/development/python-modules/timelib/default.nix b/pkgs/development/python-modules/timelib/default.nix index cd96b0226aba..218c104ea36b 100644 --- a/pkgs/development/python-modules/timelib/default.nix +++ b/pkgs/development/python-modules/timelib/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-0bInBlVxhuYFjaiLoPhYN0AbKuneFX9ZNT3JeNglGHo="; diff --git a/pkgs/development/python-modules/timm/default.nix b/pkgs/development/python-modules/timm/default.nix index 9af703815c58..39bc9728cf84 100644 --- a/pkgs/development/python-modules/timm/default.nix +++ b/pkgs/development/python-modules/timm/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "timm"; version = "1.0.31"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; diff --git a/pkgs/development/python-modules/timy/default.nix b/pkgs/development/python-modules/timy/default.nix index 28eefb04070a..90284bc0eb7c 100644 --- a/pkgs/development/python-modules/timy/default.nix +++ b/pkgs/development/python-modules/timy/default.nix @@ -11,8 +11,6 @@ buildPythonPackage { version = "0.4.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ramonsaraiva"; repo = "timy"; diff --git a/pkgs/development/python-modules/tinygrad/default.nix b/pkgs/development/python-modules/tinygrad/default.nix index 29fb281bdc6e..8bec10ee403c 100644 --- a/pkgs/development/python-modules/tinygrad/default.nix +++ b/pkgs/development/python-modules/tinygrad/default.nix @@ -62,7 +62,6 @@ buildPythonPackage (finalAttrs: { pname = "tinygrad"; version = "0.14.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tinygrad"; @@ -292,19 +291,9 @@ buildPythonPackage (finalAttrs: { # AttributeError: module 'tinygrad.runtime.autogen.libclang' has no attribute 'clang_parseTranslationUnit' "test_gen_from_header" "test_struct_ordering" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + # Exception: forward pass failed shape (2, 3, 64, 64) "test_cast" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # AssertionError: Expected 1 operations, got 3 - # assert 3 == 1 - # + where 3 = len([ExecItem(ast=UOp(Ops.SINK, dtypes.void, arg=None, src=... - # + and 1 = len([{'cnt': 3, 'type': 'graph'}]) - # - # test/test_jit.py:695: AssertionError - "TestJitGraphSplit" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/tinyhtml/default.nix b/pkgs/development/python-modules/tinyhtml/default.nix index 1b41c1802129..21f024e2fe13 100644 --- a/pkgs/development/python-modules/tinyhtml/default.nix +++ b/pkgs/development/python-modules/tinyhtml/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.3.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "niklasf"; repo = "python-tinyhtml"; diff --git a/pkgs/development/python-modules/tinyrecord/default.nix b/pkgs/development/python-modules/tinyrecord/default.nix index 08aae6f9ce13..0869c9983ab6 100644 --- a/pkgs/development/python-modules/tinyrecord/default.nix +++ b/pkgs/development/python-modules/tinyrecord/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "eugene-eeo"; repo = "tinyrecord"; diff --git a/pkgs/development/python-modules/tinysegmenter/default.nix b/pkgs/development/python-modules/tinysegmenter/default.nix index e52da624ab0c..01add7d5e0dc 100644 --- a/pkgs/development/python-modules/tinysegmenter/default.nix +++ b/pkgs/development/python-modules/tinysegmenter/default.nix @@ -8,13 +8,14 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "tinysegmenter"; version = "0.4"; pyproject = true; src = fetchPypi { - inherit pname version; + pname = "tinysegmenter"; + inherit (finalAttrs) version; hash = "sha256-ZEWL26VLp0gsAseF+WDPPWz2FZSk2rPWTDJUOQlPwbc="; }; @@ -22,9 +23,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonImportsCheck = [ "tinysegmenter" ]; @@ -35,4 +35,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ vizid ]; }; -} +}) diff --git a/pkgs/development/python-modules/tlmviewer/default.nix b/pkgs/development/python-modules/tlmviewer/default.nix index 26235d5d31fc..8b088ec52677 100644 --- a/pkgs/development/python-modules/tlmviewer/default.nix +++ b/pkgs/development/python-modules/tlmviewer/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "tlmviewer"; pyproject = true; - __structuredAttrs = true; inherit (torchlensmaker) version diff --git a/pkgs/development/python-modules/tlparse/default.nix b/pkgs/development/python-modules/tlparse/default.nix index 3093b0f0c32d..df745047cba2 100644 --- a/pkgs/development/python-modules/tlparse/default.nix +++ b/pkgs/development/python-modules/tlparse/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "tlparse"; version = "0.4.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; diff --git a/pkgs/development/python-modules/tlv8/default.nix b/pkgs/development/python-modules/tlv8/default.nix index 0a08f00eb6ff..29fd8af309bf 100644 --- a/pkgs/development/python-modules/tlv8/default.nix +++ b/pkgs/development/python-modules/tlv8/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.10.0"; pyproject = true; - __structuredAttrs = true; - # pypi does not contain test files src = fetchFromGitHub { owner = "jlusiardi"; diff --git a/pkgs/development/python-modules/tmb/default.nix b/pkgs/development/python-modules/tmb/default.nix index 529d5cddd607..2dbed8d1d110 100644 --- a/pkgs/development/python-modules/tmb/default.nix +++ b/pkgs/development/python-modules/tmb/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "alemuro"; repo = "tmb"; diff --git a/pkgs/development/python-modules/tmodbus/default.nix b/pkgs/development/python-modules/tmodbus/default.nix index 39252874b342..af374b7a8148 100644 --- a/pkgs/development/python-modules/tmodbus/default.nix +++ b/pkgs/development/python-modules/tmodbus/default.nix @@ -64,8 +64,6 @@ buildPythonPackage (finalAttrs: { inherit version src; pyproject = true; - __structuredAttrs = true; - postPatch = '' substituteInPlace integration_tests/helpers.py \ --replace-fail "/usr/bin/socat" "${lib.getExe socat}" diff --git a/pkgs/development/python-modules/tokenizers/default.nix b/pkgs/development/python-modules/tokenizers/default.nix index 02adf07ee7b2..d26cc246ad38 100644 --- a/pkgs/development/python-modules/tokenizers/default.nix +++ b/pkgs/development/python-modules/tokenizers/default.nix @@ -58,7 +58,6 @@ buildPythonPackage (finalAttrs: { pname = "tokenizers"; version = "0.23.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; diff --git a/pkgs/development/python-modules/tokenspeed-mla/bin.nix b/pkgs/development/python-modules/tokenspeed-mla/bin.nix index d995e52b5d3c..44e2ee7a4bc5 100644 --- a/pkgs/development/python-modules/tokenspeed-mla/bin.nix +++ b/pkgs/development/python-modules/tokenspeed-mla/bin.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "tokenspeed-mla"; version = "0.2.10"; format = "wheel"; - __structuredAttrs = true; src = fetchPypi { format = "wheel"; diff --git a/pkgs/development/python-modules/tokenspeed-mla/default.nix b/pkgs/development/python-modules/tokenspeed-mla/default.nix index d22127a0da2d..6efd76f3ec12 100644 --- a/pkgs/development/python-modules/tokenspeed-mla/default.nix +++ b/pkgs/development/python-modules/tokenspeed-mla/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "tokenspeed-mla"; version = "0.2.10"; pyproject = true; - __structuredAttrs = true; # No git tags. Using the commits named 'Update tokenspeed-mla to XXX' src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/tokenspeed-triton/bin.nix b/pkgs/development/python-modules/tokenspeed-triton/bin.nix index e08a754480d9..7b48c06eaa09 100644 --- a/pkgs/development/python-modules/tokenspeed-triton/bin.nix +++ b/pkgs/development/python-modules/tokenspeed-triton/bin.nix @@ -37,7 +37,6 @@ buildPythonPackage (finalAttrs: { pname = "tokenspeed-triton"; version = "3.8.10.post20260920"; pyproject = false; - __structuredAttrs = true; src = fetchPypi { format = "wheel"; diff --git a/pkgs/development/python-modules/tokenspeed-triton/default.nix b/pkgs/development/python-modules/tokenspeed-triton/default.nix index 90de9eda745c..f15d8c30db58 100644 --- a/pkgs/development/python-modules/tokenspeed-triton/default.nix +++ b/pkgs/development/python-modules/tokenspeed-triton/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "tokenspeed-triton"; version = "3.8.10.post20260920"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "lightseekorg"; diff --git a/pkgs/development/python-modules/tomlkit/default.nix b/pkgs/development/python-modules/tomlkit/default.nix index c2df343ec360..69833309102f 100644 --- a/pkgs/development/python-modules/tomlkit/default.nix +++ b/pkgs/development/python-modules/tomlkit/default.nix @@ -17,13 +17,13 @@ buildPythonPackage (finalAttrs: { pname = "tomlkit"; - version = "0.15.1"; + version = "0.15.2"; pyproject = true; # github fetcher causes infinite recursion via gtk-doc src = fetchPypi { inherit (finalAttrs) pname version; - hash = "sha256-4lu/OIQwBSRiEKEpgndvJ/mcub5nFg4UQ00MDSHuHpc="; + hash = "sha256-g+MnVbodINk0C9Bp7pfp9iMrojRrY//LpCXeAffjJ6Y="; }; build-system = [ poetry-core ]; diff --git a/pkgs/development/python-modules/torch-audiomentations/default.nix b/pkgs/development/python-modules/torch-audiomentations/default.nix index 4ba31489dd6a..dbfa7cbbb5e2 100644 --- a/pkgs/development/python-modules/torch-audiomentations/default.nix +++ b/pkgs/development/python-modules/torch-audiomentations/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "torch-audiomentations"; version = "0.12.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "asteroid-team"; diff --git a/pkgs/development/python-modules/torch-c-dlpack-ext/default.nix b/pkgs/development/python-modules/torch-c-dlpack-ext/default.nix index e7af468208f8..0f63215ef0a7 100644 --- a/pkgs/development/python-modules/torch-c-dlpack-ext/default.nix +++ b/pkgs/development/python-modules/torch-c-dlpack-ext/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.5"; inherit (apache-tvm-ffi) src; pyproject = true; - __structuredAttrs = true; sourceRoot = "${finalAttrs.src.name}/addons/torch_c_dlpack_ext"; diff --git a/pkgs/development/python-modules/torch-checkpointing/default.nix b/pkgs/development/python-modules/torch-checkpointing/default.nix index 3b58d592ca92..0b8cc2947978 100644 --- a/pkgs/development/python-modules/torch-checkpointing/default.nix +++ b/pkgs/development/python-modules/torch-checkpointing/default.nix @@ -22,7 +22,6 @@ buildPythonPackage (finalAttrs: { pname = "torch-checkpointing"; version = "0.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; diff --git a/pkgs/development/python-modules/torch-cluster/default.nix b/pkgs/development/python-modules/torch-cluster/default.nix index 0260e6e138ce..7d479e2a1223 100644 --- a/pkgs/development/python-modules/torch-cluster/default.nix +++ b/pkgs/development/python-modules/torch-cluster/default.nix @@ -25,7 +25,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "torch-cluster"; version = "1.6.3-unstable-2026-06-05"; pyproject = true; - __structuredAttrs = true; # Last stable release is from 2023 # Development is still active, but nothing was properly tagged on GitHub or Pypi diff --git a/pkgs/development/python-modules/torch-ema/default.nix b/pkgs/development/python-modules/torch-ema/default.nix index a81ee06f9a19..867a00f5fa07 100644 --- a/pkgs/development/python-modules/torch-ema/default.nix +++ b/pkgs/development/python-modules/torch-ema/default.nix @@ -18,7 +18,6 @@ buildPythonPackage (finalAttrs: { pname = "torch-ema"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "fadel"; diff --git a/pkgs/development/python-modules/torch-geometric/default.nix b/pkgs/development/python-modules/torch-geometric/default.nix index 422ce0871cab..7424f1857c99 100644 --- a/pkgs/development/python-modules/torch-geometric/default.nix +++ b/pkgs/development/python-modules/torch-geometric/default.nix @@ -81,7 +81,6 @@ buildPythonPackage (finalAttrs: { pname = "torch-geometric"; version = "2.8.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pyg-team"; diff --git a/pkgs/development/python-modules/torch-memory-saver/default.nix b/pkgs/development/python-modules/torch-memory-saver/default.nix index d5706fd0b1a5..9d9621d4a5d3 100644 --- a/pkgs/development/python-modules/torch-memory-saver/default.nix +++ b/pkgs/development/python-modules/torch-memory-saver/default.nix @@ -24,8 +24,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { version = "0.0.9.post1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "fzyzcjy"; repo = "torch_memory_saver"; diff --git a/pkgs/development/python-modules/torch/bin/default.nix b/pkgs/development/python-modules/torch/bin/default.nix index 52bbf0a7ee03..be901dc8ff57 100644 --- a/pkgs/development/python-modules/torch/bin/default.nix +++ b/pkgs/development/python-modules/torch/bin/default.nix @@ -43,7 +43,6 @@ let in buildPythonPackage { inherit version; - __structuredAttrs = true; pname = "torch"; # Don't forget to update torch to the same version. diff --git a/pkgs/development/python-modules/torch/source/default.nix b/pkgs/development/python-modules/torch/source/default.nix index f8cc583252ee..dc8a05cdc596 100644 --- a/pkgs/development/python-modules/torch/source/default.nix +++ b/pkgs/development/python-modules/torch/source/default.nix @@ -91,7 +91,7 @@ # Disable MKLDNN on aarch64-darwin, it negatively impacts performance, # this is also what official pytorch build does - mklDnnSupport ? !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64), + mklDnnSupport ? !stdenv.hostPlatform.isDarwin, # virtual pkg that consistently instantiates blas across nixpkgs # See https://github.com/NixOS/nixpkgs/pull/83888 @@ -301,7 +301,6 @@ buildPythonPackage.override { inherit stdenv; } (finalAttrs: { # Don't forget to update torch-bin to the same version. version = "2.14.1"; pyproject = true; - __structuredAttrs = true; outputs = [ "out" # output standard python package diff --git a/pkgs/development/python-modules/torchao/default.nix b/pkgs/development/python-modules/torchao/default.nix index e02b0ecdb911..1a0035928138 100644 --- a/pkgs/development/python-modules/torchao/default.nix +++ b/pkgs/development/python-modules/torchao/default.nix @@ -36,9 +36,7 @@ let isDarwin isLinux isAarch64 - isx86_64 ; - isAarch64Darwin = isDarwin && isAarch64; isAarch64Linux = isLinux && isAarch64; in buildPythonPackage (finalAttrs: { @@ -53,7 +51,7 @@ buildPythonPackage (finalAttrs: { hash = "sha256-szPyGqvvXSboDRcsLKAkXSBI+Kgx4Fganw/SlONimcY="; }; - patches = lib.optionals isAarch64Darwin [ + patches = lib.optionals isDarwin [ ./use-system-cpuinfo.patch (replaceVars ./use-llvm-openmp.patch { inherit (llvmPackages) openmp; @@ -64,12 +62,12 @@ buildPythonPackage (finalAttrs: { setuptools ]; - nativeBuildInputs = lib.optionals isAarch64Darwin [ + nativeBuildInputs = lib.optionals isDarwin [ cmake ]; dontUseCmakeConfigure = true; - buildInputs = lib.optionals isAarch64Darwin [ + buildInputs = lib.optionals isDarwin [ cpuinfo ]; @@ -287,15 +285,6 @@ buildPythonPackage (finalAttrs: { "test_workflow_e2e_numerics_config1" "test_workflow_e2e_numerics_config4" "test_workflow_e2e_numerics_config5" - ] - ++ lib.optionals (isDarwin && isx86_64) [ - # Flaky: [gw0] node down: keyboard-interrupt - "test_int8_weight_only_quant_with_freeze_0_cpu" - "test_int8_weight_only_quant_with_freeze_1_cpu" - "test_int8_weight_only_quant_with_freeze_2_cpu" - - # Illegal instruction in subclass_4bit.py::dequantize - "test_subclass_slice" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/torchcodec/default.nix b/pkgs/development/python-modules/torchcodec/default.nix index cd8934ea9992..6519b2802cb1 100644 --- a/pkgs/development/python-modules/torchcodec/default.nix +++ b/pkgs/development/python-modules/torchcodec/default.nix @@ -51,7 +51,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "torchcodec"; version = "0.17.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; diff --git a/pkgs/development/python-modules/torchdata/default.nix b/pkgs/development/python-modules/torchdata/default.nix index ae6516a3d887..c4a6bc997a29 100644 --- a/pkgs/development/python-modules/torchdata/default.nix +++ b/pkgs/development/python-modules/torchdata/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "torchdata"; version = "0.11.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "meta-pytorch"; diff --git a/pkgs/development/python-modules/torchdiffeq/default.nix b/pkgs/development/python-modules/torchdiffeq/default.nix index 38a58dddb442..2da0fd944fe9 100644 --- a/pkgs/development/python-modules/torchdiffeq/default.nix +++ b/pkgs/development/python-modules/torchdiffeq/default.nix @@ -17,8 +17,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-tQ03YNE/0TjczqxlH0uAOW9E/vzr0DegM/7P6qnMEuc="; diff --git a/pkgs/development/python-modules/torchimplicit/default.nix b/pkgs/development/python-modules/torchimplicit/default.nix index 356e58047b84..5177cfd8e44b 100644 --- a/pkgs/development/python-modules/torchimplicit/default.nix +++ b/pkgs/development/python-modules/torchimplicit/default.nix @@ -17,7 +17,6 @@ buildPythonPackage (finalAttrs: { pname = "torchimplicit"; version = "0.1.0"; pyproject = true; - __structuredAttrs = true; inherit (torchlensmaker) src diff --git a/pkgs/development/python-modules/torchinfo/default.nix b/pkgs/development/python-modules/torchinfo/default.nix index 3e9a08bd8dcb..5caef7fda5c3 100644 --- a/pkgs/development/python-modules/torchinfo/default.nix +++ b/pkgs/development/python-modules/torchinfo/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.8.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "TylerYep"; repo = "torchinfo"; diff --git a/pkgs/development/python-modules/torchlensmaker/default.nix b/pkgs/development/python-modules/torchlensmaker/default.nix index 0b6db3a677f5..5900135f8e9f 100644 --- a/pkgs/development/python-modules/torchlensmaker/default.nix +++ b/pkgs/development/python-modules/torchlensmaker/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "torchlensmaker"; version = "0.0.14"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "victorpoughon"; diff --git a/pkgs/development/python-modules/torchlibrosa/default.nix b/pkgs/development/python-modules/torchlibrosa/default.nix index e98d5515fcd5..79a2e1b0058b 100644 --- a/pkgs/development/python-modules/torchlibrosa/default.nix +++ b/pkgs/development/python-modules/torchlibrosa/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Yqi+7fnJtBQaBiNN8/ECKfe6huZ2eMzuAkiexO8EQCg="; diff --git a/pkgs/development/python-modules/torchmd-net/default.nix b/pkgs/development/python-modules/torchmd-net/default.nix index c6a98cd346c8..5d68e4300287 100644 --- a/pkgs/development/python-modules/torchmd-net/default.nix +++ b/pkgs/development/python-modules/torchmd-net/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "torchmd-net"; version = "3.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "torchmd"; diff --git a/pkgs/development/python-modules/torchrl/default.nix b/pkgs/development/python-modules/torchrl/default.nix index 8e3b55cbae07..47ac7beaba0c 100644 --- a/pkgs/development/python-modules/torchrl/default.nix +++ b/pkgs/development/python-modules/torchrl/default.nix @@ -80,7 +80,6 @@ buildPythonPackage (finalAttrs: { pname = "torchrl"; version = "0.14.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pytorch"; diff --git a/pkgs/development/python-modules/torchrunx/default.nix b/pkgs/development/python-modules/torchrunx/default.nix index 42a8aaacbe9f..36b825b04b33 100644 --- a/pkgs/development/python-modules/torchrunx/default.nix +++ b/pkgs/development/python-modules/torchrunx/default.nix @@ -23,7 +23,6 @@ buildPythonPackage (finalAttrs: { pname = "torchrunx"; version = "0.4.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "apoorvkh"; diff --git a/pkgs/development/python-modules/torchsnapshot/default.nix b/pkgs/development/python-modules/torchsnapshot/default.nix index 97bf01d541a7..a6f3ea38c6ab 100644 --- a/pkgs/development/python-modules/torchsnapshot/default.nix +++ b/pkgs/development/python-modules/torchsnapshot/default.nix @@ -27,7 +27,6 @@ buildPythonPackage (finalAttrs: { pname = "torchsnapshot"; version = "0.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pytorch"; diff --git a/pkgs/development/python-modules/torchsummary/default.nix b/pkgs/development/python-modules/torchsummary/default.nix index 7c0c4c583363..af51bea65195 100644 --- a/pkgs/development/python-modules/torchsummary/default.nix +++ b/pkgs/development/python-modules/torchsummary/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "torchsummary"; version = "1.5.1"; pyproject = true; - __structuredAttrs = true; # No tags on GitHub src = fetchPypi { diff --git a/pkgs/development/python-modules/torchtitan/default.nix b/pkgs/development/python-modules/torchtitan/default.nix index f7721107e0f4..aeef22a06f2b 100644 --- a/pkgs/development/python-modules/torchtitan/default.nix +++ b/pkgs/development/python-modules/torchtitan/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "torchtitan"; version = "0.3.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pytorch"; diff --git a/pkgs/development/python-modules/torchvision/bin.nix b/pkgs/development/python-modules/torchvision/bin.nix index 5668e09df040..8105737b2a1f 100644 --- a/pkgs/development/python-modules/torchvision/bin.nix +++ b/pkgs/development/python-modules/torchvision/bin.nix @@ -28,7 +28,6 @@ buildPythonPackage { pname = "torchvision"; inherit version; format = "wheel"; - __structuredAttrs = true; src = fetchurl srcs."${stdenv.system}-${pyVerNoDot}" or unsupported; diff --git a/pkgs/development/python-modules/torchvision/default.nix b/pkgs/development/python-modules/torchvision/default.nix index d65021f327e0..ab32b127225f 100644 --- a/pkgs/development/python-modules/torchvision/default.nix +++ b/pkgs/development/python-modules/torchvision/default.nix @@ -30,7 +30,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "torchvision"; version = "0.29.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pytorch"; diff --git a/pkgs/development/python-modules/torpy/default.nix b/pkgs/development/python-modules/torpy/default.nix index 5030ac3a826b..8bf893730bfe 100644 --- a/pkgs/development/python-modules/torpy/default.nix +++ b/pkgs/development/python-modules/torpy/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.6"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "torpyorg"; repo = "torpy"; diff --git a/pkgs/development/python-modules/torrequest/default.nix b/pkgs/development/python-modules/torrequest/default.nix index 36945997075e..c7aa28952079 100644 --- a/pkgs/development/python-modules/torrequest/default.nix +++ b/pkgs/development/python-modules/torrequest/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-N0XU6j/9qY16A0Njx4ets3qrd72rQAlKTZNzks1NroI="; diff --git a/pkgs/development/python-modules/trackers/default.nix b/pkgs/development/python-modules/trackers/default.nix index 8baaacca4d9e..632d2ee0e60d 100644 --- a/pkgs/development/python-modules/trackers/default.nix +++ b/pkgs/development/python-modules/trackers/default.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "trackers"; version = "2.5.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "roboflow"; diff --git a/pkgs/development/python-modules/trafilatura/default.nix b/pkgs/development/python-modules/trafilatura/default.nix index 2b3093d1c988..0ebf68d535da 100644 --- a/pkgs/development/python-modules/trafilatura/default.nix +++ b/pkgs/development/python-modules/trafilatura/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "trafilatura"; version = "2.3.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "adbar"; diff --git a/pkgs/development/python-modules/trampoline/default.nix b/pkgs/development/python-modules/trampoline/default.nix index ef8997a8c409..08a3ebb68d0d 100644 --- a/pkgs/development/python-modules/trampoline/default.nix +++ b/pkgs/development/python-modules/trampoline/default.nix @@ -11,8 +11,6 @@ buildPythonPackage { version = "0.1.2"; pyproject = true; - __structuredAttrs = true; - # only wheel on pypi, no tags on git src = fetchFromGitLab { owner = "ferreum"; diff --git a/pkgs/development/python-modules/transformer-engine/default.nix b/pkgs/development/python-modules/transformer-engine/default.nix index 96d4c3f783d6..d464dd62c29c 100644 --- a/pkgs/development/python-modules/transformer-engine/default.nix +++ b/pkgs/development/python-modules/transformer-engine/default.nix @@ -100,7 +100,6 @@ buildPythonPackage.override { stdenv = backendStdenv; } (finalAttrs: { pname = "transformer-engine"; version = "2.20.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/transformers/default.nix b/pkgs/development/python-modules/transformers/default.nix index 1a8148b16cb2..915be79b15fe 100644 --- a/pkgs/development/python-modules/transformers/default.nix +++ b/pkgs/development/python-modules/transformers/default.nix @@ -94,7 +94,6 @@ buildPythonPackage (finalAttrs: { pname = "transformers"; version = "5.22.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; diff --git a/pkgs/development/python-modules/translate-toolkit/default.nix b/pkgs/development/python-modules/translate-toolkit/default.nix index 63d2bb9261ad..5b5d825ad149 100644 --- a/pkgs/development/python-modules/translate-toolkit/default.nix +++ b/pkgs/development/python-modules/translate-toolkit/default.nix @@ -36,7 +36,6 @@ buildPythonPackage (finalAttrs: { pname = "translate-toolkit"; version = "3.19.19"; pyproject = true; - __structuredAttrs = true; # nixpkgs-update: no auto update # Only weblate uses this and we want to follow its version constraints diff --git a/pkgs/development/python-modules/translatepy/default.nix b/pkgs/development/python-modules/translatepy/default.nix index 50f13f6d4cd9..f2bebbf5ff83 100644 --- a/pkgs/development/python-modules/translatepy/default.nix +++ b/pkgs/development/python-modules/translatepy/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "2.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "Animenosekai"; repo = "translate"; diff --git a/pkgs/development/python-modules/translation-finder/default.nix b/pkgs/development/python-modules/translation-finder/default.nix index 614a1e796649..2a54a3202e7b 100644 --- a/pkgs/development/python-modules/translation-finder/default.nix +++ b/pkgs/development/python-modules/translation-finder/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { version = "3.4.0"; pyproject = true; - __structuredAttrs = true; # nixpkgs-update: no auto update # Only weblate uses this and we want to follow its version constraints diff --git a/pkgs/development/python-modules/translationstring/default.nix b/pkgs/development/python-modules/translationstring/default.nix index af6e252f0018..4ca33ea17190 100644 --- a/pkgs/development/python-modules/translationstring/default.nix +++ b/pkgs/development/python-modules/translationstring/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.4"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-v5R1ONduaboSqxcoOxA1Wp7PvAeOYSNEP0PyEH9jdvM="; diff --git a/pkgs/development/python-modules/translitcodec/default.nix b/pkgs/development/python-modules/translitcodec/default.nix index 5755be06e5d6..153333b9561f 100644 --- a/pkgs/development/python-modules/translitcodec/default.nix +++ b/pkgs/development/python-modules/translitcodec/default.nix @@ -15,8 +15,6 @@ buildPythonPackage { pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "claudep"; repo = "translitcodec"; diff --git a/pkgs/development/python-modules/trectools/default.nix b/pkgs/development/python-modules/trectools/default.nix index 97f45327bc25..e0ded7dbb8f7 100644 --- a/pkgs/development/python-modules/trectools/default.nix +++ b/pkgs/development/python-modules/trectools/default.nix @@ -20,8 +20,6 @@ buildPythonPackage { version = "0.0.50"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "joaopalotti"; repo = "trectools"; diff --git a/pkgs/development/python-modules/tree-sitter-sql/default.nix b/pkgs/development/python-modules/tree-sitter-sql/default.nix index 5b83a39db9e4..06d99deef99a 100644 --- a/pkgs/development/python-modules/tree-sitter-sql/default.nix +++ b/pkgs/development/python-modules/tree-sitter-sql/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "tree-sitter-sql"; version = "0.3.11"; pyproject = true; - __structuredAttrs = true; # The git tree does not contain the generated parser (`src/parser.c`), which is required for # compilation. Only the release tarball ships it. diff --git a/pkgs/development/python-modules/treescope/default.nix b/pkgs/development/python-modules/treescope/default.nix index ad077140ea48..8ca7b4b15bf7 100644 --- a/pkgs/development/python-modules/treescope/default.nix +++ b/pkgs/development/python-modules/treescope/default.nix @@ -28,7 +28,6 @@ buildPythonPackage (finalAttrs: { pname = "treescope"; version = "0.1.10"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "google-deepmind"; diff --git a/pkgs/development/python-modules/triton/bin.nix b/pkgs/development/python-modules/triton/bin.nix index f2d02abbf443..a90ba0a0ac4f 100644 --- a/pkgs/development/python-modules/triton/bin.nix +++ b/pkgs/development/python-modules/triton/bin.nix @@ -19,7 +19,6 @@ buildPythonPackage (finalAttrs: { pname = "triton"; version = "3.8.0"; format = "wheel"; - __structuredAttrs = true; src = let diff --git a/pkgs/development/python-modules/triton/default.nix b/pkgs/development/python-modules/triton/default.nix index 19c49af66d9c..e6491e36991f 100644 --- a/pkgs/development/python-modules/triton/default.nix +++ b/pkgs/development/python-modules/triton/default.nix @@ -50,7 +50,6 @@ buildPythonPackage.override { stdenv = effectiveStdenv; } (finalAttrs: { pname = "triton"; version = "3.8.0"; pyproject = true; - __structuredAttrs = true; # Remember to bump triton-llvm as well! src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/troposphere/default.nix b/pkgs/development/python-modules/troposphere/default.nix index b4c3c7797687..5b38588546d0 100644 --- a/pkgs/development/python-modules/troposphere/default.nix +++ b/pkgs/development/python-modules/troposphere/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "4.10.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "cloudtools"; repo = "troposphere"; diff --git a/pkgs/development/python-modules/trueskill/default.nix b/pkgs/development/python-modules/trueskill/default.nix index ce70d2543876..a40fc9f3f63b 100644 --- a/pkgs/development/python-modules/trueskill/default.nix +++ b/pkgs/development/python-modules/trueskill/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "trueskill"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/trytond/default.nix b/pkgs/development/python-modules/trytond/default.nix index 59844f2bc2fd..6185b1f55f03 100644 --- a/pkgs/development/python-modules/trytond/default.nix +++ b/pkgs/development/python-modules/trytond/default.nix @@ -27,13 +27,14 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "trytond"; version = "7.8.15"; pyproject = true; src = fetchPypi { - inherit pname version; + pname = "trytond"; + inherit (finalAttrs) version; hash = "sha256-YuuefJfB5pF0W2BO48w1uvD4wcXxK8BjdUmp1BCzJpg="; }; @@ -78,9 +79,8 @@ buildPythonPackage rec { export DB_NAME=":memory:"; ''; - unittestFlagsArray = [ - "-s" - "trytond.tests" + unittestFlags = [ + "--start-directory=trytond.tests" ]; meta = { @@ -94,7 +94,7 @@ buildPythonPackage rec { modularity, scalability and security. ''; homepage = "http://www.tryton.org/"; - changelog = "https://foss.heptapod.net/tryton/tryton/-/blob/trytond-${version}/trytond/CHANGELOG?ref_type=tags"; + changelog = "https://foss.heptapod.net/tryton/tryton/-/blob/trytond-${finalAttrs.version}/trytond/CHANGELOG?ref_type=tags"; license = lib.licenses.gpl3Plus; broken = stdenv.hostPlatform.isDarwin; maintainers = with lib.maintainers; [ @@ -102,4 +102,4 @@ buildPythonPackage rec { johbo ]; }; -} +}) diff --git a/pkgs/development/python-modules/tsfresh/default.nix b/pkgs/development/python-modules/tsfresh/default.nix index fd4763090c48..52fbd4235f6f 100644 --- a/pkgs/development/python-modules/tsfresh/default.nix +++ b/pkgs/development/python-modules/tsfresh/default.nix @@ -3,41 +3,47 @@ buildPythonPackage, fetchFromGitHub, stdenv, - requests, - numpy, - pandas, - scipy, - statsmodels, - patsy, - scikit-learn, - tqdm, + + # build-system + setuptools, + + # dependencies + cloudpickle, dask, distributed, + numpy, + pandas, + patsy, + pywavelets, + requests, + scikit-learn, + scipy, + statsmodels, stumpy, - cloudpickle, - pytestCheckHook, - pytest-cov-stub, - pytest-xdist, - mock, - matplotlib, - seaborn, + tqdm, + + # testing ipython, + matplotlib, + mock, notebook, pandas-datareader, - setuptools, - pywavelets, + pytest-cov-stub, + pytest-xdist, + pytestCheckHook, + seaborn, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "tsfresh"; - version = "0.21.1"; + version = "0.21.2"; pyproject = true; src = fetchFromGitHub { owner = "blue-yonder"; repo = "tsfresh"; - tag = "v${version}"; - hash = "sha256-KwUI33t5KFcTUWdSDg81OPbNn5SYv4Gw/0dPjCB502w="; + tag = "v${finalAttrs.version}"; + hash = "sha256-rOEzcAQ2kiskHsFezPee+GNI0IuuZomqtMB6ev0uop8="; }; patches = [ @@ -45,21 +51,33 @@ buildPythonPackage rec { ./remove-pyscaffold.patch ]; - dependencies = [ + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "requires = [\"setuptools<70\", \"wheel\", \"pyscaffold>=3.3a0,<4\"]" \ + "requires = [\"setuptools\", \"wheel\"]" \ + ''; + + build-system = [ setuptools - requests - numpy - pandas - scipy - statsmodels - patsy - scikit-learn - tqdm + ]; + + # Upstream doesn't supply a version field anywhere, so patching it is out of the question. + dontCheckPythonMetadata = true; + + dependencies = [ + cloudpickle dask distributed - stumpy - cloudpickle + numpy + pandas + patsy pywavelets + requests + scikit-learn + scipy + statsmodels + stumpy + tqdm ] ++ dask.optional-dependencies.dataframe; @@ -67,15 +85,15 @@ buildPythonPackage rec { doCheck = !pandas-datareader.disabled; nativeCheckInputs = [ - pytestCheckHook - pytest-cov-stub - pytest-xdist - mock - matplotlib - seaborn ipython + matplotlib + mock notebook pandas-datareader + pytest-cov-stub + pytest-xdist + pytestCheckHook + seaborn ]; disabledTests = [ @@ -103,8 +121,8 @@ buildPythonPackage rec { description = "Automatic extraction of relevant features from time series"; mainProgram = "run_tsfresh"; homepage = "https://github.com/blue-yonder/tsfresh"; - changelog = "https://github.com/blue-yonder/tsfresh/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/blue-yonder/tsfresh/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.mit; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/tt-flash/default.nix b/pkgs/development/python-modules/tt-flash/default.nix index 07427ed5beba..c935afa78a6a 100644 --- a/pkgs/development/python-modules/tt-flash/default.nix +++ b/pkgs/development/python-modules/tt-flash/default.nix @@ -21,8 +21,6 @@ buildPythonPackage (finalAttrs: { version = "4.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "tenstorrent"; repo = "tt-flash"; diff --git a/pkgs/development/python-modules/tt-perf-report/default.nix b/pkgs/development/python-modules/tt-perf-report/default.nix index 56a46ee9b8f2..1c770e3f1b55 100644 --- a/pkgs/development/python-modules/tt-perf-report/default.nix +++ b/pkgs/development/python-modules/tt-perf-report/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "tt-perf-report"; version = "1.2.4"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "tenstorrent"; diff --git a/pkgs/development/python-modules/ttach/default.nix b/pkgs/development/python-modules/ttach/default.nix index c8f239f033c2..3e8810d9de59 100644 --- a/pkgs/development/python-modules/ttach/default.nix +++ b/pkgs/development/python-modules/ttach/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "qubvel"; repo = "ttach"; diff --git a/pkgs/development/python-modules/ttconv/default.nix b/pkgs/development/python-modules/ttconv/default.nix index ea7ab76ced6b..0957d63f5a1f 100644 --- a/pkgs/development/python-modules/ttconv/default.nix +++ b/pkgs/development/python-modules/ttconv/default.nix @@ -30,8 +30,6 @@ buildPythonPackage (finalAttrs: { runHook postInstallCheck ''; - __structuredAttrs = true; - meta = { description = "Timed Text Conversion"; longDescription = '' diff --git a/pkgs/development/python-modules/ttnn/default.nix b/pkgs/development/python-modules/ttnn/default.nix index adf682d954ff..38db2622b973 100644 --- a/pkgs/development/python-modules/ttnn/default.nix +++ b/pkgs/development/python-modules/ttnn/default.nix @@ -25,7 +25,6 @@ buildPythonPackage { pname = "ttnn"; inherit (tt-metal') version src; pyproject = true; - __structuredAttrs = true; # nanobind builds _ttnn.so against the stable ABI targeting python 3.12+ disabled = pythonOlder "3.12"; diff --git a/pkgs/development/python-modules/ttstokenizer/default.nix b/pkgs/development/python-modules/ttstokenizer/default.nix index 0aa28b5fbbb5..e7291b7aff85 100644 --- a/pkgs/development/python-modules/ttstokenizer/default.nix +++ b/pkgs/development/python-modules/ttstokenizer/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-akXiscw57CMp2JDdJq7wqeBeML41yLyFh7fTZwEBlVA="; diff --git a/pkgs/development/python-modules/txdbus/default.nix b/pkgs/development/python-modules/txdbus/default.nix index 9271bfda2133..8d2ec1632c72 100644 --- a/pkgs/development/python-modules/txdbus/default.nix +++ b/pkgs/development/python-modules/txdbus/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "txdbus"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/txrequests/default.nix b/pkgs/development/python-modules/txrequests/default.nix index 0fbe35409bf6..e35ecc68d19b 100644 --- a/pkgs/development/python-modules/txrequests/default.nix +++ b/pkgs/development/python-modules/txrequests/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-tFKhyvpNAFZ49vpHkiozD+tJB9W0cy0YQcqY6J8TYuE="; diff --git a/pkgs/development/python-modules/txtorcon/default.nix b/pkgs/development/python-modules/txtorcon/default.nix index ab843692ac90..744d7a0c0d8d 100644 --- a/pkgs/development/python-modules/txtorcon/default.nix +++ b/pkgs/development/python-modules/txtorcon/default.nix @@ -41,7 +41,7 @@ buildPythonPackage rec { geoip ]; - doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); + doCheck = !stdenv.hostPlatform.isDarwin; pythonImportsCheck = [ "txtorcon" ]; diff --git a/pkgs/development/python-modules/txzmq/default.nix b/pkgs/development/python-modules/txzmq/default.nix index 2789142ee214..1139000b4e12 100644 --- a/pkgs/development/python-modules/txzmq/default.nix +++ b/pkgs/development/python-modules/txzmq/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "txZMQ"; diff --git a/pkgs/development/python-modules/type-infer/default.nix b/pkgs/development/python-modules/type-infer/default.nix index 51b629f98c70..d580a7d7e320 100644 --- a/pkgs/development/python-modules/type-infer/default.nix +++ b/pkgs/development/python-modules/type-infer/default.nix @@ -49,6 +49,7 @@ buildPythonPackage { ]; pythonRelaxDeps = [ + "pandas" "psutil" "py3langid" "numpy" @@ -78,6 +79,8 @@ buildPythonPackage { disabledTests = [ # test hangs "test_1_stack_overflow_survey" + # TypeError: Invalid value 'random string' for dtype 'float64' + "test_2_simple" ]; # Package import requires NLTK data to be downloaded diff --git a/pkgs/development/python-modules/typer/default.nix b/pkgs/development/python-modules/typer/default.nix index cc8c577597c0..663c6f3e1fb5 100644 --- a/pkgs/development/python-modules/typer/default.nix +++ b/pkgs/development/python-modules/typer/default.nix @@ -19,7 +19,7 @@ procps, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "typer"; version = "0.27.2"; pyproject = true; @@ -27,7 +27,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "fastapi"; repo = "typer"; - tag = version; + tag = finalAttrs.version; hash = "sha256-vBHSJoyIQawkqqhbPJGKzPjBPm42OR/Ref/k6XFJTi8="; }; @@ -37,9 +37,11 @@ buildPythonPackage rec { sed -z -i 's/"-m",\n\?\s*"coverage",\n\?\s*"run",//g' "$f" sed -i 's/-m coverage run//g' "$f" done - # These are already included in the PYTHONPATH. - # Overriding PYTHONPATH breaks the tests when executed by Nix - # ("No module named 'typer'" error) because it's used to find `typer` too. + '' + # These are already included in the PYTHONPATH. + # Overriding PYTHONPATH breaks the tests when executed by Nix ("No module named 'typer'" error) + # because it's used to find `typer` too. + + '' substituteInPlace tests/test_tutorial/test_subcommands/test_tutorial001.py \ --replace-fail 'env["PYTHONPATH"] = ":".join(list(tutorial001_py310.__path__))' "" substituteInPlace tests/test_tutorial/test_subcommands/test_tutorial003.py \ @@ -65,18 +67,29 @@ buildPythonPackage rec { procps ]; - preCheck = '' + preCheck = # Fix "No module named 'tests'" error in tests/test_types_file.py::test_binary_stderr - export PYTHONPATH="$PWD:$PYTHONPATH" - ''; + '' + export PYTHONPATH="$PWD:$PYTHONPATH" + '' + # Match upstream's scripts/test.sh. Otherwise rich wraps output at 80 columns, and + # test_file_error fails with 11 or more xdist workers (popen-gw10 and up), whose longer tmp_path + # gets split mid-name. + + '' + export TERMINAL_WIDTH=3000 + ''; + + # Long Nix build paths can make Rich wrap the filename in the error message. + # https://github.com/fastapi/typer/discussions/1984 + disabledTests = [ "test_file_error" ]; pythonImportsCheck = [ "typer" ]; meta = { description = "Library for building CLI applications"; homepage = "https://typer.tiangolo.com/"; - changelog = "https://github.com/tiangolo/typer/releases/tag/${version}"; + changelog = "https://github.com/tiangolo/typer/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ winpat ]; }; -} +}) diff --git a/pkgs/development/python-modules/types-appdirs/default.nix b/pkgs/development/python-modules/types-appdirs/default.nix index c834cd6adb0b..d01da66f1c3d 100644 --- a/pkgs/development/python-modules/types-appdirs/default.nix +++ b/pkgs/development/python-modules/types-appdirs/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.3.5"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-gyaNpkWFNhv6KR+PUGogknYhKgSXvTfwUSqTmz1p/xQ="; diff --git a/pkgs/development/python-modules/types-freezegun/default.nix b/pkgs/development/python-modules/types-freezegun/default.nix index 4179bb10949b..4e717c4d0cb8 100644 --- a/pkgs/development/python-modules/types-freezegun/default.nix +++ b/pkgs/development/python-modules/types-freezegun/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.10"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "types-freezegun"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/types-futures/default.nix b/pkgs/development/python-modules/types-futures/default.nix index d14012b90917..307b23bd9b22 100644 --- a/pkgs/development/python-modules/types-futures/default.nix +++ b/pkgs/development/python-modules/types-futures/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "3.3.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-b+jMwsKvfvL92b9z6rbWFwdPCfMK19NzUQtAQ9OcQt4="; diff --git a/pkgs/development/python-modules/types-ipaddress/default.nix b/pkgs/development/python-modules/types-ipaddress/default.nix index 3bb89f29f7d8..4648179f17fb 100644 --- a/pkgs/development/python-modules/types-ipaddress/default.nix +++ b/pkgs/development/python-modules/types-ipaddress/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.8"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "types-ipaddress"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/types-paramiko/default.nix b/pkgs/development/python-modules/types-paramiko/default.nix index 14e12cb2d8f9..5cff1b2fda3a 100644 --- a/pkgs/development/python-modules/types-paramiko/default.nix +++ b/pkgs/development/python-modules/types-paramiko/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { pname = "types-paramiko"; version = "5.0.0.20261021"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "types_paramiko"; diff --git a/pkgs/development/python-modules/types-pillow/default.nix b/pkgs/development/python-modules/types-pillow/default.nix index 88a80cce8eb1..a9d3702cba87 100644 --- a/pkgs/development/python-modules/types-pillow/default.nix +++ b/pkgs/development/python-modules/types-pillow/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "10.2.0.20240822"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "types-Pillow"; diff --git a/pkgs/development/python-modules/types-protobuf/default.nix b/pkgs/development/python-modules/types-protobuf/default.nix index 68004378f0b8..f8df56a48828 100644 --- a/pkgs/development/python-modules/types-protobuf/default.nix +++ b/pkgs/development/python-modules/types-protobuf/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "6.32.1.20260221"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "types_protobuf"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/types-retry/default.nix b/pkgs/development/python-modules/types-retry/default.nix index 0d3c807464c1..2af0b8c7009f 100644 --- a/pkgs/development/python-modules/types-retry/default.nix +++ b/pkgs/development/python-modules/types-retry/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.9.20260408"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "types_retry"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/types-tqdm/default.nix b/pkgs/development/python-modules/types-tqdm/default.nix index 319cf59faa1b..712a7ec4ed49 100644 --- a/pkgs/development/python-modules/types-tqdm/default.nix +++ b/pkgs/development/python-modules/types-tqdm/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "types-tqdm"; version = "4.70.0.20260906"; pyproject = true; - __structuredAttrs = true; src = fetchPypi { pname = "types_tqdm"; diff --git a/pkgs/development/python-modules/types-urllib3/default.nix b/pkgs/development/python-modules/types-urllib3/default.nix index 98d0f136a4f8..198ef86aded9 100644 --- a/pkgs/development/python-modules/types-urllib3/default.nix +++ b/pkgs/development/python-modules/types-urllib3/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.26.25.14"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Ipt/V3yVG4wbksG8Ky/bC0mEe9KvbRzCouPdNA872o8="; diff --git a/pkgs/development/python-modules/typesense/default.nix b/pkgs/development/python-modules/typesense/default.nix index ebcb8f64419a..c9b256e36805 100644 --- a/pkgs/development/python-modules/typesense/default.nix +++ b/pkgs/development/python-modules/typesense/default.nix @@ -99,7 +99,5 @@ buildPythonPackage (finalAttrs: { homepage = "https://github.com/typesense/typesense-python"; license = lib.licenses.asl20; teams = [ lib.teams.ngi ]; - # on x86_64-darwin the typesense server doesn't start - badPlatforms = [ "x86_64-darwin" ]; }; }) diff --git a/pkgs/development/python-modules/typing-inspection/default.nix b/pkgs/development/python-modules/typing-inspection/default.nix index f763f5f68778..7a0433c2054c 100644 --- a/pkgs/development/python-modules/typing-inspection/default.nix +++ b/pkgs/development/python-modules/typing-inspection/default.nix @@ -9,14 +9,14 @@ buildPythonPackage (finalAttrs: { pname = "typing-inspection"; - version = "0.4.3"; + version = "0.4.4"; pyproject = true; src = fetchFromGitHub { owner = "pydantic"; repo = "typing-inspection"; tag = "v${finalAttrs.version}"; - hash = "sha256-jNAMYV9mpUnClLOahQyLisBkOfELcmjKavKJgyxkQr4="; + hash = "sha256-VqRn+m+7McD9gNy1SaDG5DqUFqBdId2vLcAPB41mMu8="; }; build-system = [ hatchling ]; diff --git a/pkgs/development/python-modules/typish/default.nix b/pkgs/development/python-modules/typish/default.nix index f0eb2e85e5cc..e9cf2547b6f1 100644 --- a/pkgs/development/python-modules/typish/default.nix +++ b/pkgs/development/python-modules/typish/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.9.3"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ramonhagenaars"; repo = "typish"; diff --git a/pkgs/development/python-modules/tzdata/default.nix b/pkgs/development/python-modules/tzdata/default.nix index ef00269e5b5a..e5927eacb5ba 100644 --- a/pkgs/development/python-modules/tzdata/default.nix +++ b/pkgs/development/python-modules/tzdata/default.nix @@ -8,12 +8,12 @@ buildPythonPackage rec { pname = "tzdata"; - version = "2026.4"; + version = "2026.5"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-8bi9Nl2NIQxVNT9Nf41thWHAulDXBLcA0ZWpQku6DXk="; + hash = "sha256-jMc8Cgv8p9v6WSNdYLLv+CIx3uM/U9IG2xrNkXPPwKc="; }; nativeBuildInputs = [ setuptools ]; diff --git a/pkgs/development/python-modules/tzlocal/default.nix b/pkgs/development/python-modules/tzlocal/default.nix index fdd7bd269bce..94414d45b97e 100644 --- a/pkgs/development/python-modules/tzlocal/default.nix +++ b/pkgs/development/python-modules/tzlocal/default.nix @@ -10,15 +10,14 @@ buildPythonPackage (finalAttrs: { pname = "tzlocal"; - version = "5.4.4"; # version needs to be compatible with APScheduler + version = "5.4.5"; # version needs to be compatible with APScheduler pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "regebro"; repo = "tzlocal"; tag = finalAttrs.version; - hash = "sha256-kZ3+YpmJJ7ZHKbEp5RELVnGtwAOJph19Wf32lwuokNM="; + hash = "sha256-I84hCUYd5mmZpoawsPPWfTKVyg1Vn7QxmUD1Gk41eiw="; }; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/u-msgpack-python/default.nix b/pkgs/development/python-modules/u-msgpack-python/default.nix index 3e1935cfd1dd..0d0d8d7a090b 100644 --- a/pkgs/development/python-modules/u-msgpack-python/default.nix +++ b/pkgs/development/python-modules/u-msgpack-python/default.nix @@ -2,30 +2,38 @@ buildPythonPackage, lib, fetchPypi, + setuptools, glibcLocales, unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "u-msgpack-python"; version = "2.8.0"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-uAGoPW7XXm30HkRRi08qnCIdwtpLzVOA46D+2lILxho="; }; + build-system = [ setuptools ]; + env.LC_ALL = "en_US.UTF-8"; - buildInputs = [ glibcLocales ]; + nativeCheckInputs = [ + glibcLocales + unittestCheckHook + ]; - nativeCheckInputs = [ unittestCheckHook ]; + pythonImportsCheck = [ "umsgpack" ]; meta = { description = "Portable, lightweight MessagePack serializer and deserializer written in pure Python"; homepage = "https://github.com/vsergeev/u-msgpack-python"; - changelog = "https://github.com/vsergeev/u-msgpack-python/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/vsergeev/u-msgpack-python/blob/v${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; }; -} +}) diff --git a/pkgs/development/python-modules/ua-generator/default.nix b/pkgs/development/python-modules/ua-generator/default.nix index f56212a4d196..0afd9b7828e4 100644 --- a/pkgs/development/python-modules/ua-generator/default.nix +++ b/pkgs/development/python-modules/ua-generator/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "2.1.7"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "iamdual"; repo = "ua-generator"; diff --git a/pkgs/development/python-modules/ua-parser-rs/default.nix b/pkgs/development/python-modules/ua-parser-rs/default.nix index 2fb58a162e01..d30d6a173c17 100644 --- a/pkgs/development/python-modules/ua-parser-rs/default.nix +++ b/pkgs/development/python-modules/ua-parser-rs/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ua-parser"; repo = "uap-rust"; diff --git a/pkgs/development/python-modules/uasiren/default.nix b/pkgs/development/python-modules/uasiren/default.nix index 94aef05ac844..df40bc1c2805 100644 --- a/pkgs/development/python-modules/uasiren/default.nix +++ b/pkgs/development/python-modules/uasiren/default.nix @@ -20,8 +20,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "PaulAnnekov"; repo = "uasiren"; diff --git a/pkgs/development/python-modules/udatetime/default.nix b/pkgs/development/python-modules/udatetime/default.nix index ce8e20908c74..f2cb560e84f0 100644 --- a/pkgs/development/python-modules/udatetime/default.nix +++ b/pkgs/development/python-modules/udatetime/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.17"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "freach"; repo = "udatetime"; diff --git a/pkgs/development/python-modules/udsoncan/default.nix b/pkgs/development/python-modules/udsoncan/default.nix index bacb49129417..981b49275d4b 100644 --- a/pkgs/development/python-modules/udsoncan/default.nix +++ b/pkgs/development/python-modules/udsoncan/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "udsoncan"; version = "1.26.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "pylessard"; diff --git a/pkgs/development/python-modules/ueagle/default.nix b/pkgs/development/python-modules/ueagle/default.nix index 06c5f5e868d2..317a7d737499 100644 --- a/pkgs/development/python-modules/ueagle/default.nix +++ b/pkgs/development/python-modules/ueagle/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "jcalbert"; repo = "uEagle"; diff --git a/pkgs/development/python-modules/ufonormalizer/default.nix b/pkgs/development/python-modules/ufonormalizer/default.nix index cfc05699d058..235c682f2497 100644 --- a/pkgs/development/python-modules/ufonormalizer/default.nix +++ b/pkgs/development/python-modules/ufonormalizer/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.6.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-TFcVu5SDgfLGQa+CuUk4rSQtm1Nl3RxbfOPXVVaibDo="; diff --git a/pkgs/development/python-modules/uncalled-for/default.nix b/pkgs/development/python-modules/uncalled-for/default.nix index c3550b749214..10d40a83efc5 100644 --- a/pkgs/development/python-modules/uncalled-for/default.nix +++ b/pkgs/development/python-modules/uncalled-for/default.nix @@ -19,8 +19,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "chrisguidry"; repo = "uncalled-for"; diff --git a/pkgs/development/python-modules/unclecode-litellm/default.nix b/pkgs/development/python-modules/unclecode-litellm/default.nix index cdf3bb42eea9..53375668b76a 100644 --- a/pkgs/development/python-modules/unclecode-litellm/default.nix +++ b/pkgs/development/python-modules/unclecode-litellm/default.nix @@ -23,8 +23,6 @@ buildPythonPackage (finalAttrs: { version = "1.81.13"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "unclecode_litellm"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/unicode-segmentation-rs/default.nix b/pkgs/development/python-modules/unicode-segmentation-rs/default.nix index 0d87b61125a2..b1b1b6a43ddb 100644 --- a/pkgs/development/python-modules/unicode-segmentation-rs/default.nix +++ b/pkgs/development/python-modules/unicode-segmentation-rs/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "unicode-segmentation-rs"; version = "0.3.3"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "WeblateOrg"; diff --git a/pkgs/development/python-modules/unicorn/default.nix b/pkgs/development/python-modules/unicorn/default.nix index 661a9faa420c..8e27f4e29b21 100644 --- a/pkgs/development/python-modules/unicorn/default.nix +++ b/pkgs/development/python-modules/unicorn/default.nix @@ -30,7 +30,7 @@ buildPythonPackage rec { ] # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag. # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense. - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ "--plat-name" "macosx_11_0" ]; diff --git a/pkgs/development/python-modules/unidiff/default.nix b/pkgs/development/python-modules/unidiff/default.nix index 05dd37828946..e66912bc770b 100644 --- a/pkgs/development/python-modules/unidiff/default.nix +++ b/pkgs/development/python-modules/unidiff/default.nix @@ -20,9 +20,8 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonImportsCheck = [ "unidiff" ]; diff --git a/pkgs/development/python-modules/untangle/default.nix b/pkgs/development/python-modules/untangle/default.nix index 0266500dc8ea..ded5dc210a64 100644 --- a/pkgs/development/python-modules/untangle/default.nix +++ b/pkgs/development/python-modules/untangle/default.nix @@ -6,7 +6,7 @@ defusedxml, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "untangle"; version = "1.2.1"; format = "setuptools"; @@ -14,8 +14,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "stchris"; repo = "untangle"; - # 1.1.1 is not tagged on GitHub - tag = version; + tag = finalAttrs.version; hash = "sha256-cJkN8vT5hW5hRuLxr/6udwMO4GVH1pJhAc6qmPO2EEI="; }; @@ -23,9 +22,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; meta = { @@ -34,4 +32,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/update-copyright/default.nix b/pkgs/development/python-modules/update-copyright/default.nix index 32e0d88aa1eb..0f0c439712ae 100644 --- a/pkgs/development/python-modules/update-copyright/default.nix +++ b/pkgs/development/python-modules/update-copyright/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.6.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "update-copyright"; diff --git a/pkgs/development/python-modules/uproot/default.nix b/pkgs/development/python-modules/uproot/default.nix index eecf88d86f7f..a675fc5b9b85 100644 --- a/pkgs/development/python-modules/uproot/default.nix +++ b/pkgs/development/python-modules/uproot/default.nix @@ -29,7 +29,6 @@ buildPythonPackage (finalAttrs: { pname = "uproot"; version = "5.7.7"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scikit-hep"; diff --git a/pkgs/development/python-modules/usb-monitor/default.nix b/pkgs/development/python-modules/usb-monitor/default.nix index 263fae224053..dda3ae781abf 100644 --- a/pkgs/development/python-modules/usb-monitor/default.nix +++ b/pkgs/development/python-modules/usb-monitor/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.23"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) version; pname = "usb_monitor"; diff --git a/pkgs/development/python-modules/usearch/default.nix b/pkgs/development/python-modules/usearch/default.nix index a96ab35aa19a..46691817f450 100644 --- a/pkgs/development/python-modules/usearch/default.nix +++ b/pkgs/development/python-modules/usearch/default.nix @@ -19,7 +19,6 @@ buildPythonPackage { inherit (pkgs.usearch) pname version src; pyproject = true; - __structuredAttrs = true; postPatch = '' substituteInPlace python/usearch/__init__.py \ diff --git a/pkgs/development/python-modules/user-agents/default.nix b/pkgs/development/python-modules/user-agents/default.nix index 4695bdb13acc..20222ddfab10 100644 --- a/pkgs/development/python-modules/user-agents/default.nix +++ b/pkgs/development/python-modules/user-agents/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "2.2.0"; pyproject = true; - __structuredAttrs = true; - # PyPI is missing devices.json src = fetchFromGitHub { owner = "selwin"; diff --git a/pkgs/development/python-modules/utils/default.nix b/pkgs/development/python-modules/utils/default.nix index 73d8bb71b39a..1f26b8ba3412 100644 --- a/pkgs/development/python-modules/utils/default.nix +++ b/pkgs/development/python-modules/utils/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "haaksmash"; repo = "pyutils"; diff --git a/pkgs/development/python-modules/uuid-utils/default.nix b/pkgs/development/python-modules/uuid-utils/default.nix index e2e0b87c5573..94aecc091b5f 100644 --- a/pkgs/development/python-modules/uuid-utils/default.nix +++ b/pkgs/development/python-modules/uuid-utils/default.nix @@ -11,7 +11,6 @@ buildPythonPackage (finalAttrs: { pname = "uuid-utils"; version = "0.17.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "aminalaee"; diff --git a/pkgs/development/python-modules/uv-build/default.nix b/pkgs/development/python-modules/uv-build/default.nix index ef304a61afe8..be2a0d62ed01 100644 --- a/pkgs/development/python-modules/uv-build/default.nix +++ b/pkgs/development/python-modules/uv-build/default.nix @@ -7,18 +7,20 @@ buildPythonPackage, rustPlatform, callPackage, + pkg-config, + pkgsHostTarget, }: buildPythonPackage (finalAttrs: { pname = "uv-build"; - version = "0.12.5"; + version = "0.13.4"; pyproject = true; src = fetchFromGitHub { owner = "astral-sh"; repo = "uv"; tag = finalAttrs.version; - hash = "sha256-tKdqciPQnteeTqkXtWY8mliWUDv5gMdU8x0UPadQZlQ="; + hash = "sha256-US3SjwhWE3v4/i46YuBon2GA6PupC4Z0NRUqcV9CPLM="; }; # Add the missing FIEMAP ioctl constants for loongarch64 @@ -26,19 +28,24 @@ buildPythonPackage (finalAttrs: { patches = lib.optionals stdenv.hostPlatform.isLoongArch64 [ (fetchurl { name = "loongarch64-fiemap.patch"; - url = "https://github.com/lcpu-club/loongarch-packages/raw/28165d5d4f00d1dfb6194c7d4f1f37e9c2ba56b2/uv/loongarch64-fiemap.patch"; - hash = "sha256-owRf+JtH/4GKsUFB2UwKCvXhLUZJ3vI2Zeywhz4tgbE="; + url = "https://github.com/lcpu-club/loongarch-packages/raw/ebcc3b01e19f8c01eaaeae683b62ff1a3d607fff/uv/loongarch64-fiemap.patch"; + hash = "sha256-QiLw6xFlDQgTP4eTbWmuZogFnSsVZK9jX+N1ueJC5DQ="; }) ]; nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook + pkg-config + ]; + + buildInputs = [ + pkgsHostTarget.zstd ]; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-27NzA/YXYbcGO6ehXP9OgvgLJQG/YP/I+eeflLmzxRQ="; + hash = "sha256-9L47CTlkOVYfGuzE4e7e2FYAI192pAsipzzScF7B1j4="; }; buildAndTestSubdir = "crates/uv-build"; diff --git a/pkgs/development/python-modules/valhallaapi/default.nix b/pkgs/development/python-modules/valhallaapi/default.nix index 0ac99d469f2a..4161df42c67e 100644 --- a/pkgs/development/python-modules/valhallaapi/default.nix +++ b/pkgs/development/python-modules/valhallaapi/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "NextronSystems"; repo = "valhallaAPI"; diff --git a/pkgs/development/python-modules/validate-pyproject-schema-store/default.nix b/pkgs/development/python-modules/validate-pyproject-schema-store/default.nix index e604a86cc54e..070464af7b5e 100644 --- a/pkgs/development/python-modules/validate-pyproject-schema-store/default.nix +++ b/pkgs/development/python-modules/validate-pyproject-schema-store/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "2026.10.30"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "henryiii"; repo = "validate-pyproject-schema-store"; diff --git a/pkgs/development/python-modules/validate-pyproject/default.nix b/pkgs/development/python-modules/validate-pyproject/default.nix index 7965978d4014..86a286e60c75 100644 --- a/pkgs/development/python-modules/validate-pyproject/default.nix +++ b/pkgs/development/python-modules/validate-pyproject/default.nix @@ -19,8 +19,6 @@ buildPythonPackage (finalAttrs: { version = "0.27"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "abravalheri"; repo = "validate-pyproject"; diff --git a/pkgs/development/python-modules/vapoursynth/default.nix b/pkgs/development/python-modules/vapoursynth/default.nix index 8e50bba69a4d..a40c28319e93 100644 --- a/pkgs/development/python-modules/vapoursynth/default.nix +++ b/pkgs/development/python-modules/vapoursynth/default.nix @@ -18,11 +18,9 @@ buildPythonPackage { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "test" - "-p" - "'*test.py'" + unittestFlags = [ + "--start-directory=test" + "--pattern=*test.py" ]; passthru = { diff --git a/pkgs/development/python-modules/variants/default.nix b/pkgs/development/python-modules/variants/default.nix index 41c5f862636f..2e13a70f18b2 100644 --- a/pkgs/development/python-modules/variants/default.nix +++ b/pkgs/development/python-modules/variants/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "variants"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/varint/default.nix b/pkgs/development/python-modules/varint/default.nix index 30212770567a..ac1854aadc96 100644 --- a/pkgs/development/python-modules/varint/default.nix +++ b/pkgs/development/python-modules/varint/default.nix @@ -9,8 +9,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "varint"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/vcversioner/default.nix b/pkgs/development/python-modules/vcversioner/default.nix index 0917620dd968..a692f6356998 100644 --- a/pkgs/development/python-modules/vcversioner/default.nix +++ b/pkgs/development/python-modules/vcversioner/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.16.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "vcversioner"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/vdf/default.nix b/pkgs/development/python-modules/vdf/default.nix index 1d5e8f6720f5..a9248eef0ebb 100644 --- a/pkgs/development/python-modules/vdf/default.nix +++ b/pkgs/development/python-modules/vdf/default.nix @@ -14,8 +14,6 @@ buildPythonPackage (finalAttrs: { version = "3.4"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ValvePython"; repo = "vdf"; diff --git a/pkgs/development/python-modules/vector/default.nix b/pkgs/development/python-modules/vector/default.nix index 8a176a003e6f..99cecf6acb23 100644 --- a/pkgs/development/python-modules/vector/default.nix +++ b/pkgs/development/python-modules/vector/default.nix @@ -25,7 +25,6 @@ buildPythonPackage (finalAttrs: { pname = "vector"; version = "1.9.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "scikit-hep"; @@ -75,10 +74,6 @@ buildPythonPackage (finalAttrs: { "test_method_transform2D" "test_method_transform3D" "test_method_transform4D" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # AssertionError: assert 2.1073424255447017e-08 == 0.0 - "test_issue_463" ]; meta = { diff --git a/pkgs/development/python-modules/vega/default.nix b/pkgs/development/python-modules/vega/default.nix index c9b90e76c2d5..26db754f0965 100644 --- a/pkgs/development/python-modules/vega/default.nix +++ b/pkgs/development/python-modules/vega/default.nix @@ -49,6 +49,9 @@ buildPythonPackage rec { disabledTestPaths = [ # these tests are broken with jupyter-notebook >= 7 "vega/tests/test_entrypoint.py" + + # (from pandas) ValueError("Invalid frequency: H. Failed to parse with error message: KeyError('H'). Did you mean h?") + "vega/tests/test_utils.py::test_sanitize_dataframe" ]; pythonImportsCheck = [ "vega" ]; diff --git a/pkgs/development/python-modules/venstarcolortouch/default.nix b/pkgs/development/python-modules/venstarcolortouch/default.nix index 28566f03c474..0f0b1fac84d8 100644 --- a/pkgs/development/python-modules/venstarcolortouch/default.nix +++ b/pkgs/development/python-modules/venstarcolortouch/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.22"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "venstarcolortouch"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/verboselogs/default.nix b/pkgs/development/python-modules/verboselogs/default.nix index 07ce208c51c8..61adc40a2d3a 100644 --- a/pkgs/development/python-modules/verboselogs/default.nix +++ b/pkgs/development/python-modules/verboselogs/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.7"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "xolox"; repo = "python-verboselogs"; diff --git a/pkgs/development/python-modules/versiontools/default.nix b/pkgs/development/python-modules/versiontools/default.nix index 5e99a1560e6b..87fb9a364eda 100644 --- a/pkgs/development/python-modules/versiontools/default.nix +++ b/pkgs/development/python-modules/versiontools/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.9.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "versiontools"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix index fb5d18fd3b94..54c024f52ed4 100644 --- a/pkgs/development/python-modules/virtualenv/default.nix +++ b/pkgs/development/python-modules/virtualenv/default.nix @@ -18,16 +18,21 @@ buildPythonPackage rec { pname = "virtualenv"; - version = "21.6.1"; + version = "21.14.12"; pyproject = true; src = fetchFromGitHub { owner = "pypa"; repo = "virtualenv"; tag = version; - hash = "sha256-8LOmA1Mhfqbl3hsGZa8tQutjfjEVeDlpOKyVut5rDVI="; + hash = "sha256-Lkjhcs1Bj/ObaTyqVL2wGUvwxTkzL0pX8Ii5hSHdrSA="; }; + postPatch = '' + substituteInPlace tests/unit/activation/test_bash.py \ + --replace-fail '"/bin/bash"' '_BASH' + ''; + build-system = [ hatch-vcs hatchling @@ -57,6 +62,10 @@ buildPythonPackage rec { disabledTests = [ # Network access "test_seed_link_via_app_data" + # Assumes FHS paths + "test_bash_relocation_rejects_sourced_wrapper" + # chmod fails in sandbox + "test_app_data_setgid_keeps_group_write" ] ++ lib.optionals isPyPy [ # encoding problems diff --git a/pkgs/development/python-modules/vl-convert-python/default.nix b/pkgs/development/python-modules/vl-convert-python/default.nix index 3b9b13413fc4..c9379462be1e 100644 --- a/pkgs/development/python-modules/vl-convert-python/default.nix +++ b/pkgs/development/python-modules/vl-convert-python/default.nix @@ -5,6 +5,9 @@ rustPlatform, protobuf, libffi, + pkg-config, + sqlite, + zstd, callPackage, librusty_v8 ? callPackage ./librusty_v8.nix { }, nix-update-script, @@ -37,9 +40,16 @@ buildPythonPackage rec { rustPlatform.cargoSetupHook ]; - nativeBuildInputs = [ protobuf ]; + nativeBuildInputs = [ + protobuf + pkg-config + ]; - buildInputs = [ libffi ]; + buildInputs = [ + libffi + sqlite + zstd + ]; pythonImportsCheck = [ "vl_convert" ]; diff --git a/pkgs/development/python-modules/vllm-tt-plugin/default.nix b/pkgs/development/python-modules/vllm-tt-plugin/default.nix index 8aa14f457a8b..53b32f2a65c8 100644 --- a/pkgs/development/python-modules/vllm-tt-plugin/default.nix +++ b/pkgs/development/python-modules/vllm-tt-plugin/default.nix @@ -20,7 +20,6 @@ buildPythonPackage (finalAttrs: { pname = "vllm-tt-plugin"; version = "0.1.0-unstable-2026-10-09"; pyproject = true; - __structuredAttrs = true; disabled = pythonAtLeast "3.14"; diff --git a/pkgs/development/python-modules/vllm/default.nix b/pkgs/development/python-modules/vllm/default.nix index a71f3bbd46f4..bfdbb91234fb 100644 --- a/pkgs/development/python-modules/vllm/default.nix +++ b/pkgs/development/python-modules/vllm/default.nix @@ -395,7 +395,6 @@ buildPythonPackage.override { stdenv = torch.stdenv; } (finalAttrs: { pname = "vllm"; version = "0.33.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "vllm-project"; diff --git a/pkgs/development/python-modules/vncdotool/default.nix b/pkgs/development/python-modules/vncdotool/default.nix index 5bfb05292676..bd748fc8156d 100644 --- a/pkgs/development/python-modules/vncdotool/default.nix +++ b/pkgs/development/python-modules/vncdotool/default.nix @@ -15,7 +15,6 @@ buildPythonPackage rec { pname = "vncdotool"; version = "1.2.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "sibson"; diff --git a/pkgs/development/python-modules/vpk/default.nix b/pkgs/development/python-modules/vpk/default.nix index f69c9566bed5..97bf147ff9ac 100644 --- a/pkgs/development/python-modules/vpk/default.nix +++ b/pkgs/development/python-modules/vpk/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ValvePython"; repo = "vpk"; diff --git a/pkgs/development/python-modules/vsts-cd-manager/default.nix b/pkgs/development/python-modules/vsts-cd-manager/default.nix index ce6a7a665765..3e51d9fc4225 100644 --- a/pkgs/development/python-modules/vsts-cd-manager/default.nix +++ b/pkgs/development/python-modules/vsts-cd-manager/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-C7CQWc1VPhwgbpLvMkyw3PkjNIRtZGxExoT2JWuGRHs="; diff --git a/pkgs/development/python-modules/vsts/default.nix b/pkgs/development/python-modules/vsts/default.nix index 7696690c699a..59c647b1c837 100644 --- a/pkgs/development/python-modules/vsts/default.nix +++ b/pkgs/development/python-modules/vsts/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.25"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-2heRYBIfWzi+Bh2/8pzStg1dApsiBxAkVNd6cRTmT5c="; diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index f386a43ef40b..40e66962902d 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -3,24 +3,28 @@ buildPythonPackage, fetchFromGitHub, hatchling, + hypothesis, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "w3lib"; - version = "2.4.1"; + version = "2.5.0"; pyproject = true; src = fetchFromGitHub { owner = "scrapy"; repo = "w3lib"; tag = "v${finalAttrs.version}"; - hash = "sha256-RcjsuzlHx3vp0tBucCQZQTVq9FsxSpY9iLwlvoo02cE="; + hash = "sha256-FaH3NrQ1qAH3tJbIiAVeJXxiTjF7861kl3U5Ux3HrlU="; }; build-system = [ hatchling ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; pythonImportsCheck = [ "w3lib" ]; diff --git a/pkgs/development/python-modules/waqiasync/default.nix b/pkgs/development/python-modules/waqiasync/default.nix index a12987160cbf..d3c3833ffd1a 100644 --- a/pkgs/development/python-modules/waqiasync/default.nix +++ b/pkgs/development/python-modules/waqiasync/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SOs998BQV4UlLnRB3Yf7zze51u43g2Npwgk6y80S+m8="; diff --git a/pkgs/development/python-modules/warp-nn/default.nix b/pkgs/development/python-modules/warp-nn/default.nix index 55a3a7f65c7b..a7a8b4368692 100644 --- a/pkgs/development/python-modules/warp-nn/default.nix +++ b/pkgs/development/python-modules/warp-nn/default.nix @@ -21,7 +21,6 @@ buildPythonPackage (finalAttrs: { pname = "warp-nn"; version = "0.4.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "NVIDIA"; diff --git a/pkgs/development/python-modules/warrant/default.nix b/pkgs/development/python-modules/warrant/default.nix index a12173be23a4..806ba536561c 100644 --- a/pkgs/development/python-modules/warrant/default.nix +++ b/pkgs/development/python-modules/warrant/default.nix @@ -16,8 +16,6 @@ buildPythonPackage { version = "0.6.1"; pyproject = true; - __structuredAttrs = true; - # move to fetchPyPi when https://github.com/capless/warrant/issues/97 is fixed src = fetchFromGitHub { owner = "capless"; diff --git a/pkgs/development/python-modules/wasabi/default.nix b/pkgs/development/python-modules/wasabi/default.nix index 286cdf7a1ecd..4e41fce8011c 100644 --- a/pkgs/development/python-modules/wasabi/default.nix +++ b/pkgs/development/python-modules/wasabi/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-S7MAjwA4CdsMPii02vIJBuqHGiu0P5kUGX1UD08uCHg="; diff --git a/pkgs/development/python-modules/watchdog/default.nix b/pkgs/development/python-modules/watchdog/default.nix index eeecf41ef2da..a377a676a93a 100644 --- a/pkgs/development/python-modules/watchdog/default.nix +++ b/pkgs/development/python-modules/watchdog/default.nix @@ -47,22 +47,9 @@ buildPythonPackage rec { ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ # segfaults the testsuite "tests/test_emitter.py" - # unsupported on x86_64-darwin "tests/test_fsevents.py" # fails to stop process in teardown "tests/test_0_watchmedo.py::test_auto_restart_subprocess_termination" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # FileCreationEvent != FileDeletionEvent - "tests/test_emitter.py::test_separate_consecutive_moves" - "tests/test_observers_polling.py::test___init__" - # segfaults - "tests/test_delayed_queue.py::test_delayed_get" - "tests/test_emitter.py::test_delete" - # AttributeError: '_thread.RLock' object has no attribute 'key'" - "tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ # segfaults "tests/test_delayed_queue.py::test_delayed_get" "tests/test_0_watchmedo.py::test_tricks_from_file" diff --git a/pkgs/development/python-modules/watchfiles/default.nix b/pkgs/development/python-modules/watchfiles/default.nix index b48753ee4de9..ecc132689c9d 100644 --- a/pkgs/development/python-modules/watchfiles/default.nix +++ b/pkgs/development/python-modules/watchfiles/default.nix @@ -13,19 +13,19 @@ buildPythonPackage (finalAttrs: { pname = "watchfiles"; - version = "1.2.0"; + version = "1.3.0"; pyproject = true; src = fetchFromGitHub { owner = "samuelcolvin"; repo = "watchfiles"; tag = "v${finalAttrs.version}"; - hash = "sha256-gfH/8o3WsGL4Qki5kRrWpQLyk85HgTtR6iImInPYthg="; + hash = "sha256-PR1tog0O2AeTyWUILSty+Ja/gNsT09TGPQ+r/3DEp7w="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname src version; - hash = "sha256-GFGhEXW0M23G0NB4Bu1FXV9Bmdt9weznHHSD/6rBSjI="; + hash = "sha256-O+bogdo5OjeCb2YBc96uC+i0zrmzm/0YVxaRf70/eUk="; }; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/wavedrom/default.nix b/pkgs/development/python-modules/wavedrom/default.nix index 965ea7fcdae1..fac69a98ba5c 100644 --- a/pkgs/development/python-modules/wavedrom/default.nix +++ b/pkgs/development/python-modules/wavedrom/default.nix @@ -19,8 +19,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.3.post3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-MntNXcpZPIElfCAv6lFvepCHR/sRUnw1nwNPW3r39Hs="; diff --git a/pkgs/development/python-modules/waybackpy/default.nix b/pkgs/development/python-modules/waybackpy/default.nix index f95c25cf6976..c505e8dd26fe 100644 --- a/pkgs/development/python-modules/waybackpy/default.nix +++ b/pkgs/development/python-modules/waybackpy/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "3.0.6"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-SXo3F1arp2ROt62g69TtsVy4xTvBNMyXO/AjoSyv+D8="; diff --git a/pkgs/development/python-modules/wcag-contrast-ratio/default.nix b/pkgs/development/python-modules/wcag-contrast-ratio/default.nix index 5a41c559a17b..5b6cddf24c17 100644 --- a/pkgs/development/python-modules/wcag-contrast-ratio/default.nix +++ b/pkgs/development/python-modules/wcag-contrast-ratio/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.9"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw="; diff --git a/pkgs/development/python-modules/wcwidth/default.nix b/pkgs/development/python-modules/wcwidth/default.nix index 76dd49c249f0..43495f152482 100644 --- a/pkgs/development/python-modules/wcwidth/default.nix +++ b/pkgs/development/python-modules/wcwidth/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "wcwidth"; version = "0.9.2"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "jquast"; diff --git a/pkgs/development/python-modules/web-cache/default.nix b/pkgs/development/python-modules/web-cache/default.nix index aaa4ec066e94..e3202f75a033 100644 --- a/pkgs/development/python-modules/web-cache/default.nix +++ b/pkgs/development/python-modules/web-cache/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.0"; pyproject = true; - __structuredAttrs = true; - disabled = !isPy3k; src = fetchPypi { diff --git a/pkgs/development/python-modules/webauthn/default.nix b/pkgs/development/python-modules/webauthn/default.nix index 39db5447c2bf..b270b017495a 100644 --- a/pkgs/development/python-modules/webauthn/default.nix +++ b/pkgs/development/python-modules/webauthn/default.nix @@ -15,7 +15,6 @@ buildPythonPackage (finalAttrs: { pname = "webauthn"; version = "3.0.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "duo-labs"; diff --git a/pkgs/development/python-modules/weblate-fonts/default.nix b/pkgs/development/python-modules/weblate-fonts/default.nix index e75d360f74bf..16ebaa69bdbc 100644 --- a/pkgs/development/python-modules/weblate-fonts/default.nix +++ b/pkgs/development/python-modules/weblate-fonts/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { pname = "weblate-fonts"; version = "2026.1"; pyproject = true; - __structuredAttrs = true; # nixpkgs-update: no auto update # Only weblate uses this and we want to follow its version constraints diff --git a/pkgs/development/python-modules/weblate-language-data/default.nix b/pkgs/development/python-modules/weblate-language-data/default.nix index b79b5c911708..724c41ff5a6d 100644 --- a/pkgs/development/python-modules/weblate-language-data/default.nix +++ b/pkgs/development/python-modules/weblate-language-data/default.nix @@ -10,7 +10,6 @@ buildPythonPackage (finalAttrs: { pname = "weblate-language-data"; version = "2026.10"; pyproject = true; - __structuredAttrs = true; # nixpkgs-update: no auto update # Only weblate uses this and we want to follow its version constraints diff --git a/pkgs/development/python-modules/weblate-schemas/default.nix b/pkgs/development/python-modules/weblate-schemas/default.nix index a4ad91ae5197..b0bf93278078 100644 --- a/pkgs/development/python-modules/weblate-schemas/default.nix +++ b/pkgs/development/python-modules/weblate-schemas/default.nix @@ -14,7 +14,6 @@ buildPythonPackage (finalAttrs: { version = "2026.8"; pyproject = true; - __structuredAttrs = true; # nixpkgs-update: no auto update # Only weblate uses this and we want to follow its version constraints diff --git a/pkgs/development/python-modules/webrtcvad/default.nix b/pkgs/development/python-modules/webrtcvad/default.nix index ae2995c95293..ab272e883343 100644 --- a/pkgs/development/python-modules/webrtcvad/default.nix +++ b/pkgs/development/python-modules/webrtcvad/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.10"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-8b7S+yW2P7expV1kCQyZPJyRZ7KEha4Lzdgc9u3pauo="; diff --git a/pkgs/development/python-modules/websockify/default.nix b/pkgs/development/python-modules/websockify/default.nix index b515b59bf899..aa59bd8888b4 100644 --- a/pkgs/development/python-modules/websockify/default.nix +++ b/pkgs/development/python-modules/websockify/default.nix @@ -18,8 +18,6 @@ buildPythonPackage (finalAttrs: { version = "0.13.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "novnc"; repo = "websockify"; diff --git a/pkgs/development/python-modules/webthing-ws/default.nix b/pkgs/development/python-modules/webthing-ws/default.nix index 10195eefd35a..f1a98367156c 100644 --- a/pkgs/development/python-modules/webthing-ws/default.nix +++ b/pkgs/development/python-modules/webthing-ws/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "home-assistant-ecosystem"; repo = "webthing-ws"; diff --git a/pkgs/development/python-modules/webthing/default.nix b/pkgs/development/python-modules/webthing/default.nix index 0a1198dd81f1..0bdaf4aca53c 100644 --- a/pkgs/development/python-modules/webthing/default.nix +++ b/pkgs/development/python-modules/webthing/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.15.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "WebThingsIO"; repo = "webthing-python"; diff --git a/pkgs/development/python-modules/wheezy-captcha/default.nix b/pkgs/development/python-modules/wheezy-captcha/default.nix index 0132bd07a011..10b4782a0615 100644 --- a/pkgs/development/python-modules/wheezy-captcha/default.nix +++ b/pkgs/development/python-modules/wheezy-captcha/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-UtTpgrPK5eRr7sq97jptjdJyvAyrM2oU07+GZr2Ad7s="; diff --git a/pkgs/development/python-modules/wiffi/default.nix b/pkgs/development/python-modules/wiffi/default.nix index 5fd196c50944..22758f808daf 100644 --- a/pkgs/development/python-modules/wiffi/default.nix +++ b/pkgs/development/python-modules/wiffi/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.1.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "mampfes"; repo = "python-wiffi"; diff --git a/pkgs/development/python-modules/wikipedia/default.nix b/pkgs/development/python-modules/wikipedia/default.nix index 704f927f5c1d..ecf7cbffd12f 100644 --- a/pkgs/development/python-modules/wikipedia/default.nix +++ b/pkgs/development/python-modules/wikipedia/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "1.4.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-2w+tGCn91EGxhSMG6YVjmCBNwHhtKZbdLgyLuOJhM7I="; @@ -29,7 +27,10 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "tests/ '*test.py'" ]; + unittestFlags = [ + "--start-directory=tests" + "--pattern=*test.py" + ]; pythonImportsCheck = [ "wikipedia" ]; diff --git a/pkgs/development/python-modules/winsspi/default.nix b/pkgs/development/python-modules/winsspi/default.nix index baae8550e97e..d9dbf29ecebd 100644 --- a/pkgs/development/python-modules/winsspi/default.nix +++ b/pkgs/development/python-modules/winsspi/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.11"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-AXC6SJ+iWPGqTmdgoWKEbD8tDUUcg2aD609hO2bdQfM="; diff --git a/pkgs/development/python-modules/woodblock/default.nix b/pkgs/development/python-modules/woodblock/default.nix index 3046ca43ea2c..b71045afea7c 100644 --- a/pkgs/development/python-modules/woodblock/default.nix +++ b/pkgs/development/python-modules/woodblock/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.7"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-wDR+zpILcAnZRVGYOgH0LbApIMqNew/zbSSjN+LJN/c="; diff --git a/pkgs/development/python-modules/wsgiprox/default.nix b/pkgs/development/python-modules/wsgiprox/default.nix index f19e06dd3833..d7cdde6fb600 100644 --- a/pkgs/development/python-modules/wsgiprox/default.nix +++ b/pkgs/development/python-modules/wsgiprox/default.nix @@ -12,8 +12,6 @@ buildPythonPackage { version = "1.5.2"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "webrecorder"; repo = "wsgiprox"; diff --git a/pkgs/development/python-modules/wunsen/default.nix b/pkgs/development/python-modules/wunsen/default.nix index eae2eb9ea348..9f28385549d9 100644 --- a/pkgs/development/python-modules/wunsen/default.nix +++ b/pkgs/development/python-modules/wunsen/default.nix @@ -10,7 +10,7 @@ khanaa, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "wunsen"; version = "0.0.3"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "cakimpei"; repo = "wunsen"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-lMEhtcWG+S3vAz+Y/qDxhaZslsO0pbs5xUn5QgZNs2U="; }; @@ -28,9 +28,8 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "-s" - "tests" + unittestFlags = [ + "--start-directory=tests" ]; pythonImportsCheck = [ "wunsen" ]; @@ -38,8 +37,8 @@ buildPythonPackage rec { meta = { description = "Transliterate/transcribe other languages into Thai Topics"; homepage = "https://github.com/cakimpei/wunsen"; - changelog = "https://github.com/cakimpei/wunsen/releases/tag/v${version}"; + changelog = "https://github.com/cakimpei/wunsen/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ vizid ]; }; -} +}) diff --git a/pkgs/development/python-modules/wurlitzer/default.nix b/pkgs/development/python-modules/wurlitzer/default.nix index c604d6b73ed5..1a1c6c3d77ab 100644 --- a/pkgs/development/python-modules/wurlitzer/default.nix +++ b/pkgs/development/python-modules/wurlitzer/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "3.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-v7kUSrnwJIfYArn/idvT+jgtCPc+EtuK3EwvsAzTm9k="; diff --git a/pkgs/development/python-modules/x256/default.nix b/pkgs/development/python-modules/x256/default.nix index d055ee8a96f7..bad51ab1cb1f 100644 --- a/pkgs/development/python-modules/x256/default.nix +++ b/pkgs/development/python-modules/x256/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-+FXbzNkeU/WJAoPYIDhVdDgn5+7VldXPGVRLo9IS4AE="; diff --git a/pkgs/development/python-modules/xarray/default.nix b/pkgs/development/python-modules/xarray/default.nix index bb4ffd542d8d..38b494325cd2 100644 --- a/pkgs/development/python-modules/xarray/default.nix +++ b/pkgs/development/python-modules/xarray/default.nix @@ -42,7 +42,6 @@ buildPythonPackage (finalAttrs: { version = "2026.07.0"; pyproject = true; # Needed mainly for pytestFlags with spaces - __structuredAttrs = true; src = fetchFromGitHub { owner = "pydata"; diff --git a/pkgs/development/python-modules/xformers/default.nix b/pkgs/development/python-modules/xformers/default.nix index 3a69a6f27349..bb2b4be3d9e7 100644 --- a/pkgs/development/python-modules/xformers/default.nix +++ b/pkgs/development/python-modules/xformers/default.nix @@ -43,7 +43,6 @@ buildPythonPackage.override { stdenv = effectiveStdenv; } (finalAttrs: { pname = "xformers"; version = "0.0.35"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "facebookresearch"; diff --git a/pkgs/development/python-modules/xgrammar/default.nix b/pkgs/development/python-modules/xgrammar/default.nix index 2eaea4b1a062..e0a9f6a924e9 100644 --- a/pkgs/development/python-modules/xgrammar/default.nix +++ b/pkgs/development/python-modules/xgrammar/default.nix @@ -30,7 +30,6 @@ buildPythonPackage (finalAttrs: { pname = "xgrammar"; version = "0.2.8"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "mlc-ai"; @@ -61,7 +60,7 @@ buildPythonPackage (finalAttrs: { ]; optional-dependencies = { - metal = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ + metal = lib.optionals stdenv.hostPlatform.isDarwin [ mlx-lm ]; }; diff --git a/pkgs/development/python-modules/xkbcommon/default.nix b/pkgs/development/python-modules/xkbcommon/default.nix index 45f3a723ac39..9573865d5bab 100644 --- a/pkgs/development/python-modules/xkbcommon/default.nix +++ b/pkgs/development/python-modules/xkbcommon/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "1.5.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-rBdICNv2HTXZ2oBL8zuqx0vG8r4MEIWUrpPHnNFd3DY="; diff --git a/pkgs/development/python-modules/xlrd/default.nix b/pkgs/development/python-modules/xlrd/default.nix index 5c68872e28d2..6d35dec69063 100644 --- a/pkgs/development/python-modules/xlrd/default.nix +++ b/pkgs/development/python-modules/xlrd/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "2.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-CLXiXeWPIc5x3H2zs7gQbB+ndvMCTFTkW0WzdOiSNMk="; diff --git a/pkgs/development/python-modules/xmind/default.nix b/pkgs/development/python-modules/xmind/default.nix index 8580615cbca2..d66f80ab4e03 100644 --- a/pkgs/development/python-modules/xmind/default.nix +++ b/pkgs/development/python-modules/xmind/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.2.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "zhuifengshen"; repo = "xmind"; diff --git a/pkgs/development/python-modules/xml-marshaller/default.nix b/pkgs/development/python-modules/xml-marshaller/default.nix index d1e069e63c8f..3e2ff3cd5f14 100644 --- a/pkgs/development/python-modules/xml-marshaller/default.nix +++ b/pkgs/development/python-modules/xml-marshaller/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "xml_marshaller"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xmljson/default.nix b/pkgs/development/python-modules/xmljson/default.nix index bd7f8e4b7af9..e00323dc23df 100644 --- a/pkgs/development/python-modules/xmljson/default.nix +++ b/pkgs/development/python-modules/xmljson/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.2.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-tBWOZqoeYu459/gOsv5PdnZwujwNXemARCDcU0J/3sg="; diff --git a/pkgs/development/python-modules/xmlsec/default.nix b/pkgs/development/python-modules/xmlsec/default.nix index ab677396f6df..b2d1367f8ba8 100644 --- a/pkgs/development/python-modules/xmlsec/default.nix +++ b/pkgs/development/python-modules/xmlsec/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, @@ -87,11 +86,6 @@ buildPythonPackage (finalAttrs: { "tests/test_doc_examples.py" ]; - disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # AssertionError: memory leak detected - "test_reinitialize_module" - ]; - pythonImportsCheck = [ "xmlsec" ]; meta = { diff --git a/pkgs/development/python-modules/xmodem/default.nix b/pkgs/development/python-modules/xmodem/default.nix index 1a9115e52ae4..a20e38ec53ba 100644 --- a/pkgs/development/python-modules/xmodem/default.nix +++ b/pkgs/development/python-modules/xmodem/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.7"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "tehmaze"; repo = "xmodem"; diff --git a/pkgs/development/python-modules/xpybutil/default.nix b/pkgs/development/python-modules/xpybutil/default.nix index f8c696f41781..e08f4b865423 100644 --- a/pkgs/development/python-modules/xpybutil/default.nix +++ b/pkgs/development/python-modules/xpybutil/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.0.6"; pyproject = true; - __structuredAttrs = true; - # Pypi only offers a wheel src = fetchFromGitHub { owner = "BurntSushi"; diff --git a/pkgs/development/python-modules/xstatic-asciinema-player/default.nix b/pkgs/development/python-modules/xstatic-asciinema-player/default.nix index 22858af4a33f..309a4ef1c4e8 100644 --- a/pkgs/development/python-modules/xstatic-asciinema-player/default.nix +++ b/pkgs/development/python-modules/xstatic-asciinema-player/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.6.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "XStatic-asciinema-player"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xstatic-bootbox/default.nix b/pkgs/development/python-modules/xstatic-bootbox/default.nix index 947cf2318760..234b2d97ed89 100644 --- a/pkgs/development/python-modules/xstatic-bootbox/default.nix +++ b/pkgs/development/python-modules/xstatic-bootbox/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "5.5.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "XStatic-Bootbox"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xstatic-bootstrap/default.nix b/pkgs/development/python-modules/xstatic-bootstrap/default.nix index e06f095ceb55..edf23a49b4f9 100644 --- a/pkgs/development/python-modules/xstatic-bootstrap/default.nix +++ b/pkgs/development/python-modules/xstatic-bootstrap/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "5.3.8.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "xstatic_bootstrap"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix index 48e76531d3c5..980e6a477105 100644 --- a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "10.32.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "XStatic-jQuery-File-Upload"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xstatic-jquery-ui/default.nix b/pkgs/development/python-modules/xstatic-jquery-ui/default.nix index a5788bf13228..2e2808c88eb9 100644 --- a/pkgs/development/python-modules/xstatic-jquery-ui/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery-ui/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.13.0.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "XStatic-jquery-ui"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xstatic-jquery/default.nix b/pkgs/development/python-modules/xstatic-jquery/default.nix index 2a6e9f980165..42db8b381a33 100644 --- a/pkgs/development/python-modules/xstatic-jquery/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "3.5.1.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "XStatic-jQuery"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xstatic-pygments/default.nix b/pkgs/development/python-modules/xstatic-pygments/default.nix index ef85fa3476a0..dd82f23f460e 100644 --- a/pkgs/development/python-modules/xstatic-pygments/default.nix +++ b/pkgs/development/python-modules/xstatic-pygments/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "2.9.0.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "XStatic-Pygments"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/xstatic/default.nix b/pkgs/development/python-modules/xstatic/default.nix index 16726e48976a..ceed9dbab63c 100644 --- a/pkgs/development/python-modules/xstatic/default.nix +++ b/pkgs/development/python-modules/xstatic/default.nix @@ -10,8 +10,6 @@ buildPythonPackage (finalAttrs: { version = "1.0.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { pname = "XStatic"; inherit (finalAttrs) version; diff --git a/pkgs/development/python-modules/yacs/default.nix b/pkgs/development/python-modules/yacs/default.nix index 83ffef5b51b4..31ef541bc98b 100644 --- a/pkgs/development/python-modules/yacs/default.nix +++ b/pkgs/development/python-modules/yacs/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.1.8"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "rbgirshick"; repo = "yacs"; diff --git a/pkgs/development/python-modules/yamlordereddictloader/default.nix b/pkgs/development/python-modules/yamlordereddictloader/default.nix index c2158ff92a70..3a243a5864f1 100644 --- a/pkgs/development/python-modules/yamlordereddictloader/default.nix +++ b/pkgs/development/python-modules/yamlordereddictloader/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.4.2"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-Nq8vYhD8/12k/EwS4dgV+XPc60EETnleHwYRXWNLyhM="; diff --git a/pkgs/development/python-modules/yargy/default.nix b/pkgs/development/python-modules/yargy/default.nix index e1dd6454c44a..8950f3f36dca 100644 --- a/pkgs/development/python-modules/yargy/default.nix +++ b/pkgs/development/python-modules/yargy/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "0.16.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-yRfu+zKkDCPEa2yojWiScHLdAKuU6Q/V3GqwpitZtZM="; diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index b2e5642a9cc6..784a7e2c9148 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -18,14 +18,14 @@ buildPythonPackage (finalAttrs: { pname = "yarl"; - version = "1.24.5"; + version = "1.25.1"; pyproject = true; src = fetchFromGitHub { owner = "aio-libs"; repo = "yarl"; tag = "v${finalAttrs.version}"; - hash = "sha256-2Uqn1TwfH375CBIveEpsco4dDNrhxHwX8wIP8dKhh/M="; + hash = "sha256-cQsVglP3OqaQW95OYPlbWCFTs5p6L5wOzx7QCIqqJ9U="; }; build-system = [ diff --git a/pkgs/development/python-modules/yaswfp/default.nix b/pkgs/development/python-modules/yaswfp/default.nix index 6d0b1f447c34..f1768dcd9d9c 100644 --- a/pkgs/development/python-modules/yaswfp/default.nix +++ b/pkgs/development/python-modules/yaswfp/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "0.9.3-unstable-2014-09-11"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "facundobatista"; repo = "yaswfp"; diff --git a/pkgs/development/python-modules/yattag/default.nix b/pkgs/development/python-modules/yattag/default.nix index 9fd35f7f47af..b163f47fbcfc 100644 --- a/pkgs/development/python-modules/yattag/default.nix +++ b/pkgs/development/python-modules/yattag/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.16.1"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-uqjyVOfqXT4GGCga0v9WEODlNgs2COaVwpv7OynQUfQ="; diff --git a/pkgs/development/python-modules/ydiff/default.nix b/pkgs/development/python-modules/ydiff/default.nix index d778a8a9804d..8fa8708fbba1 100644 --- a/pkgs/development/python-modules/ydiff/default.nix +++ b/pkgs/development/python-modules/ydiff/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "1.5"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "ymattw"; repo = "ydiff"; diff --git a/pkgs/development/python-modules/yoyo-migrations/default.nix b/pkgs/development/python-modules/yoyo-migrations/default.nix index f071b8395218..41dfa57530f1 100644 --- a/pkgs/development/python-modules/yoyo-migrations/default.nix +++ b/pkgs/development/python-modules/yoyo-migrations/default.nix @@ -13,8 +13,6 @@ buildPythonPackage (finalAttrs: { version = "9.0.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromSourcehut { owner = "~olly"; repo = "yoyo"; diff --git a/pkgs/development/python-modules/yubico-client/default.nix b/pkgs/development/python-modules/yubico-client/default.nix index f237e955cf9e..90e23056b28b 100644 --- a/pkgs/development/python-modules/yubico-client/default.nix +++ b/pkgs/development/python-modules/yubico-client/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "1.13.0"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-47hs0qEjEF7frK1AVRx7JunBGT2B/+Fo7nBOv9PREWI="; diff --git a/pkgs/development/python-modules/yubico/default.nix b/pkgs/development/python-modules/yubico/default.nix index 9d2ff41859aa..6bc220f7980c 100644 --- a/pkgs/development/python-modules/yubico/default.nix +++ b/pkgs/development/python-modules/yubico/default.nix @@ -12,8 +12,6 @@ buildPythonPackage (finalAttrs: { version = "1.3.3"; pyproject = true; - __structuredAttrs = true; - src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-2EZkJ6pZIqxdS36cZbaTEIQnz1N9ZT1oyyEsBxPo5vU="; diff --git a/pkgs/development/python-modules/zaproxy/default.nix b/pkgs/development/python-modules/zaproxy/default.nix index 9765b308c3ee..d6fad94a1788 100644 --- a/pkgs/development/python-modules/zaproxy/default.nix +++ b/pkgs/development/python-modules/zaproxy/default.nix @@ -16,8 +16,6 @@ buildPythonPackage (finalAttrs: { version = "0.6.0"; pyproject = true; - __structuredAttrs = true; - src = fetchFromGitHub { owner = "zaproxy"; repo = "zap-api-python"; diff --git a/pkgs/development/python-modules/zdaemon/default.nix b/pkgs/development/python-modules/zdaemon/default.nix index 0fbf5b4607ff..91c03c76d548 100644 --- a/pkgs/development/python-modules/zdaemon/default.nix +++ b/pkgs/development/python-modules/zdaemon/default.nix @@ -9,13 +9,14 @@ zope-testing, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zdaemon"; version = "5.2.1"; pyproject = true; src = fetchPypi { - inherit pname version; + pname = "zdaemon"; + inherit (finalAttrs) version; hash = "sha256-8GwsfK9RnHYINPj+JuVzWVDVAX9y1cII3IsZABQFlM0="; }; @@ -35,15 +36,15 @@ buildPythonPackage rec { zope-testing ]; - unittestFlagsArray = [ "src/zdaemon/tests" ]; + unittestFlags = [ "--start-directory=src/zdaemon/tests" ]; meta = { description = "Daemon process control library and tools for Unix-based systems"; mainProgram = "zdaemon"; homepage = "https://github.com/zopefoundation/zdaemon"; - changelog = "https://github.com/zopefoundation/zdaemon/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zdaemon/blob/${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; broken = true; }; -} +}) diff --git a/pkgs/development/python-modules/zigpy-cc/default.nix b/pkgs/development/python-modules/zigpy-cc/default.nix index 36b41b0e6ff8..cfc56c282329 100644 --- a/pkgs/development/python-modules/zigpy-cc/default.nix +++ b/pkgs/development/python-modules/zigpy-cc/default.nix @@ -15,8 +15,6 @@ buildPythonPackage (finalAttrs: { version = "0.5.2"; pyproject = true; - __structuredAttrs = true; - # https://github.com/Martiusweb/asynctest/issues/152 # broken by upstream python bug with asynctest and # is used exclusively by home-assistant with python 3.8 diff --git a/pkgs/development/python-modules/zigpy-ziggurat/default.nix b/pkgs/development/python-modules/zigpy-ziggurat/default.nix index e9ba18410df2..e66a2938f4e3 100644 --- a/pkgs/development/python-modules/zigpy-ziggurat/default.nix +++ b/pkgs/development/python-modules/zigpy-ziggurat/default.nix @@ -16,7 +16,6 @@ buildPythonPackage (finalAttrs: { pname = "zigpy-ziggurat"; version = "1.1.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "zigpy"; diff --git a/pkgs/development/python-modules/zope-component/default.nix b/pkgs/development/python-modules/zope-component/default.nix index 4db532448b8c..4cb4ec58b96f 100644 --- a/pkgs/development/python-modules/zope-component/default.nix +++ b/pkgs/development/python-modules/zope-component/default.nix @@ -15,7 +15,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-component"; version = "7.0"; pyproject = true; @@ -23,7 +23,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.component"; - tag = version; + tag = finalAttrs.version; hash = "sha256-3Hl2sm2M0we+fpdt4GSjAStLSAJ1c4Za1vfm9Bj8z8s="; }; @@ -61,7 +61,7 @@ buildPythonPackage rec { zope-configuration ]; - unittestFlagsArray = [ "src/zope/component/tests" ]; + unittestFlags = [ "--start-directory=src/zope/component/tests" ]; # AssertionError: 'test_interface.IFoo' != 'zope.component.tests.test_interface.IFoo' preCheck = '' @@ -73,8 +73,8 @@ buildPythonPackage rec { meta = { homepage = "https://github.com/zopefoundation/zope.component"; description = "Zope Component Architecture"; - changelog = "https://github.com/zopefoundation/zope.component/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.component/blob/${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-configuration/default.nix b/pkgs/development/python-modules/zope-configuration/default.nix index fad73639a875..1eccbee32229 100644 --- a/pkgs/development/python-modules/zope-configuration/default.nix +++ b/pkgs/development/python-modules/zope-configuration/default.nix @@ -10,7 +10,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-configuration"; version = "7.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.configuration"; - tag = version; + tag = finalAttrs.version; hash = "sha256-G87VAEqMxF5Y3LuDJnDcOox5+ngJuRhUGSj9K8c3mYY="; }; @@ -43,15 +43,15 @@ buildPythonPackage rec { cd $out/${python.sitePackages}/zope/ ''; - unittestFlagsArray = [ "configuration/tests" ]; + unittestFlags = [ "--start-directory=configuration/tests" ]; pythonNamespaces = [ "zope" ]; meta = { description = "Zope Configuration Markup Language (ZCML)"; homepage = "https://github.com/zopefoundation/zope.configuration"; - changelog = "https://github.com/zopefoundation/zope.configuration/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.configuration/blob/${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-copy/default.nix b/pkgs/development/python-modules/zope-copy/default.nix index 453542bbec60..1a3a065f78b4 100644 --- a/pkgs/development/python-modules/zope-copy/default.nix +++ b/pkgs/development/python-modules/zope-copy/default.nix @@ -10,7 +10,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-copy"; version = "6.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.copy"; - tag = version; + tag = finalAttrs.version; hash = "sha256-hYeLUSwAq5rK4TRngvNQGR4Fdimb2k5dHtFdptMVqPo="; }; @@ -42,9 +42,8 @@ buildPythonPackage rec { zope-schema ]; - unittestFlagsArray = [ - "-s" - "src/zope/copy" + unittestFlags = [ + "--start-directory=src/zope/copy" ]; pythonNamespaces = [ "zope" ]; @@ -52,8 +51,8 @@ buildPythonPackage rec { meta = { description = "Pluggable object copying mechanism"; homepage = "https://github.com/zopefoundation/zope.copy"; - changelog = "https://github.com/zopefoundation/zope.copy/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.copy/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-deferredimport/default.nix b/pkgs/development/python-modules/zope-deferredimport/default.nix index 0fbd5e147763..aa79f9aa3ab3 100644 --- a/pkgs/development/python-modules/zope-deferredimport/default.nix +++ b/pkgs/development/python-modules/zope-deferredimport/default.nix @@ -7,7 +7,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-deferredimport"; version = "6.0"; pyproject = true; @@ -15,7 +15,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.deferredimport"; - tag = version; + tag = finalAttrs.version; hash = "sha256-7Q8+Cew5987+CjUOxqpwMFXWdw+/B28tOEXRYC0SRyI="; }; @@ -32,14 +32,14 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "src/zope/deferredimport" ]; + unittestFlags = [ "--start-directory=src/zope/deferredimport" ]; pythonNamespaces = [ "zope" ]; meta = { description = "Allows you to perform imports names that will only be resolved when used in the code"; homepage = "https://github.com/zopefoundation/zope.deferredimport"; - changelog = "https://github.com/zopefoundation/zope.deferredimport/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.deferredimport/blob/${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.zpl21; }; -} +}) diff --git a/pkgs/development/python-modules/zope-filerepresentation/default.nix b/pkgs/development/python-modules/zope-filerepresentation/default.nix index 72757227cd69..88341ba89dc7 100644 --- a/pkgs/development/python-modules/zope-filerepresentation/default.nix +++ b/pkgs/development/python-modules/zope-filerepresentation/default.nix @@ -8,7 +8,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-filerepresentation"; version = "7.0"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.filerepresentation"; - tag = version; + tag = finalAttrs.version; hash = "sha256-VWi00b7m+aKwkg/Gfzo5fJWMqdMqgowBpkqsYcEO2gY="; }; @@ -36,15 +36,15 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "src/zope/filerepresentation" ]; + unittestFlags = [ "--start-directory=src/zope/filerepresentation" ]; pythonNamespaces = [ "zope" ]; meta = { homepage = "https://github.com/zopefoundation/zope.filerepresentation"; description = "File-system Representation Interfaces"; - changelog = "https://github.com/zopefoundation/zope.filerepresentation/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.filerepresentation/blob/${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-hookable/default.nix b/pkgs/development/python-modules/zope-hookable/default.nix index 1f72a9914162..10fa08eeb496 100644 --- a/pkgs/development/python-modules/zope-hookable/default.nix +++ b/pkgs/development/python-modules/zope-hookable/default.nix @@ -6,7 +6,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-hookable"; version = "8.2"; pyproject = true; @@ -14,7 +14,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.hookable"; - tag = version; + tag = finalAttrs.version; hash = "sha256-pryx55dzvg+6jSUj4avskTnGKe6w1HkEh6v6OOlHIXY="; }; @@ -24,14 +24,14 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "src/zope/hookable/tests" ]; + unittestFlags = [ "--start-directory=src/zope/hookable/tests" ]; pythonNamespaces = [ "zope" ]; meta = { description = "Supports the efficient creation of “hookable” objects"; homepage = "https://github.com/zopefoundation/zope.hookable"; - changelog = "https://github.com/zopefoundation/zope.hookable/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.hookable/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; }; -} +}) diff --git a/pkgs/development/python-modules/zope-i18nmessageid/default.nix b/pkgs/development/python-modules/zope-i18nmessageid/default.nix index 0d25f8b20f37..89daa7c1fb8d 100644 --- a/pkgs/development/python-modules/zope-i18nmessageid/default.nix +++ b/pkgs/development/python-modules/zope-i18nmessageid/default.nix @@ -7,7 +7,7 @@ zope-interface, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-i18nmessageid"; version = "8.2"; pyproject = true; @@ -15,7 +15,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.i18nmessageid"; - tag = version; + tag = finalAttrs.version; hash = "sha256-JDCbk7zh+9Ic5T3Pt1apQDN1Q59cLUdk5KCAIu5mlC4="; }; @@ -29,7 +29,7 @@ buildPythonPackage rec { unittestCheckHook ]; - unittestFlagsArray = [ "src/zope/i18nmessageid" ]; + unittestFlags = [ "--start-directory=src/zope/i18nmessageid" ]; pythonImportsCheck = [ "zope.i18nmessageid" ]; @@ -38,8 +38,8 @@ buildPythonPackage rec { meta = { homepage = "https://github.com/zopefoundation/zope.i18nmessageid"; description = "Message Identifiers for internationalization"; - changelog = "https://github.com/zopefoundation/zope.i18nmessageid/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.i18nmessageid/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-lifecycleevent/default.nix b/pkgs/development/python-modules/zope-lifecycleevent/default.nix index 10e880d4a1fe..a9372a93bf62 100644 --- a/pkgs/development/python-modules/zope-lifecycleevent/default.nix +++ b/pkgs/development/python-modules/zope-lifecycleevent/default.nix @@ -10,7 +10,7 @@ zope-testing, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-lifecycleevent"; version = "6.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.lifecycleevent"; - tag = version; + tag = finalAttrs.version; hash = "sha256-HgxOUseRYc+mkwESUDqauoH2D2E4PL8XxM1C0FC35w8="; }; @@ -45,15 +45,15 @@ buildPythonPackage rec { zope-testing ]; - unittestFlagsArray = [ "src/zope/lifecycleevent" ]; + unittestFlags = [ "--start-directory=src/zope/lifecycleevent" ]; pythonNamespaces = [ "zope" ]; meta = { homepage = "https://github.com/zopefoundation/zope.lifecycleevent"; description = "Object life-cycle events"; - changelog = "https://github.com/zopefoundation/zope.lifecycleevent/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.lifecycleevent/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-location/default.nix b/pkgs/development/python-modules/zope-location/default.nix index c4d05a2e06ce..394f5a1388bd 100644 --- a/pkgs/development/python-modules/zope-location/default.nix +++ b/pkgs/development/python-modules/zope-location/default.nix @@ -12,7 +12,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-location"; version = "6.0"; pyproject = true; @@ -20,7 +20,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.location"; - tag = version; + tag = finalAttrs.version; hash = "sha256-s7HZda+U87P62elX/KbDp2o9zAplgFVmnedDI/uq2sk="; }; @@ -47,15 +47,15 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "src/zope/location/tests" ]; + unittestFlags = [ "--start-directory=src/zope/location/tests" ]; pythonNamespaces = [ "zope" ]; meta = { homepage = "https://github.com/zopefoundation/zope.location/"; description = "Zope Location"; - changelog = "https://github.com/zopefoundation/zope.location/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.location/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-schema/default.nix b/pkgs/development/python-modules/zope-schema/default.nix index f6392e28fbb1..51673d23cd98 100644 --- a/pkgs/development/python-modules/zope-schema/default.nix +++ b/pkgs/development/python-modules/zope-schema/default.nix @@ -9,7 +9,7 @@ zope-i18nmessageid, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-schema"; version = "8.1"; pyproject = true; @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.schema"; - tag = version; + tag = finalAttrs.version; hash = "sha256-pO3yL0gej2PGD01ySiPJPU66P/9hW73T2n/ZnUPa3C0="; }; @@ -40,15 +40,15 @@ buildPythonPackage rec { zope-i18nmessageid ]; - unittestFlagsArray = [ "src/zope/schema/tests" ]; + unittestFlags = [ "--start-directory=src/zope/schema/tests" ]; pythonNamespaces = [ "zope" ]; meta = { homepage = "https://github.com/zopefoundation/zope.schema"; description = "zope.interface extension for defining data schemas"; - changelog = "https://github.com/zopefoundation/zope.schema/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.schema/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-security/default.nix b/pkgs/development/python-modules/zope-security/default.nix index 59d4e9ebffd8..b0fb97bb7b4b 100644 --- a/pkgs/development/python-modules/zope-security/default.nix +++ b/pkgs/development/python-modules/zope-security/default.nix @@ -17,7 +17,7 @@ zope-testing, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-security"; version = "8.3"; pyproject = true; @@ -25,7 +25,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.security"; - tag = version; + tag = finalAttrs.version; hash = "sha256-iSWSBjtJe4iEvm+VUEWDvRCBdRz1R6m9mlfPLwh01Sk="; }; @@ -57,7 +57,7 @@ buildPythonPackage rec { zope-exceptions zope-testing ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.finalPackage.passthru.optional-dependencies; # Import process is too complex and some tests fail preCheck = '' @@ -66,15 +66,15 @@ buildPythonPackage rec { rm -r src/zope/security/tests/test_zcml_functest.py ''; - unittestFlagsArray = [ "src/zope/security/tests" ]; + unittestFlags = [ "--start-directory=src/zope/security/tests" ]; pythonNamespaces = [ "zope" ]; meta = { description = "Zope Security Framework"; homepage = "https://github.com/zopefoundation/zope.security"; - changelog = "https://github.com/zopefoundation/zope.security/blob/${src.tag}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.security/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zope-size/default.nix b/pkgs/development/python-modules/zope-size/default.nix index 8632f12c9a71..9fa0d4ad6e70 100644 --- a/pkgs/development/python-modules/zope-size/default.nix +++ b/pkgs/development/python-modules/zope-size/default.nix @@ -11,7 +11,7 @@ zope-security, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zope-size"; version = "6.0"; pyproject = true; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.size"; - tag = version; + tag = finalAttrs.version; hash = "sha256-jjI9NvfxnIWZrqDEpZ6FDlhDWZoqEUBliiyh+5PxOAg="; }; @@ -50,17 +50,17 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.finalPackage.passthru.optional-dependencies; - unittestFlagsArray = [ "src/zope/size" ]; + unittestFlags = [ "--start-directory=src/zope/size" ]; pythonNamespaces = [ "zope" ]; meta = { homepage = "https://github.com/zopefoundation/zope.size"; description = "Interfaces and simple adapter that give the size of an object"; - changelog = "https://github.com/zopefoundation/zope.size/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/zope.size/blob/${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/python-modules/zulip-emoji-mapping/default.nix b/pkgs/development/python-modules/zulip-emoji-mapping/default.nix index 43973a52ce74..69ae08ba23d7 100644 --- a/pkgs/development/python-modules/zulip-emoji-mapping/default.nix +++ b/pkgs/development/python-modules/zulip-emoji-mapping/default.nix @@ -9,7 +9,6 @@ buildPythonPackage (finalAttrs: { pname = "zulip-emoji-mapping"; version = "1.0.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "GearKite"; diff --git a/pkgs/development/python-modules/zxcvbn/default.nix b/pkgs/development/python-modules/zxcvbn/default.nix index f680dd2e100d..8b10ad7f1f32 100644 --- a/pkgs/development/python-modules/zxcvbn/default.nix +++ b/pkgs/development/python-modules/zxcvbn/default.nix @@ -11,8 +11,6 @@ buildPythonPackage (finalAttrs: { version = "4.5.0"; pyproject = true; - __structuredAttrs = true; - # no tests included in PyPI tarball src = fetchFromGitHub { owner = "dwolfhub"; diff --git a/pkgs/development/rocm-modules/rocgdb/default.nix b/pkgs/development/rocm-modules/rocgdb/default.nix index 918f624b673d..121cf2567c22 100644 --- a/pkgs/development/rocm-modules/rocgdb/default.nix +++ b/pkgs/development/rocm-modules/rocgdb/default.nix @@ -18,7 +18,7 @@ perl, python3, babeltrace, - sourceHighlight, + source-highlight, }: stdenv.mkDerivation (finalAttrs: { @@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: { rocdbgapi python3 babeltrace - sourceHighlight + source-highlight ]; configureFlags = [ diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index e1a1937df9c2..df915aac506f 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -592,9 +592,7 @@ in ] ++ lib.optional stdenv.hostPlatform.isDarwin cctools ++ lib.optional ( - lib.versionAtLeast attrs.version "1.53.0" - && stdenv.hostPlatform.isDarwin - && stdenv.hostPlatform.isAarch64 + lib.versionAtLeast attrs.version "1.53.0" && stdenv.hostPlatform.isDarwin ) autoSignDarwinBinariesHook; buildInputs = [ openssl ]; hardeningDisable = [ "format" ]; diff --git a/pkgs/development/tools/misc/patchelf/default.nix b/pkgs/development/tools/misc/patchelf/default.nix index 260271e221ff..5cf6d8bc502f 100644 --- a/pkgs/development/tools/misc/patchelf/default.nix +++ b/pkgs/development/tools/misc/patchelf/default.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "patchelf"; - version = "0.19.2"; + version = "0.15.2"; src = fetchurl { url = "https://github.com/NixOS/patchelf/releases/download/${finalAttrs.version}/patchelf-${finalAttrs.version}.tar.bz2"; - hash = "sha256-1K2aTlxongkRnOLzCpSw6LT5jHhZASPqIWZeNMaSiAE="; + hash = "sha256-F3RfVkFZyOIo/EEtplogSLhGxLa0Igt3y/IkFuAvLXw="; }; strictDeps = true; diff --git a/pkgs/development/tools/misc/patchelf/unstable.nix b/pkgs/development/tools/misc/patchelf/unstable.nix index feafa976c8ff..70efeeaa7ffc 100644 --- a/pkgs/development/tools/misc/patchelf/unstable.nix +++ b/pkgs/development/tools/misc/patchelf/unstable.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation { pname = "patchelf"; - version = "0.18.0-unstable-2025-08-13"; + version = "0.19.2-unstable-2026-10-20"; src = fetchFromGitHub { owner = "NixOS"; repo = "patchelf"; - rev = "b49de1b3384e7928bf0df9a889fe5a4e7b3fbddf"; - hash = "sha256-0AGK+ZPZDc7zTVAmG6jAAynQhh4nP8skVwOEV5hZKh0="; + rev = "3e996dbef1fa0658012f8dd290bddcf0302acade"; + hash = "sha256-+c7LIYKu0pYnG7h1dsEIDs6l4+91Vh/oDrSDARdBK3o="; }; # Drop test that fails on musl (?) diff --git a/pkgs/development/tools/ocaml/crunch/default.nix b/pkgs/development/tools/ocaml/crunch/default.nix index 2a8edc672a6a..af8a55b8bb00 100644 --- a/pkgs/development/tools/ocaml/crunch/default.nix +++ b/pkgs/development/tools/ocaml/crunch/default.nix @@ -2,7 +2,6 @@ lib, buildDunePackage, fetchurl, - ocaml, cmdliner, ptime, }: @@ -20,16 +19,6 @@ buildDunePackage (finalAttrs: { propagatedBuildInputs = [ ptime ]; - outputs = [ - "lib" - "bin" - "out" - ]; - - installPhase = '' - dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib/ - ''; - meta = { homepage = "https://github.com/mirage/ocaml-crunch"; description = "Convert a filesystem into a static OCaml module"; diff --git a/pkgs/development/tools/ocaml/melange/default.nix b/pkgs/development/tools/ocaml/melange/default.nix index 72bfbb821953..cfca870b320a 100644 --- a/pkgs/development/tools/ocaml/melange/default.nix +++ b/pkgs/development/tools/ocaml/melange/default.nix @@ -60,6 +60,11 @@ buildDunePackage { inherit pname; inherit version; minimalOCamlVersion = "4.14"; + + # melc needs melange's standard library at runtime, + # so the library can't be split into a separate "dev" output. + outputs = [ "out" ]; + src = fetchurl { url = "https://github.com/melange-re/${pname}/releases/download/${version}/${pname}-${version}.tbz"; inherit hash; diff --git a/pkgs/development/tools/ocaml/merlin/4.x.nix b/pkgs/development/tools/ocaml/merlin/4.x.nix index b8b250bcb330..947c7a99aa5f 100644 --- a/pkgs/development/tools/ocaml/merlin/4.x.nix +++ b/pkgs/development/tools/ocaml/merlin/4.x.nix @@ -36,6 +36,7 @@ "5.4.1" = "5.7.1-504"; "5.5.0" = "5.8-505"; "5.5.1" = "5.8-505"; + "5.5.2" = "5.8-505"; } ."${ocaml.version}", }: diff --git a/pkgs/development/tools/ocaml/utop/default.nix b/pkgs/development/tools/ocaml/utop/default.nix index 5f931c391ab6..2f16af9920ea 100644 --- a/pkgs/development/tools/ocaml/utop/default.nix +++ b/pkgs/development/tools/ocaml/utop/default.nix @@ -27,6 +27,10 @@ buildDunePackage rec { minimalOCamlVersion = "4.11"; + # The toplevel loads the utop library at runtime, + # so the library can't be split into a separate "dev" output. + outputs = [ "out" ]; + src = fetchurl { url = "https://github.com/ocaml-community/utop/releases/download/${version}/utop-${version}.tbz"; hash = "sha256-FOGTkf+LGMFbARc3TU0PxXIAUJV72AKYZQVkuJT6hdo="; diff --git a/pkgs/development/tools/pnpm/generic-rust.nix b/pkgs/development/tools/pnpm/generic-rust.nix index e37120ade7af..ce0df00121f0 100644 --- a/pkgs/development/tools/pnpm/generic-rust.nix +++ b/pkgs/development/tools/pnpm/generic-rust.nix @@ -3,6 +3,9 @@ fetchFromGitHub, installShellFiles, makeWrapper, + pkg-config, + aws-lc, + sqlite, nodejs-slim, rustPlatform, stdenv, @@ -33,6 +36,12 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ installShellFiles makeWrapper + pkg-config + ]; + + buildInputs = [ + aws-lc + sqlite ]; postPatch = '' diff --git a/pkgs/development/tools/rust/rustup/default.nix b/pkgs/development/tools/rust/rustup/default.nix index dacd0626c9eb..dd0de80f71a0 100644 --- a/pkgs/development/tools/rust/rustup/default.nix +++ b/pkgs/development/tools/rust/rustup/default.nix @@ -7,6 +7,7 @@ rustPlatform, makeBinaryWrapper, pkg-config, + aws-lc, openssl, curl, writableTmpDirAsHomeHook, @@ -44,6 +45,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + aws-lc openssl curl zlib diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 8a6b5d9ebe1f..0e5b12cede81 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -19,8 +19,6 @@ merve, nbytes, nghttp2, - nghttp3, - ngtcp2, openssl, simdjson, simdutf, @@ -134,26 +132,10 @@ let useSharedZstd = lib.versionAtLeast version "22.15"; sharedLibDeps = { - # TODO: remove this on staging and land with https://github.com/NixOS/nixpkgs/pull/576792 - brotli = - if majorVersion == "24" then - brotli - else - brotli.overrideAttrs (old: { - patches = old.patches ++ [ - # Fix for CVE-2026-111497 - (fetchurl { - url = "https://github.com/google/brotli/commit/0ed4268a4401abcb4472096340477cf4af7d1a2b.patch?full_index=1"; - hash = "sha256-1vliUJAAIj3vcGKVgim9CEV+XgMuftDR2U+3kLBUsfw="; - }) - ]; - }); - inherit + brotli libuv nghttp2 - nghttp3 - ngtcp2 openssl uvwasi zlib @@ -203,14 +185,6 @@ let sharedLibInputs = [ icu ] ++ builtins.attrValues sharedLibDeps; - # node-gyp expects headers for the following libs (the list is maintained upstream in tools/install.py) - # to be at the path given by `process.config.variables.node_prefix`, which is set to $out. - libHeadersForGYP = [ - libuv - openssl - zlib - ]; - bundlesCorepack = !lib.versionAtLeast version "25.0.0"; # Currently stdenv sets CC/LD/AR/etc environment variables to program names @@ -279,7 +253,10 @@ let # -dev outputs in the runtime closure. The cc wrapper already passes these # paths, so have pkgconf treat them as system paths and omit them. PKG_CONFIG_SYSTEM_INCLUDE_PATH = lib.makeSearchPathOutput "dev" "include" sharedLibInputs; - PKG_CONFIG_SYSTEM_LIBRARY_PATH = lib.makeSearchPathOutput "dev" "lib" sharedLibInputs; + PKG_CONFIG_SYSTEM_LIBRARY_PATH = lib.concatStringsSep ":" [ + (lib.makeSearchPathOutput "dev" "lib" sharedLibInputs) + (lib.makeLibraryPath sharedLibInputs) + ]; } // lib.optionalAttrs (!canExecute && !canEmulate) { # these are used in the --cross-compiling case. see comment at postConfigure. @@ -344,10 +321,7 @@ let ++ lib.optional useSharedTemporal "--v8-enable-temporal-support" ++ lib.optionals (lib.versionOlder version "19") [ "--without-dtrace" ] ++ lib.optionals (lib.versionAtLeast version "22") [ "--use-prefix-to-find-headers" ] - ++ lib.concatMap (name: [ - "--shared-${name}" - "--shared-${name}-libpath=${lib.getLib sharedLibDeps.${name}}/lib" - ]) (builtins.attrNames sharedLibDeps); + ++ map (name: "--shared-${name}") (builtins.attrNames sharedLibDeps); configurePlatforms = [ ]; @@ -424,26 +398,7 @@ let checkFlags = [ # Do not create __pycache__ when running tests. "PYTHONDONTWRITEBYTECODE=1" - ] - ++ lib.optionals (stdenv.buildPlatform.isDarwin && stdenv.buildPlatform.isx86_64) [ - # Python 3.12 introduced a warning for calling `os.fork()` in a - # multi‐threaded program. For some reason, the Node.js - # `tools/pseudo-tty.py` program used for PTY‐related tests - # triggers this warning on Hydra, on `x86_64-darwin` only, - # despite not creating any threads itself. This causes the - # Node.js test runner to misinterpret the warnings as part of the - # test output and fail. It does not reproduce reliably off Hydra - # on Intel Macs, or occur on the `aarch64-darwin` builds. - # - # This seems likely to be related to Rosetta 2, but it could also - # be some strange x86‐64‐only threading behaviour of the Darwin - # system libraries, or a bug in CPython, or something else - # haunted about the Nixpkgs/Hydra build environment. We silence - # the warnings in the hope that closing our eyes will make the - # ghosts go away. - "PYTHONWARNINGS=ignore::DeprecationWarning" - ] - ++ lib.optionals (!stdenv.buildPlatform.isDarwin || lib.versionAtLeast version "20") [ + "FLAKY_TESTS=skip" # Skip some tests that are not passing in this context "CI_SKIP_TESTS=${ @@ -452,13 +407,16 @@ let # Tests don't work in sandbox. "test-child-process-exec-env" "test-child-process-uid-gid" - "test-fs-write-stream-eagain" "test-process-euid-egid" - "test-process-initgroups" - "test-process-setgroups" "test-process-uid-gid" - # This is a bit weird, but for some reason fs watch tests fail with - # sandbox. + ] + ++ lib.optional (majorVersion == "22") "test-runner-watch-mode" + ++ lib.optionals stdenv.hostPlatform.is32bit [ + # utime (actually utimensat) fails with EINVAL on 2038 timestamp + "test-fs-utimes-y2K38" + ] + ++ lib.optionals stdenv.buildPlatform.isDarwin [ + # Disable tests that don’t work under macOS sandbox. "test-fs-promises-watch" "test-fs-watch" "test-fs-watch-encoding" @@ -474,35 +432,10 @@ let "test-fs-watch-recursive-sync-write" "test-fs-watch-recursive-update-file" "test-fs-watchfile" - "test-runner-run" - "test-runner-watch-mode" - "test-watch-mode-files_watcher" - - # fail on openssl 3.6.0 - "test-http2-server-unknown-protocol" - "test-tls-ocsp-callback" - ] - ++ lib.optionals (!lib.versionAtLeast version "22") [ - "test-tls-multi-key" - ] - ++ lib.optionals stdenv.hostPlatform.is32bit [ - # utime (actually utimensat) fails with EINVAL on 2038 timestamp - "test-fs-utimes-y2K38" - ] - ++ lib.optionals stdenv.buildPlatform.isDarwin [ - # Disable tests that don’t work under macOS sandbox. - # uv_os_setpriority returned EPERM (operation not permitted) "test-os" "test-os-process-priority" - - # Debugger tests failing on macOS 15.4 - "test-debugger-extract-function-name" - "test-debugger-random-port-with-inspect-port" - "test-debugger-launch" - "test-debugger-pid" - - # Those are annoyingly flaky, but not enough to be marked as such upstream. - "test-wasi" + "test-runner-run" + "test-watch-mode-files_watcher" # This is failing on newer macOS versions, no fix has yet been provided upstream: "test-cluster-dgram-1" @@ -511,17 +444,6 @@ let # Doesn't work in sandbox on x86_64. "test-dns-set-default-order" ] - ++ lib.optionals (stdenv.buildPlatform.isDarwin && stdenv.buildPlatform.isx86_64) [ - # These tests fail on x86_64-darwin (even without sandbox). - # TODO: revisit at a later date. - "test-fs-readv" - "test-fs-readv-sync" - "test-vm-memleak" - - # Those are annoyingly flaky, but not enough to be marked as such upstream. - "test-tick-processor-arguments" - "test-set-raw-mode-reset-signal" - ] # These network/fetch/inspector tests fail on riscv64 ++ lib.optionals (majorVersion == "24" && stdenv.hostPlatform.isRiscV64) [ "test-fetch" @@ -545,18 +467,11 @@ let "test-wasm-web-api" ] # Those are annoyingly flaky, but not enough to be marked as such upstream. - ++ lib.optional (majorVersion == "22") "test-child-process-stdout-flush-exit" ++ lib.optional (majorVersion == "22" && stdenv.hostPlatform.isRiscV64) "test-worker-messaging" ++ lib.optional (majorVersion == "26" && !stdenv.buildPlatform.isDarwin) "test-net-boundsocket" ++ lib.optional ( majorVersion == "22" && stdenv.buildPlatform.isDarwin ) "test/sequential/test-http-server-request-timeouts-mixed.js" - # https://github.com/NixOS/nixpkgs/pull/507974#issuecomment-4249433124 - # OpenSSL reports different errors - # https://github.com/nodejs/node/pull/62629 - # patch does not apply - ++ lib.optional (!lib.versionAtLeast version "24") "test-tls-junk-server" - ++ lib.optional (majorVersion == "22") "test-tls-alert-handling" ) }" ]; @@ -569,9 +484,7 @@ let ] ++ lib.optional bundlesCorepack "corepack"; # See PKG_CONFIG_SYSTEM_INCLUDE_PATH. - disallowedRequisites = map (dep: dep.dev) ( - lib.filter (dep: !(builtins.elem dep libHeadersForGYP) && dep ? dev) sharedLibInputs - ); + disallowedRequisites = map (dep: dep.dev) (lib.filter (dep: dep ? dev) sharedLibInputs); }; corepack = { disallowedReferences = [ @@ -640,9 +553,15 @@ let ln -s $npm/lib/node_modules/npm/lib/utils/completion.sh \ $npm/share/bash-completion/completions/npm - ln -s ${ - lib.concatStringsSep " " (map (dep: "${lib.getDev dep}/include/*") libHeadersForGYP) - } $out/include/node/ + ${ + # node-gyp expects these headers in node_prefix (i.e. $out); the list matches + # upstream's tools/install.py. Copied rather than linked so $out does + # not depend on the -dev outputs (and through them zlib-static, openssl-bin). + '' + cp -R ${lib.getDev libuv}/include/* $out/include/node/ + cp -R ${lib.getDev openssl}/include/openssl $out/include/node/ + cp ${lib.getDev zlib}/include/{zconf,zlib}.h $out/include/node/ + ''} # assemble a static v8 library and put it in the 'libv8' output mkdir -p $libv8/lib diff --git a/pkgs/development/web/nodejs/v24.nix b/pkgs/development/web/nodejs/v24.nix index 5fee25ab2f17..af63c71ef34d 100644 --- a/pkgs/development/web/nodejs/v24.nix +++ b/pkgs/development/web/nodejs/v24.nix @@ -29,8 +29,8 @@ let [ ]; in buildNodejs { - version = "24.21.0"; - sha256 = "a6f54defb6fd7c84f41dba13d61e78e9b4e0961712cf61f29715c05f5ced94fc"; + version = "24.22.2"; + sha256 = "8fe2ec1723bb9f8d0b683907c82708debbeda64af21cb2aa214c4241eed0a061"; patches = (lib.optional (!(stdenv.hostPlatform.emulatorAvailable buildPackages)) (fetchpatch2 { url = "https://raw.githubusercontent.com/buildroot/buildroot/2f0c31bffdb59fb224387e35134a6d5e09a81d57/package/nodejs/nodejs-src/0003-include-obj-name-in-shared-intermediate.patch"; diff --git a/pkgs/os-specific/darwin/by-name/li/libcxx/package.nix b/pkgs/os-specific/darwin/by-name/li/libcxx/package.nix index fce5590a1821..1d31f4d2bca2 100644 --- a/pkgs/os-specific/darwin/by-name/li/libcxx/package.nix +++ b/pkgs/os-specific/darwin/by-name/li/libcxx/package.nix @@ -1,7 +1,7 @@ { - # Use the text-based stubs and headers from the latest SDK (currently 15.x). This is safe because + # Use the text-based stubs and headers from the latest SDK. This is safe because # using features that are not available on an older deployment target is a hard error. - apple-sdk_26, + apple-sdk_27, stdenvNoCC, }: @@ -9,8 +9,8 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "libcxx"; # Keep this in sync with the corresponding LLVM libc++ version # defined as `_LIBCPP_VERSION` in `usr/include/c++/v1/__config`. - version = "21.1.6+apple-sdk-${apple-sdk_26.version}"; - inherit (apple-sdk_26) src; + version = "22.1.6+apple-sdk-${apple-sdk_27.version}"; + inherit (apple-sdk_27) src; dontConfigure = true; dontBuild = true; diff --git a/pkgs/os-specific/darwin/by-name/si/sigtool/0001-fix-build-with-gcc.patch b/pkgs/os-specific/darwin/by-name/si/sigtool/0001-fix-build-with-gcc.patch deleted file mode 100644 index dfebbdfb566e..000000000000 --- a/pkgs/os-specific/darwin/by-name/si/sigtool/0001-fix-build-with-gcc.patch +++ /dev/null @@ -1,24 +0,0 @@ -From b18ae56b1bee86808d40f89900f999e835a7e1e9 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Fri, 13 Feb 2026 19:05:02 -0500 -Subject: [PATCH] fix-build-with-gcc - ---- - emit.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/emit.h b/emit.h -index 340f314..a8a6d3b 100644 ---- a/emit.h -+++ b/emit.h -@@ -6,6 +6,7 @@ - #include - #include - #include -+#include - - namespace SigTool { - --- -2.51.2 - diff --git a/pkgs/os-specific/darwin/by-name/si/sigtool/package.nix b/pkgs/os-specific/darwin/by-name/si/sigtool/package.nix index d565bd4fb8c8..6c12ad7d93a2 100644 --- a/pkgs/os-specific/darwin/by-name/si/sigtool/package.nix +++ b/pkgs/os-specific/darwin/by-name/si/sigtool/package.nix @@ -4,26 +4,25 @@ fetchFromGitHub, pkg-config, openssl, + libplist, }: stdenv.mkDerivation rec { pname = "sigtool"; - version = "0.1.3"; + version = "0.2.2"; src = fetchFromGitHub { - owner = "thefloweringash"; + owner = "nix-community"; repo = "sigtool"; rev = "v${version}"; - sha256 = "sha256-K3VSFaqcZEomF7kROJz+AwxdW1MmxxEFDaRnWnzcw54="; + sha256 = "sha256-czprDpXy+wflnzqIeCIqxwPewYIYv8xlKzRp6eEhcqw="; }; - patches = [ - # Fix missing `UINT64_C` when building with GCC on Linux - ./0001-fix-build-with-gcc.patch - ]; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ + openssl + libplist + ]; installFlags = [ "PREFIX=$(out)" ]; @@ -33,5 +32,6 @@ stdenv.mkDerivation rec { license = lib.licenses.mit; platforms = lib.platforms.unix; mainProgram = "sigtool"; + maintainers = [ lib.maintainers.viraptor ]; }; } diff --git a/pkgs/os-specific/darwin/by-name/xc/xcode-macros/package.nix b/pkgs/os-specific/darwin/by-name/xc/xcode-macros/package.nix new file mode 100644 index 000000000000..c953bd48c2fa --- /dev/null +++ b/pkgs/os-specific/darwin/by-name/xc/xcode-macros/package.nix @@ -0,0 +1,43 @@ +{ + lib, + llvm, + swift, + xcode_27, + runCommand, +}: + +# This should be kept in sync with the SDK used by Swift in Nixpkgs. +runCommand "xcode-macros-27.0" + { + nativeBuildInputs = [ llvm ]; + meta = { + description = "Swift macros shipped only with Xcode"; + homepage = "https://developer.apple.com"; + platforms = lib.platforms.darwin; + license = lib.licenses.unfree; + teams = [ lib.teams.swift ]; + }; + } + '' + pluginsPath=${lib.escapeShellArg xcode_27}/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/ + + declare -a xcodeOnlyMacros=( + libAppIntentsMacros.dylib + libFoundationModelsMacros.dylib + libPreviewsMacros.dylib + libStateReportingMacros.dylib + libSwiftDataMacros.dylib + libSwiftUIMacros.dylib + libTipKitMacros.dylib + ) + declare -a macroDylibs=(''${xcodeOnlyMacros[@]/#/$pluginsPath}) + + install -m644 -D -t "$out/lib/swift/host/plugins" "''${macroDylibs[@]}" + + # We can’t replace the rpath with the full path in the store because there’s not enough room. + # Fortunately, there is enough room for `@loader_rpath/..`. + ln -s ${lib.escapeShellArg swift.swiftc}/lib/swift/host/*.dylib "$out/lib/swift/host" + for dylib in "$out/lib/swift/host/plugins"/*; do + llvm-install-name-tool "$dylib" -rpath '/usr/lib/swift' '@loader_path/..' + done + '' diff --git a/pkgs/os-specific/linux/ajantv2/default.nix b/pkgs/os-specific/linux/ajantv2/default.nix index eaaecb9eb0fc..f25c675a95d8 100644 --- a/pkgs/os-specific/linux/ajantv2/default.nix +++ b/pkgs/os-specific/linux/ajantv2/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: { sourceRoot = "${libajantv2.src.name}/driver/linux"; patches = [ - ./fix-linux-6.15.patch + ./fix-linux-7.patch ]; patchFlags = "-p3"; diff --git a/pkgs/os-specific/linux/ajantv2/fix-linux-6.15.patch b/pkgs/os-specific/linux/ajantv2/fix-linux-6.15.patch deleted file mode 100644 index 10bfdf5f694c..000000000000 --- a/pkgs/os-specific/linux/ajantv2/fix-linux-6.15.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 8eacfa908f7d9b366d68e0ea0516fdd867a1e492 Mon Sep 17 00:00:00 2001 -From: Luke Granger-Brown -Date: Sun, 22 Jun 2025 19:38:10 +0100 -Subject: [PATCH 5/5] Use ccflags-y instead of EXTRA_CFLAGS, which stopped - working in Linux 6.15 - ---- - driver/linux/Makefile | 14 +++++++------- - 1 file changed, 7 insertions(+), 7 deletions(-) - -diff --git a/driver/linux/Makefile b/driver/linux/Makefile -index f714ff9b..da4ee90b 100644 ---- a/driver/linux/Makefile -+++ b/driver/linux/Makefile -@@ -25,10 +25,10 @@ VERSIONING = -DSDKVER_MAJ=$(SDKVER_MAJ) -DSDKVER_MIN=$(SDKVER_MIN) -DSDKVER_PN - DISTRO_INFO = -DDISTRO_TYPE=$(DISTRO_TYPE) -DDISTRO_IS_RHEL_LIKE=$(DISTRO_IS_RHEL_LIKE) \ - -DDISTRO_MAJ_VERSION=$(DISTRO_MAJ_VERSION) -DDISTRO_MIN_VERSION=$(DISTRO_MIN_VERSION) \ - -DDISTRO_KERNEL_PKG_MAJ=$(DISTRO_KERNEL_PKG_MAJ) -DDISTRO_KERNEL_PKG_MIN=$(DISTRO_KERNEL_PKG_MIN) -DDISTRO_KERNEL_PKG_PNT=$(DISTRO_KERNEL_PKG_PNT) --EXTRA_CFLAGS += -DAJALinux -DXENA2 $(DBG) -D$(NTV2TARGET) -D$(A_ARCH) $(EXTRA_DEPS) $(VERSIONING) $(DISTRO_INFO) $(INCLUDES) -Wall -Wno-implicit-fallthrough -+ccflags-y += -DAJALinux -DXENA2 $(DBG) -D$(NTV2TARGET) -D$(A_ARCH) $(EXTRA_DEPS) $(VERSIONING) $(DISTRO_INFO) $(INCLUDES) -Wall -Wno-implicit-fallthrough - - ifdef AJA_HEVC -- EXTRA_CFLAGS += -DAJA_HEVC=$(AJA_HEVC) -+ ccflags-y += -DAJA_HEVC=$(AJA_HEVC) - endif - - # if rdma is set -@@ -73,7 +73,7 @@ ifeq ($(NVIDIA_KO),) - endif - - ifdef NVIDIA_IGPU -- EXTRA_CFLAGS += -DAJA_IGPU=1 -+ ccflags-y += -DAJA_IGPU=1 - ifneq ($(NVIDIA_KO),) - ifeq ($(NVIDIA_SYMVERS),) - NVIDIA_GEN_SYMVERS := ./nvidia-ko-to-module-symvers $(NVIDIA_KO) $(A_LINUX_DRIVER_PATH)/nvidia.symvers -@@ -91,17 +91,17 @@ endif - - # determine if the ko is gpl - no ko is proprietary igpu - ifeq ($(NVIDIA_KO),) -- EXTRA_CFLAGS += -I$(NVIDIA_SRC_DIR) -DAJA_RDMA=1 -DNVIDIA_PROPRIETARY=1 -+ ccflags-y += -I$(NVIDIA_SRC_DIR) -DAJA_RDMA=1 -DNVIDIA_PROPRIETARY=1 - else - ifeq ($(shell modinfo $(NVIDIA_KO) | grep license: | grep GPL),) -- EXTRA_CFLAGS += -I$(NVIDIA_SRC_DIR) -DAJA_RDMA=1 -DNVIDIA_PROPRIETARY=1 -+ ccflags-y += -I$(NVIDIA_SRC_DIR) -DAJA_RDMA=1 -DNVIDIA_PROPRIETARY=1 - else -- EXTRA_CFLAGS += -I$(NVIDIA_SRC_DIR) -DAJA_RDMA=1 -+ ccflags-y += -I$(NVIDIA_SRC_DIR) -DAJA_RDMA=1 - endif - endif - - ifdef AJA_CREATE_DEVICE_NODES -- EXTRA_CFLAGS += -DAJA_CREATE_DEVICE_NODES=$(AJA_CREATE_DEVICE_NODES) -+ ccflags-y += -DAJA_CREATE_DEVICE_NODES=$(AJA_CREATE_DEVICE_NODES) - endif - - AJANTV2INCS = $(A_LIB_NTV2_INC)/ajaexport.h \ --- -2.49.0 - diff --git a/pkgs/os-specific/linux/ajantv2/fix-linux-7.patch b/pkgs/os-specific/linux/ajantv2/fix-linux-7.patch new file mode 100644 index 000000000000..2e7cfefc633d --- /dev/null +++ b/pkgs/os-specific/linux/ajantv2/fix-linux-7.patch @@ -0,0 +1,46 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Luke Granger-Brown +Date: Sat, 10 Oct 2026 01:27:10 +0100 +Subject: [PATCH] Fix compilation of kernel driver + +Signed-off-by: Luke Granger-Brown +--- + driver/linux/hevcapi.c | 10 +++++----- + driver/linux/ntv2driver.c | 3 +-- + 2 files changed, 6 insertions(+), 7 deletions(-) + +diff --git a/driver/linux/hevcapi.c b/driver/linux/hevcapi.c +index 0dafc34a66dece7ee3593297ca3ba0ccd719287a..0eefc8730aa195ae59c706a167e1c4b2ec86b8b7 100644 +--- a/driver/linux/hevcapi.c ++++ b/driver/linux/hevcapi.c +@@ -100,11 +100,11 @@ Ntv2Status hevcDeviceOpen(uint32_t devNum) + for(i = 0; i < FMB_VERSION_SIZE_HEVC_ENCODER_FIRM; i++) revStdMultiple[i] = ' '; + for(i = 0; i < FMB_VERSION_SIZE_HEVC_ENCODER_FIRM; i++) revUserSingle[i] = ' '; + for(i = 0; i < FMB_VERSION_SIZE_HEVC_ENCODER_FIRM; i++) revUserMultiple[i] = ' '; +- strncpy(revSystem, ">>> register read failed <<<", FMB_VERSION_SIZE_SYSTEM_FIRM-1); +- strncpy(revStdSingle, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); +- strncpy(revStdMultiple, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); +- strncpy(revUserSingle, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); +- strncpy(revUserMultiple, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); ++ strscpy(revSystem, ">>> register read failed <<<", FMB_VERSION_SIZE_SYSTEM_FIRM-1); ++ strscpy(revStdSingle, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); ++ strscpy(revStdMultiple, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); ++ strscpy(revUserSingle, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); ++ strscpy(revUserMultiple, ">>> register read failed <<<", FMB_VERSION_SIZE_HEVC_ENCODER_FIRM-1); + + hevcGetFirmwareVersion(devNum, revMCPU, revSystem, + revStdSingle, revStdMultiple, +diff --git a/driver/linux/ntv2driver.c b/driver/linux/ntv2driver.c +index f9dba80d85fb76312eaedcc75389a3fe14a6b983..b969876552aceb6be820402bf8f1ab38f5d373f1 100644 +--- a/driver/linux/ntv2driver.c ++++ b/driver/linux/ntv2driver.c +@@ -3155,8 +3155,7 @@ static int __init aja_ntv2_module_init(void) + getNTV2ModuleParams()->name, versionString); + + // determine driver mode +- strncpy(versionString, DriverMode, STRMAX); +- versionString[STRMAX - 1] = '\0'; ++ strscpy(versionString, DriverMode, STRMAX); + driverModeString = strstrip(versionString); + if (strcmp(driverModeString, "all") == 0) + { diff --git a/pkgs/os-specific/linux/kernel-headers/default.nix b/pkgs/os-specific/linux/kernel-headers/default.nix index b1fdeae6ca1a..b879dd5a93f1 100644 --- a/pkgs/os-specific/linux/kernel-headers/default.nix +++ b/pkgs/os-specific/linux/kernel-headers/default.nix @@ -159,13 +159,13 @@ in linuxHeaders = let - version = "7.2"; + version = "7.3"; in makeLinuxHeaders { inherit version; src = fetchurl { url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${version}.tar.xz"; - hash = "sha256-+f7z0UwN9TgZAm9L50RZg1wqCw3L9bW72eoZ8IKUArM="; + hash = "sha256-hzY8JPEOBjIes2J2VSEJTpRHH2v/i84taz5A858ASVM="; }; patches = [ ./no-relocs.patch # for building x86 kernel headers on non-ELF platforms diff --git a/pkgs/os-specific/linux/kernel/build.nix b/pkgs/os-specific/linux/kernel/build.nix index 7c6992e53ccc..03b32b17ba74 100644 --- a/pkgs/os-specific/linux/kernel/build.nix +++ b/pkgs/os-specific/linux/kernel/build.nix @@ -193,6 +193,7 @@ lib.makeOverridable ( inherit pname version src; __structuredAttrs = true; + strictDeps = true; enableParallelBuilding = true; diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 5790a2daeec7..cb5befcab839 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -244,6 +244,7 @@ lib.makeOverridable ( enableParallelBuilding = true; __structuredAttrs = true; + strictDeps = true; passthru = rec { module = import ../../../../nixos/modules/system/boot/kernel_config.nix; diff --git a/pkgs/os-specific/linux/kernel/patches.nix b/pkgs/os-specific/linux/kernel/patches.nix index 12cf001b6503..d2271a4a1e9f 100644 --- a/pkgs/os-specific/linux/kernel/patches.nix +++ b/pkgs/os-specific/linux/kernel/patches.nix @@ -32,4 +32,13 @@ name = "c23-compat-libbpf"; patch = ./C23-compat-6.1.patch; }; + + tools_128bit_types = rec { + name = "tools-add-128-bit-integer-types-for-aarch64"; + patch = fetchpatch { + name = name + ".patch"; + url = "https://github.com/torvalds/linux/commit/10a47fb67340bca274276faf855d7d460afd9a7a.patch"; + hash = "sha256-w6ZnvodW2kS3bqtZVvVN5qDt1Zc7fJvnywki3MBsER0="; + }; + }; } diff --git a/pkgs/os-specific/linux/minimal-bootstrap/gcc/common.nix b/pkgs/os-specific/linux/minimal-bootstrap/gcc/common.nix index 6eaf611e1b40..d4ac9e2d1310 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/gcc/common.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/gcc/common.nix @@ -16,7 +16,7 @@ let (fetchurl { name = "regular-libdir-includedir.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250717174911.1536129-1-git@JohnEricson.me/raw"; - hash = "sha256-Cn7rvg1FI7H/26GzSe4pv5VW/gvwbwGqivAqEeawkwk="; + hash = "sha256-unPDAwW0F6ZSjSNLRiO3zcTHPKZKflK+2Yu8SYX1e8Q="; }) ./configure-skip-target-libs-hooks.patch ]; diff --git a/pkgs/os-specific/linux/minimal-bootstrap/tinycc/mes.nix b/pkgs/os-specific/linux/minimal-bootstrap/tinycc/mes.nix index 6cfe73252671..b7d66ca5a62f 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/tinycc/mes.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/tinycc/mes.nix @@ -18,8 +18,8 @@ let rev = "cb41cbfe717e4c00d7bb70035cda5ee5f0ff9341"; tarball = fetchurl { - url = "https://repo.or.cz/tinycc.git/snapshot/${rev}.tar.gz"; - hash = "sha256-MRuqq3TKcfIahtUWdhAcYhqDiGPkAjS8UTMsDE+/jGU="; + url = "https://github.com/tinycc/tinycc/archive/${rev}.tar.gz"; + hash = "sha256-c4H5RKqSVc1WDoGSxbAkEkbSyD7qVLjrMXECmS/h4rs="; }; src = (kaem.runCommand "tinycc-${version}-source" { } '' @@ -29,7 +29,7 @@ let untar --file ''${NIX_BUILD_TOP}/tinycc.tar # Patch - cd tinycc-${builtins.substring 0 7 rev} + cd tinycc-${rev} # Static link by default replace --file libtcc.c --output libtcc.c --match-on "s->ms_extensions = 1;" --replace-with "s->ms_extensions = 1; s->static_link = 1;" replace --file i386-asm.c --output i386-asm.c --match-on "switch(size)" --replace-with "if (reg >= 8) { cstr_printf(add_str, \"%%r%d%c\", reg, (size == 1) ? 'b' : ((size == 2) ? 'w' : ((size == 4) ? 'd' : ' '))); return; } switch(size)" @@ -37,7 +37,7 @@ let # If performing ptr + (-1) for example, the offset should be ptrdiff_t and not size_t replace --file tccgen.c --output tccgen.c --match-on "vpush_type_size(pointed_type(&vtop[-1].type), &align);" --replace-with "vpush_type_size(pointed_type(&vtop[-1].type), &align); if (!(vtop[-1].type.t & VT_UNSIGNED)) gen_cast_s(VT_PTRDIFF_T);" '') - + "/tinycc-${builtins.substring 0 7 rev}"; + + "/tinycc-${rev}"; meta = { description = "Small, fast, and embeddable C compiler and interpreter"; diff --git a/pkgs/os-specific/linux/minimal-bootstrap/tinycc/musl.nix b/pkgs/os-specific/linux/minimal-bootstrap/tinycc/musl.nix index 4fceaf33471d..f84b067972b7 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/tinycc/musl.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/tinycc/musl.nix @@ -15,8 +15,8 @@ let rev = "cb41cbfe717e4c00d7bb70035cda5ee5f0ff9341"; src = fetchurl { - url = "https://repo.or.cz/tinycc.git/snapshot/${rev}.tar.gz"; - hash = "sha256-MRuqq3TKcfIahtUWdhAcYhqDiGPkAjS8UTMsDE+/jGU="; + url = "https://github.com/tinycc/tinycc/archive/${rev}.tar.gz"; + hash = "sha256-c4H5RKqSVc1WDoGSxbAkEkbSyD7qVLjrMXECmS/h4rs="; }; tccTarget = @@ -56,7 +56,7 @@ let '' # Unpack tar xzf ${src} - cd tinycc-${builtins.substring 0 7 rev} + cd tinycc-${rev} # Patch ${lib.concatMapStringsSep "\n" (f: "patch -Np0 -i ${f}") patches} diff --git a/pkgs/os-specific/linux/nftables/python.nix b/pkgs/os-specific/linux/nftables/python.nix index 0a7856ea6535..072fe5730043 100644 --- a/pkgs/os-specific/linux/nftables/python.nix +++ b/pkgs/os-specific/linux/nftables/python.nix @@ -9,8 +9,6 @@ buildPythonPackage (finalAttrs: { inherit (nftables) version src; pyproject = true; - __structuredAttrs = true; - postPatch = '' substituteInPlace "src/nftables.py" \ --replace-fail 'NFTABLES_VERSION = "0.1"' 'NFTABLES_VERSION = "${finalAttrs.version}"' \ diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 31541a0eca4b..a96b918106f8 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -542,6 +542,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonBool "hwdb" withHwdb) (lib.mesonBool "timedated" withTimedated) (lib.mesonBool "timesyncd" withTimesyncd) + (lib.mesonBool "nsresourced" withNsresourced) + (lib.mesonBool "mountfsd" withMountfsd) (lib.mesonBool "userdb" withUserDb) (lib.mesonBool "coredump" withCoredump) (lib.mesonBool "firstboot" withFirstboot) @@ -559,12 +561,6 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonBool "smack" true) (lib.mesonBool "b_pie" true) ] - ++ lib.optionals withNsresourced [ - (lib.mesonBool "nsresourced" withNsresourced) - ] - ++ lib.optionals withMountfsd [ - (lib.mesonBool "mountfsd" withMountfsd) - ] ++ lib.optionals (withLibBPF && vmlinux-btf != null) [ (lib.mesonOption "vmlinux-h" "provided") (lib.mesonOption "vmlinux-h-path" "${vmlinux-btf}/vmlinux.h") diff --git a/pkgs/servers/home-assistant/python-modules/gazetteer-matcher/default.nix b/pkgs/servers/home-assistant/python-modules/gazetteer-matcher/default.nix index 73590f29f7c2..81299f2888e3 100644 --- a/pkgs/servers/home-assistant/python-modules/gazetteer-matcher/default.nix +++ b/pkgs/servers/home-assistant/python-modules/gazetteer-matcher/default.nix @@ -13,7 +13,6 @@ buildPythonPackage (finalAttrs: { pname = "gazetteer-matcher"; version = "1.1.0"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "OHF-Voice"; diff --git a/pkgs/servers/kanidm/generic.nix b/pkgs/servers/kanidm/generic.nix index 6709f3d0a60a..101558ac7b8f 100644 --- a/pkgs/servers/kanidm/generic.nix +++ b/pkgs/servers/kanidm/generic.nix @@ -18,6 +18,7 @@ nix-update-script, pkg-config, udev, + aws-lc, sqlite, pam, bashInteractive, @@ -96,6 +97,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ + aws-lc sqlite pam rust-jemalloc-sys diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index 33a24f016005..48fe659737a3 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -117,15 +117,10 @@ let prePatch = '' sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt ''; - env = - lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) { - # MariaDB uses non-POSIX fopen64, which musl only conditionally defines. - NIX_CFLAGS_COMPILE = "-D_LARGEFILE64_SOURCE"; - } - // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { - # Detection of netdb.h doesnt work for some reason on x86_64-darwin - NIX_CFLAGS_COMPILE = "-DHAVE_NETDB_H"; - }; + env = lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) { + # MariaDB uses non-POSIX fopen64, which musl only conditionally defines. + NIX_CFLAGS_COMPILE = "-D_LARGEFILE64_SOURCE"; + }; patches = [ ./patch/cmake-includedir.patch diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 83bf9cf58815..80a4e9217a73 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -196,7 +196,6 @@ let ed expat flex - gettext groff jq kyua @@ -271,6 +270,7 @@ let sdkPackages = prevStage: { inherit (prevStage) bashNonInteractive + gettext libpng libxml2 libxo @@ -574,12 +574,7 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check # Trying to add libresolv as a dependency causes an infinite recursion. Use pkgconf instead. pkg-config = (super.pkg-config.override { - pkg-config = self.libpkgconf.override { - removeReferencesTo = self.removeReferencesTo.override { - # Avoid an infinite recursion by using the previous stage‘s sigtool. - signingUtils = prevStage.darwin.signingUtils.override { inherit (prevStage.darwin) sigtool; }; - }; - }; + pkg-config = self.pkgconf-lite; baseBinName = "pkgconf"; }).overrideAttrs # Passthru the wrapped pkgconf’s stdenv to make the bootstrap assertions happy. @@ -1092,7 +1087,6 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check file findutils gawk - gettext gnumake gnused gnutar diff --git a/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix b/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix index ead8343515be..5d49a50c4985 100644 --- a/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix +++ b/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix @@ -22,6 +22,7 @@ ld64, libffi, libiconv, + libplist, libxml2, llvmPackages, ncurses, @@ -180,6 +181,7 @@ stdenv.mkDerivation (finalAttrs: { # copy sigtool cp -d ${getBin darwin.sigtool}/bin/{codesign,sigtool} $out/bin + cp -d ${getLib libplist}/lib/libplist*.dylib $out/lib # tools needed to unpack bootstrap archive mkdir -p unpack/bin unpack/lib diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 9daea9ca9fb4..eed3f63d6144 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -27,7 +27,6 @@ fi if [[ -n "${NIX_ATTRS_JSON_FILE:-}" ]]; then __structuredAttrs=1 - echo "structuredAttrs is enabled" _exportOutputsByName() { local outputName diff --git a/pkgs/test/cc-wrapper/default.nix b/pkgs/test/cc-wrapper/default.nix index 9dc3413f0e04..ed3a57abd6ff 100644 --- a/pkgs/test/cc-wrapper/default.nix +++ b/pkgs/test/cc-wrapper/default.nix @@ -23,6 +23,26 @@ let CC = "PATH= ${lib.getExe' stdenv.cc "${stdenv.cc.targetPrefix}cc"}"; CXX = "PATH= ${lib.getExe' stdenv.cc "${stdenv.cc.targetPrefix}c++"}"; READELF = "PATH= ${lib.getExe' stdenv.cc "${stdenv.cc.targetPrefix}readelf"}"; + # ld-wrapper only computes an rpath for ELF shared libraries. + rpathWorking = stdenv.hostPlatform.isElf && !stdenv.hostPlatform.isStatic; + # A shared library in a store path of its own, so that only ld-wrapper's + # rpath logic can put its directory into the rpath. + fooLib = stdenv.mkDerivation { + name = "cc-wrapper-test-libfoo"; + buildCommand = '' + mkdir -p $out/lib + $CC -shared -DVALUE=42 -o $out/lib/libfoo.so ${./foo.c} + ''; + }; + # A store path whose lib and sub are symlinks to fooLib's lib. + fooLinks = stdenv.mkDerivation { + name = "cc-wrapper-test-libfoo-links"; + buildCommand = '' + mkdir $out + ln -s ${fooLib}/lib $out/lib + ln -s ${fooLib}/lib $out/sub + ''; + }; in stdenv.mkDerivation { pname = "cc-wrapper-test-${stdenv.cc.cc.pname}${libcxxStdenvSuffix}"; @@ -143,6 +163,61 @@ stdenv.mkDerivation { NIX_LDFLAGS="-L$NIX_BUILD_TOP/foo/lib -rpath $NIX_BUILD_TOP/foo/lib" ${CC} -lfoo -o ldflags-check ${./ldflags-main.c} ${emulator} ./ldflags-check + ${lib.optionalString rpathWorking '' + echo "checking whether ld-wrapper follows -L symlinks into the store for the rpath... " >&2 + mkdir links + ln -s ${fooLib}/lib links/foo-abs + # A relative target resolves against the link's directory, which is not + # the working directory. + mkdir links/sub + ln -s ../foo-abs links/sub/foo-rel + ln -s ${fooLib} links/foo-pkg + # The kernel follows each symlink, including those of ancestor + # directories, before going on, so .. applies to the symlink's target. + # So these are all fooLib's lib, even ${fooLinks}/sub/../lib, unlike + # ${fooLinks}/lib. + for dir in "$NIX_BUILD_TOP/links/foo-abs" "$NIX_BUILD_TOP/links/sub/foo-rel" \ + "$NIX_BUILD_TOP/links/foo-pkg/lib" "$NIX_BUILD_TOP/links/foo-abs/../lib" \ + "${fooLinks}/sub/../lib"; do + ${CC} -L"$dir" -lfoo -o symlink-rpath-check ${./ldflags-main.c} + ${READELF} -d symlink-rpath-check | grep -F "${fooLib}/lib" + ${emulator} ./symlink-rpath-check + done + + echo "checking whether ld-wrapper keeps symlinks between store paths in the rpath... " >&2 + # Resolving them adds references to their targets (issue #454199). + ${CC} -L${fooLinks}/lib -lfoo -o store-symlink-rpath-check ${./ldflags-main.c} + ${READELF} -d store-symlink-rpath-check | grep -F "${fooLinks}/lib" + ! ${READELF} -d store-symlink-rpath-check | grep -F "${fooLib}/lib" + ${emulator} ./store-symlink-rpath-check + + echo "checking whether ld-wrapper recognizes a store whose parent is a symlink... " >&2 + # As when /nix is a symlink, which NIX_IGNORE_SYMLINK_STORE allows. The + # compiler is outside this store, so do not enforce purity. + mkdir -p fake/real/store/foo + cp -r ${fooLib}/lib fake/real/store/foo/lib + ln -s real fake/nix + ln -s "$NIX_BUILD_TOP/fake/nix/store/foo/lib" links/fake-store + for dir in "$NIX_BUILD_TOP/fake/nix/store/foo/lib" "$NIX_BUILD_TOP/links/fake-store"; do + NIX_ENFORCE_PURITY= NIX_STORE="$NIX_BUILD_TOP/fake/nix/store" ${CC} -L"$dir" -lfoo -o fake-store-rpath-check ${./ldflags-main.c} + ${READELF} -d fake-store-rpath-check | grep -F "$NIX_BUILD_TOP/fake/nix/store/foo/lib" + done + + echo "checking whether ld-wrapper resolves relative -L directories from the working directory... " >&2 + # gcc joins -L with a relative directory, which ld-wrapper ignores, so + # pass them to ld separately, as a direct call to ld might. + checkRelative() { + (cd "$1" && ${CC} -Wl,-L,"$2" -lfoo -o "$NIX_BUILD_TOP/relative-rpath-check" ${./ldflags-main.c}) + ${READELF} -d relative-rpath-check | grep -F "${fooLib}/lib" + ${emulator} ./relative-rpath-check + } + checkRelative ${fooLib} lib + checkRelative ${fooLib} ./lib + checkRelative ${fooLib}/lib . + checkRelative "$NIX_BUILD_TOP/links" foo-abs + checkRelative "$NIX_BUILD_TOP/links/sub" foo-rel + ''} + echo "Check whether -nostdinc and -nostdinc++ is handled correctly" >&2 mkdir -p std-include cp ${./stdio.h} std-include/stdio.h diff --git a/pkgs/test/default.nix b/pkgs/test/default.nix index b44d86db0dc8..aa956b03fb2d 100644 --- a/pkgs/test/default.nix +++ b/pkgs/test/default.nix @@ -184,6 +184,7 @@ in buildRustCrate = recurseIntoAttrs (callPackage ../build-support/rust/build-rust-crate/test { }); importCargoLock = recurseIntoAttrs (callPackage ../build-support/rust/test/import-cargo-lock { }); + fetchCargoVendor = recurseIntoAttrs (callPackage ../build-support/rust/test/fetch-cargo-vendor { }); vim = callPackage ./vim { }; @@ -227,12 +228,10 @@ in makeBinaryWrapper = pkgs.makeBinaryWrapper.override { # Enable sanitizers in the tests only, to avoid the performance cost in regular usage. # The sanitizers cause errors on aarch64-darwin, see https://github.com/NixOS/nixpkgs/pull/150079#issuecomment-994132734 - sanitizers = - optionals (!(pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64)) - [ - "undefined" - "address" - ]; + sanitizers = optionals (!pkgs.stdenv.hostPlatform.isDarwin) [ + "undefined" + "address" + ]; }; }; diff --git a/pkgs/test/make-binary-wrapper/default.nix b/pkgs/test/make-binary-wrapper/default.nix index 7d2e4b1a7cd2..1be690f86a75 100644 --- a/pkgs/test/make-binary-wrapper/default.nix +++ b/pkgs/test/make-binary-wrapper/default.nix @@ -60,6 +60,8 @@ let "prefix" "suffix" "prefix-dedup-last" + "prefix-unchecked" + "empty-segment" ] makeGoldenTest // lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) { cross = diff --git a/pkgs/test/make-binary-wrapper/empty-segment/empty-segment.c b/pkgs/test/make-binary-wrapper/empty-segment/empty-segment.c new file mode 100644 index 000000000000..6c7f108b00cc --- /dev/null +++ b/pkgs/test/make-binary-wrapper/empty-segment/empty-segment.c @@ -0,0 +1,95 @@ +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include +#include +#include +#include +#include + +#define assert_success(e) do { if ((e) < 0) { perror(#e); abort(); } } while (0) + +int is_surrounded_by_sep(char *env, char *ptr, unsigned long len, char *sep) { + unsigned long sep_len = strlen(sep); + + // Check left side (if not at start) + if (env != ptr) { + if (ptr - env < sep_len) + return 0; + if (strncmp(sep, ptr - sep_len, sep_len) != 0) { + return 0; + } + } + // Check right side (if not at end) + char *end_ptr = ptr + len; + if (*end_ptr != '\0') { + if (strncmp(sep, ptr + len, sep_len) != 0) { + return 0; + } + } + + return 1; +} + +void set_env_prefix(char *env, char *sep, char *prefix) { + char *existing_env = getenv(env); + if (existing_env) { + char *val; + + char *existing_prefix = strstr(existing_env, prefix); + unsigned long prefix_len = strlen(prefix); + // If the prefix already exists, remove the original + if (existing_prefix && is_surrounded_by_sep(existing_env, existing_prefix, prefix_len, sep)) { + if (existing_env == existing_prefix) { + return; + } + unsigned long sep_len = strlen(sep); + int n_before = existing_prefix - existing_env - sep_len; + assert_success(asprintf(&val, "%s%s%.*s%s", prefix, sep, + n_before, existing_env, + existing_prefix + prefix_len)); + } else { + assert_success(asprintf(&val, "%s%s%s", prefix, sep, existing_env)); + } + assert_success(setenv(env, val, 1)); + free(val); + } else { + assert_success(setenv(env, prefix, 1)); + } +} + +void set_env_suffix(char *env, char *sep, char *suffix) { + char *existing_env = getenv(env); + if (existing_env) { + char *val; + + char *existing_suffix = strstr(existing_env, suffix); + unsigned long suffix_len = strlen(suffix); + // If the suffix already exists, remove the original + if (existing_suffix && is_surrounded_by_sep(existing_env, existing_suffix, suffix_len, sep)) { + char *end_ptr = existing_suffix + suffix_len; + if (*end_ptr == '\0') { + return; + } + unsigned long sep_len = strlen(sep); + int n_before = existing_suffix - existing_env; + assert_success(asprintf(&val, "%.*s%s%s%s", + n_before, existing_env, + existing_suffix + suffix_len + sep_len, + sep, suffix)); + } else { + assert_success(asprintf(&val, "%s%s%s", existing_env, sep, suffix)); + } + assert_success(setenv(env, val, 1)); + free(val); + } else { + assert_success(setenv(env, suffix, 1)); + } +} + +int main(int argc, char **argv) { + set_env_prefix("PATH", ":", "/usr/bin:"); + #error --prefix PATH would introduce an empty PATH-like segment (empty, or a leading/trailing/doubled `:`). This is interpreted as "search the current directory" by shells, execvp() and the dynamic linker, see https://github.com/NixOS/nixpkgs/security/advisories/GHSA-p7v3-pr2c-8584. Guard the value with e.g. lib.optionalString (list != []), or use --prefix-unchecked if an empty segment is useful and safe for PATH. + set_env_suffix("PATH", ":", ""); + #error --suffix PATH would introduce an empty PATH-like segment (empty, or a leading/trailing/doubled `:`). This is interpreted as "search the current directory" by shells, execvp() and the dynamic linker, see https://github.com/NixOS/nixpkgs/security/advisories/GHSA-p7v3-pr2c-8584. Guard the value with e.g. lib.optionalString (list != []), or use --suffix-unchecked if an empty segment is useful and safe for PATH. + argv[0] = "/send/me/flags"; + return execv("/send/me/flags", argv); +} diff --git a/pkgs/test/make-binary-wrapper/empty-segment/empty-segment.cmdline b/pkgs/test/make-binary-wrapper/empty-segment/empty-segment.cmdline new file mode 100644 index 000000000000..512803e19d11 --- /dev/null +++ b/pkgs/test/make-binary-wrapper/empty-segment/empty-segment.cmdline @@ -0,0 +1,2 @@ + --prefix PATH : '/usr/bin:' \ + --suffix PATH : '' diff --git a/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.c b/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.c new file mode 100644 index 000000000000..633c3d1ea7c1 --- /dev/null +++ b/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.c @@ -0,0 +1,93 @@ +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include +#include +#include +#include +#include + +#define assert_success(e) do { if ((e) < 0) { perror(#e); abort(); } } while (0) + +int is_surrounded_by_sep(char *env, char *ptr, unsigned long len, char *sep) { + unsigned long sep_len = strlen(sep); + + // Check left side (if not at start) + if (env != ptr) { + if (ptr - env < sep_len) + return 0; + if (strncmp(sep, ptr - sep_len, sep_len) != 0) { + return 0; + } + } + // Check right side (if not at end) + char *end_ptr = ptr + len; + if (*end_ptr != '\0') { + if (strncmp(sep, ptr + len, sep_len) != 0) { + return 0; + } + } + + return 1; +} + +void set_env_prefix(char *env, char *sep, char *prefix) { + char *existing_env = getenv(env); + if (existing_env) { + char *val; + + char *existing_prefix = strstr(existing_env, prefix); + unsigned long prefix_len = strlen(prefix); + // If the prefix already exists, remove the original + if (existing_prefix && is_surrounded_by_sep(existing_env, existing_prefix, prefix_len, sep)) { + if (existing_env == existing_prefix) { + return; + } + unsigned long sep_len = strlen(sep); + int n_before = existing_prefix - existing_env - sep_len; + assert_success(asprintf(&val, "%s%s%.*s%s", prefix, sep, + n_before, existing_env, + existing_prefix + prefix_len)); + } else { + assert_success(asprintf(&val, "%s%s%s", prefix, sep, existing_env)); + } + assert_success(setenv(env, val, 1)); + free(val); + } else { + assert_success(setenv(env, prefix, 1)); + } +} + +void set_env_suffix(char *env, char *sep, char *suffix) { + char *existing_env = getenv(env); + if (existing_env) { + char *val; + + char *existing_suffix = strstr(existing_env, suffix); + unsigned long suffix_len = strlen(suffix); + // If the suffix already exists, remove the original + if (existing_suffix && is_surrounded_by_sep(existing_env, existing_suffix, suffix_len, sep)) { + char *end_ptr = existing_suffix + suffix_len; + if (*end_ptr == '\0') { + return; + } + unsigned long sep_len = strlen(sep); + int n_before = existing_suffix - existing_env; + assert_success(asprintf(&val, "%.*s%s%s%s", + n_before, existing_env, + existing_suffix + suffix_len + sep_len, + sep, suffix)); + } else { + assert_success(asprintf(&val, "%s%s%s", existing_env, sep, suffix)); + } + assert_success(setenv(env, val, 1)); + free(val); + } else { + assert_success(setenv(env, suffix, 1)); + } +} + +int main(int argc, char **argv) { + set_env_prefix("LUA_PATH", ";", "/usr/share/lua/?.lua;;"); + set_env_suffix("LUA_CPATH", ";", ""); + argv[0] = "/send/me/flags"; + return execv("/send/me/flags", argv); +} diff --git a/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.cmdline b/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.cmdline new file mode 100644 index 000000000000..09e5c21aa447 --- /dev/null +++ b/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.cmdline @@ -0,0 +1,2 @@ + --prefix-unchecked LUA_PATH ';' '/usr/share/lua/?.lua;;' \ + --suffix-unchecked LUA_CPATH ';' '' diff --git a/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.env b/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.env new file mode 100644 index 000000000000..211df5b80104 --- /dev/null +++ b/pkgs/test/make-binary-wrapper/prefix-unchecked/prefix-unchecked.env @@ -0,0 +1,4 @@ +LUA_PATH=/usr/share/lua/?.lua;; +LUA_CPATH= +CWD=SUBST_CWD +SUBST_ARGV0 diff --git a/pkgs/test/make-wrapper/default.nix b/pkgs/test/make-wrapper/default.nix index cf2bf1aed7e8..a530c2863f4a 100644 --- a/pkgs/test/make-wrapper/default.nix +++ b/pkgs/test/make-wrapper/default.nix @@ -173,6 +173,19 @@ runCommand "make-wrapper-test" "bar" ]; }) + (mkWrapperBinary { + name = "test-prefix-and-suffix-unchecked"; + args = [ + "--prefix-unchecked" + "VAR" + ":" + "foo" + "--suffix-unchecked" + "VAR" + ":" + "bar" + ]; + }) (mkWrapperBinary { name = "test-prefix-multi"; args = [ @@ -283,6 +296,7 @@ runCommand "make-wrapper-test" + mkTest "VAR=abc:foo test-suffix" "VAR=abc:foo" # --prefix in combination with --suffix + mkTest "VAR=abc test-prefix-and-suffix" "VAR=foo:abc:bar" + + mkTest "VAR=abc test-prefix-and-suffix-unchecked" "VAR=foo:abc:bar" # --suffix-each works + mkTest "VAR=abc test-suffix-each" "VAR=abc:foo:bar:def" diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix index f4233cfbe321..d06bb9a33126 100644 --- a/pkgs/tools/misc/hdf5/default.nix +++ b/pkgs/tools/misc/hdf5/default.nix @@ -95,11 +95,7 @@ stdenv.mkDerivation rec { (lib.cmakeBool "HDF5_BUILD_JAVA" javaSupport) (lib.cmakeBool "HDF5_ENABLE_THREADSAFE" threadsafe) (lib.cmakeBool "HDF5_BUILD_HL_LIB" (!threadsafe)) - # broken in nixpkgs since around 1.14.3 -> 1.14.4.3 - # https://github.com/HDFGroup/hdf5/issues/4208#issuecomment-2098698567 - (lib.cmakeBool "HDF5_ENABLE_NONSTANDARD_FEATURE_FLOAT16" ( - with stdenv.hostPlatform; !(isDarwin && isx86_64) - )) + (lib.cmakeBool "HDF5_ENABLE_NONSTANDARD_FEATURE_FLOAT16" true) ] ++ lib.optional (apiVersion != null) (lib.cmakeFeature "HDF5_DEFAULT_API_VERSION" apiVersion); diff --git a/pkgs/tools/misc/tdarr/node.nix b/pkgs/tools/misc/tdarr/node.nix index 7be9a1f11a28..89fac1ef1c5b 100644 --- a/pkgs/tools/misc/tdarr/node.nix +++ b/pkgs/tools/misc/tdarr/node.nix @@ -7,7 +7,6 @@ callPackage ./common.nix { } { hashes = { linux_x64 = "sha256-F7P0DZ4J10cgwbME1qcWYnJcMlcsALJ+z6u/eVTv5g0="; linux_arm64 = "sha256-oKapd+SjpercZecXCjojbsjHem5oWxctycj/woD0Bwc="; - darwin_x64 = "sha256-RmRngSwtU5ZMlE8yPy+Am6DzMmuiFihbeIk1yn/85Gc="; darwin_arm64 = "sha256-muqjEYYTDckM8FesRrE8rAxPOIzMyLcnXOSGcfKfw5Y="; }; diff --git a/pkgs/tools/misc/tdarr/server.nix b/pkgs/tools/misc/tdarr/server.nix index 6e2bb2390d7a..873a4afa89df 100644 --- a/pkgs/tools/misc/tdarr/server.nix +++ b/pkgs/tools/misc/tdarr/server.nix @@ -7,7 +7,6 @@ callPackage ./common.nix { } { hashes = { linux_x64 = "sha256-dAXcBPJ8wOxx4gg50mN6nEgUcDqEOn17eByX2FvphrQ="; linux_arm64 = "sha256-MDDhkSmMTiOEezKpInR86TItkVnX20IKblUf2JUKnKg="; - darwin_x64 = "sha256-faCNm8eeJzQq3Doyac/vtmx80dOTaWVMIErgNwz77xk="; darwin_arm64 = "sha256-NNEvCFZvPJFy6Elh7voeSe847bGVJpnOt/ac5nLEy7Y="; }; diff --git a/pkgs/tools/package-management/akku/overrides.nix b/pkgs/tools/package-management/akku/overrides.nix index 2cdc55e53c86..449c8f844931 100644 --- a/pkgs/tools/package-management/akku/overrides.nix +++ b/pkgs/tools/package-management/akku/overrides.nix @@ -20,9 +20,6 @@ let showLibs = pkg: old: { preCheck = "echo $CHEZSCHEMELIBDIRS"; }; runTests = pkg: old: { doCheck = true; }; brokenOnAarch64 = _: lib.addMetaAttrs { broken = stdenv.hostPlatform.isAarch64; }; - brokenOnx86_64Darwin = lib.addMetaAttrs { - broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; - }; brokenOnDarwin = lib.addMetaAttrs { broken = stdenv.hostPlatform.isDarwin; }; in { diff --git a/pkgs/tools/security/ghidra/build.nix b/pkgs/tools/security/ghidra/build.nix index 31d7762a15e2..4b72e15501a5 100644 --- a/pkgs/tools/security/ghidra/build.nix +++ b/pkgs/tools/security/ghidra/build.nix @@ -24,8 +24,6 @@ let pname = "ghidra"; version = "12.2"; - isMacArm64 = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; - releaseName = "NIX"; distroPrefix = "ghidra_${version}_${releaseName}"; src = fetchFromGitHub { @@ -142,7 +140,7 @@ stdenv.mkDerivation (finalAttrs: { gradleFlags = [ "-Dorg.gradle.java.home=${openjdk}" ] - ++ lib.optionals isMacArm64 [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # For some reason I haven't been able to figure out yet, ghidra builds for # arm64 seems to build the x64 binaries of the decompiler. These fail to # build due to trying to link the x64 object files with arm64 stdc++ diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 60b1ba82795a..3f61ba628a1d 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -382,6 +382,7 @@ mapAliases { autoconf264 = throw "'autoconf264' has been removed in favor of 'autoconf'"; # Added 2025-07-21 autoconf271 = throw "'autoconf271' has been removed in favor of 'autoconf'"; # Added 2026-03-29 automake111x = throw "'automake111x' has been removed in favor of 'automake'"; # Added 2025-07-21 + automake118x = throw "'automake118x' has been removed in favor of 'automake'"; # Added 2026-09-10 autopanosiftc = throw "'autopanosiftc' has been removed, as it is unmaintained upstream"; # Added 2025-10-07 autoreconfHook264 = throw "'autoreconfHook264' has been removed in favor of 'autoreconfHook'"; # Added 2025-07-21 autoreconfHook271 = throw "'autoreconfHook271' has been removed in favor of 'autoreconfHook'"; # Added 2026-03-29 @@ -2539,6 +2540,7 @@ mapAliases { sourceHanSerifPackages.korean = throw "'sourceHanSerifPackages.korean' has been renamed to/replaced by 'source-han-serif'"; # Converted to throw 2025-10-27 sourceHanSerifPackages.simplified-chinese = throw "'sourceHanSerifPackages.simplified-chinese' has been renamed to/replaced by 'source-han-serif'"; # Converted to throw 2025-10-27 sourceHanSerifPackages.traditional-chinese = throw "'sourceHanSerifPackages.traditional-chinese' has been renamed to/replaced by 'source-han-serif'"; # Converted to throw 2025-10-27 + sourceHighlight = warnAlias "'sourceHighlight' has been renamed to/replaced by 'source-highlight'" source-highlight; # Added 2026-10-14 sourcehut = throw "'sourcehut.*' has been removed due to being broken and unmaintained"; # Added 2025-06-15 SP800-90B_EntropyAssessment = throw "'SP800-90B_EntropyAssessment' has been renamed to/replaced by 'sp800-90b-entropyassessment'"; # Converted to throw 2025-10-27 space-orbit = throw "'space-orbit' has been removed because it is unmaintained; Debian upstream stopped tracking it in 2011."; # Added 2025-06-08 @@ -2994,6 +2996,7 @@ mapAliases { xflux = throw "'xflux' has been removed as it was unmaintained"; # Added 2025-08-22 xflux-gui = throw "'xflux-gui' has been removed as it was unmaintained"; # Added 2025-08-22 xhtml1 = throw "'xhtml1' has been removed because it was superseded in 2018"; # Added 2026-07-24 + xhyve = throw "'xhyve' has been removed because x86_64-darwin is no longer supported"; # Added 2026-10-26 xinput_calibrator = xinput-calibrator; # Added 2025-08-28 xjump = throw "'xjump' has been removed as it is unmaintained"; # Added 2025-08-22 xkeyboardconfig = xkeyboard-config; # Added 2026-02-04 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0fcc237aa078..9ebe15337643 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1172,7 +1172,7 @@ with pkgs; ) ); - tw = ocamlPackages.tw.bin; + tw = ocamlPackages.tw; wrapRetroArch = retroarch-bare.wrapper; @@ -3522,12 +3522,7 @@ with pkgs; stack = # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables - ) + (if stdenv.hostPlatform.isDarwin then lib.id else haskell.lib.compose.justStaticExecutables) haskellPackages.stack; hlint = haskell.lib.compose.justStaticExecutables haskellPackages.hlint; @@ -3802,7 +3797,7 @@ with pkgs; ocamlPackages = recurseIntoAttrs ocaml-ng.ocamlPackages; ocamlPackages_latest = recurseIntoAttrs ocaml-ng.ocamlPackages_latest; - ocaml-crunch = ocamlPackages.crunch.bin; + ocaml-crunch = ocamlPackages.crunch; inherit (ocaml-ng.ocamlPackages_4_14) ocamlformat_0_19_0 @@ -3950,6 +3945,7 @@ with pkgs; swift-format swiftpm swiftpm2nix + swiftpmDepsUpdater ; swi-prolog-gui = swi-prolog.override { withGui = true; }; @@ -4633,12 +4629,6 @@ with pkgs; electron-bin = electron_43-bin; electron-chromedriver = electron-chromedriver_43; - automake = automake118x; - - automake116x = callPackage ../development/tools/misc/automake/automake-1.16.x.nix { }; - - automake118x = callPackage ../development/tools/misc/automake/automake-1.18.x.nix { }; - bandit = with python3Packages; toPythonApplication bandit; bazel = bazel_7; @@ -4951,12 +4941,7 @@ with pkgs; haskell-ci = # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables - ) + (if stdenv.hostPlatform.isDarwin then lib.id else haskell.lib.compose.justStaticExecutables) haskellPackages.haskell-ci; nexusmods-app-unfree = nexusmods-app.override { @@ -5057,12 +5042,7 @@ with pkgs; shake = # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables - ) + (if stdenv.hostPlatform.isDarwin then lib.id else haskell.lib.compose.justStaticExecutables) haskellPackages.shake; shellcheck = callPackage ../development/tools/shellcheck { @@ -5899,12 +5879,7 @@ with pkgs; matterhorn = # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables - ) + (if stdenv.hostPlatform.isDarwin then lib.id else haskell.lib.compose.justStaticExecutables) haskellPackages.matterhorn; inherit @@ -6577,8 +6552,8 @@ with pkgs; ### DEVELOPMENT / GO # the unversioned attributes should always point to the same go version - go = go_1_26; - buildGoModule = buildGo126Module; + go = go_1_27; + buildGoModule = buildGo127Module; go_latest = go_1_27; buildGoLatestModule = buildGo127Module; @@ -6693,14 +6668,6 @@ with pkgs; ]; }; - sbcl_2_6_7 = wrapLisp { - pkg = callPackage ../development/compilers/sbcl { version = "2.6.7"; }; - faslExt = "fasl"; - flags = [ - "--dynamic-space-size" - "3000" - ]; - }; sbcl_2_6_8 = wrapLisp { pkg = callPackage ../development/compilers/sbcl { version = "2.6.8"; }; faslExt = "fasl"; @@ -6709,7 +6676,15 @@ with pkgs; "3000" ]; }; - sbcl = sbcl_2_6_8; + sbcl_2_6_9 = wrapLisp { + pkg = callPackage ../development/compilers/sbcl { version = "2.6.9"; }; + faslExt = "fasl"; + flags = [ + "--dynamic-space-size" + "3000" + ]; + }; + sbcl = sbcl_2_6_9; sbclPackages = recurseIntoAttrs sbcl.pkgs; @@ -8322,12 +8297,7 @@ with pkgs; hledger-ui = haskell.lib.compose.justStaticExecutables haskellPackages.hledger-ui; hledger-web = # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables - ) + (if stdenv.hostPlatform.isDarwin then lib.id else haskell.lib.compose.justStaticExecutables) haskellPackages.hledger-web; hledger-utils = with python3.pkgs; toPythonApplication hledger-utils; @@ -9258,12 +9228,7 @@ with pkgs; bench = # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables - ) + (if stdenv.hostPlatform.isDarwin then lib.id else haskell.lib.compose.justStaticExecutables) haskellPackages.bench; ### GAMES @@ -10127,7 +10092,7 @@ with pkgs; nix-serve-ng = # FIXME: manually eliminate incorrect references on aarch64-darwin, # see https://github.com/NixOS/nixpkgs/issues/318013 - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then + if stdenv.hostPlatform.isDarwin then haskellPackages.nix-serve-ng else haskell.lib.compose.justStaticExecutables haskellPackages.nix-serve-ng; diff --git a/pkgs/top-level/linux-kernels.nix b/pkgs/top-level/linux-kernels.nix index b875144364c1..513f866e7aa9 100644 --- a/pkgs/top-level/linux-kernels.nix +++ b/pkgs/top-level/linux-kernels.nix @@ -49,6 +49,7 @@ in kernelPatches.bridge_stp_helper kernelPatches.request_key_helper kernelPatches.libbpf_C23_compat + kernelPatches.tools_128bit_types ]; }; @@ -57,6 +58,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; @@ -65,6 +67,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; @@ -73,6 +76,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; @@ -81,6 +85,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; @@ -115,6 +120,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; @@ -126,6 +132,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; linux_xanmod_stable = xanmodKernels { @@ -133,6 +140,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; linux_xanmod_latest = xanmodKernels { @@ -140,6 +148,7 @@ in kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.request_key_helper + kernelPatches.tools_128bit_types ]; }; } diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 229ceb7235b8..2e8c928b0e76 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -15297,17 +15297,17 @@ with self; GlibObjectIntrospection = buildPerlPackage { pname = "Glib-Object-Introspection"; - version = "0.051"; + version = "0.052"; src = fetchurl { - url = "mirror://cpan/authors/id/X/XA/XAOC/Glib-Object-Introspection-0.051.tar.gz"; - hash = "sha256-ZWlhHcyArBSCx8IiZLGujJw1HUmDUR65psX0ehAVAIk="; + url = "mirror://cpan/authors/id/X/XA/XAOC/Glib-Object-Introspection-0.052.tar.gz"; + hash = "sha256-VVtPEwiTm7MUHqRXCtEuBOJ8IzKcMCydyHJUCeEEkRE="; }; patches = [ - # Fix build with gobject-introspection 1.82 - # https://gitlab.gnome.org/GNOME/perl-glib-object-introspection/-/issues/7 + # Fix build with glib >=2.89.0 + # https://gitlab.gnome.org/GNOME/perl-glib-object-introspection/-/work_items/8 (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/perl-glib-object-introspection/-/commit/e5adffecdc9b321d1f8d91777b190b8ae08f8dd0.patch"; - hash = "sha256-/QAhKENSeP+QRoWx/v8EMFPOouZ36Qd78lhZpvInz7Q="; + url = "https://gitlab.gnome.org/GNOME/perl-glib-object-introspection/-/commit/22b1d2c8f3cdf9351f37791b27b36c139a145383.patch"; + hash = "sha256-5ZFKCr09OZlTs5SFaAVGkj6r55QMMmcOp0tAEVi1PPw="; }) ]; nativeBuildInputs = [ diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bc6e199611de..6ffd028f5d7d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3793,7 +3793,9 @@ self: super: with self; { cram = callPackage ../development/python-modules/cram { }; - cramjam = callPackage ../development/python-modules/cramjam { }; + cramjam = callPackage ../development/python-modules/cramjam { + inherit (pkgs) zstd; + }; crashtest = callPackage ../development/python-modules/crashtest { }; @@ -7957,6 +7959,8 @@ self: super: with self; { httpx2 = callPackage ../development/python-modules/httpx2 { }; + httpx2-pytest = callPackage ../development/python-modules/httpx2-pytest { }; + huawei-lte-api = callPackage ../development/python-modules/huawei-lte-api { }; inherit (callPackage ../development/python-modules/huaweicloudsdk { }) @@ -14923,7 +14927,9 @@ self: super: with self; { pydantic-graph = callPackage ../development/python-modules/pydantic-graph { }; - pydantic-monty = callPackage ../development/python-modules/pydantic-monty { }; + pydantic-monty = callPackage ../development/python-modules/pydantic-monty { + inherit (pkgs) zstd; + }; pydantic-scim = callPackage ../development/python-modules/pydantic-scim { }; @@ -15349,7 +15355,9 @@ self: super: with self; { pyiceberg = callPackage ../development/python-modules/pyiceberg { }; - pyiceberg-core = callPackage ../development/python-modules/pyiceberg-core { }; + pyiceberg-core = callPackage ../development/python-modules/pyiceberg-core { + inherit (pkgs) zstd; + }; pyicloud = callPackage ../development/python-modules/pyicloud { }; @@ -22478,6 +22486,12 @@ self: super: with self; { verlib2 = callPackage ../development/python-modules/verlib2 { }; + vermin = (toPythonModule (pkgs.vermin.override { python3Packages = self; })).overrideAttrs (old: { + # hack to not cause a rebuild of python3Packages.python-discovery + # FIXME remove on staging + nativeBuildInputs = lib.remove pythonMetadataCheckHook old.nativeBuildInputs; + }); + versioneer = callPackage ../development/python-modules/versioneer { }; versionfinder = callPackage ../development/python-modules/versionfinder { }; diff --git a/pkgs/top-level/swift-packages.nix b/pkgs/top-level/swift-packages.nix index 5bfebf059d07..41d67256dc53 100644 --- a/pkgs/top-level/swift-packages.nix +++ b/pkgs/top-level/swift-packages.nix @@ -35,6 +35,7 @@ let swift-foundation = null; swift-testing = null; enableRepl = false; + enableSourceKitLSP = false; } # Swift Driver is required when building the compiler’s Swift Syntax in the final toolchain. # Otherwise, symbols are stripped from it that are needed to build Swift Testing. @@ -61,8 +62,11 @@ in generateSplicesForMkScope, llvmPackages, makeScopeWithSplicing', + makeSetupHook, + nix, stdenvNoCC, swiftPackages, + writeShellScript, otherSplices ? generateSplicesForMkScope "swiftPackages", }: @@ -117,6 +121,68 @@ makeScopeWithSplicing' { ''; }; + llvm_readtapi = stdenvNoCC.mkDerivation { + pname = "llvm-readtapi"; + version = lib.getVersion llvmPackages.llvm; + + buildCommand = '' + mkdir -p "$out/bin" + ln -s ${lib.getExe' llvmPackages.llvm "llvm-readtapi"} "$out/bin/llvm-readtapi" + ''; + }; + + createToolchainStubsHook = + makeSetupHook + { + name = "create-toolchain-stubs-hook"; + substitutions = { + swiftPlatform = stdenvNoCC.hostPlatform.swift.platform; + }; + } + ( + # The Swift toolchain expects shared libraries to be found in `lib/swift/`, but we want them in + # just `lib`. Trying to patch them out is difficult, so we create text-based stubs on Darwin and symlink + # the libraries into the expected place on ELF platforms. + writeShellScript "create-toolchain-stubs-hook" '' + function createToolchainStubsHook() { + local dylib + for dylib in "''${!outputLib}/lib"/*; do + if isMachO "$dylib"; then + echo "generating text-based stubs for $dylib" + ${lib.getExe' llvm_readtapi "llvm-readtapi"} --filetype=tbd-v4 \ + "$dylib" -o "''${!outputDev}/lib/swift/@swiftPlatform@/$(basename "$dylib" .dylib).tbd" + elif isELF "$dylib"; then + echo "symlinking $dylib into the standard location" + ln -s "$dylib" "''${!outputDev}/lib/swift/@swiftPlatform@/$(basename "$dylib")" + fi + done + } + + postInstallHooks+=(createToolchainStubsHook) + '' + ); + + fixUnhelpfulCmakeRpathsHook = makeSetupHook { name = "fix-unhelpful-cmake-rpaths-hook"; } ( + # Swift disables environmental rpaths and tries to set `$ORIGIN`. The latter is probably fine, but the former + # messes with the tooling in Nixpkgs. This hook removes both of them just to be safe. + writeShellScript "fix-unhelpful-cmake-rpaths-hook" '' + function fixUnhelpfulCmakeRpaths() { + local f + while IFS= read -d "" f; do + if [[ "$(basename "$f")" = CMakeLists.txt || "''${f##*.}" = cmake ]]; then + echo "removing unhelpful rpath settings from '$f'" + # CMake allows non-zero numbers (including floating point numbers) to be truthy values, but assume that + # Swift isn’t doing something odd like using 3.141592653589793 as a truth value. + sed -E -i "$f" \ + -e 's/(^|\s|CMAKE_)INSTALL_RPATH "[^"]*"/\1INSTALL_RPATH ""/' \ + -e 's/(^|\s|CMAKE_)INSTALL_REMOVE_ENVIRONMENT_RPATH (1|ON|TRUE|Y|YES)/\1INSTALL_REMOVE_ENVIRONMENT_RPATH OFF/' + fi + done < <(grep -rlZ RPATH) + } + postPatchHooks+=(fixUnhelpfulCmakeRpaths) + '' + ); + /** Provides a list of patches for the specified major.minor version. @@ -174,7 +240,14 @@ makeScopeWithSplicing' { buildSwiftPackages = bootstrapStage1SwiftPackages; - inherit llvm_libtool patchesForVersion swift_sources; + inherit + llvm_libtool + patchesForVersion + swift_sources + # Hooks to make it easier to deal with Swift packaging + createToolchainStubsHook + fixUnhelpfulCmakeRpathsHook + ; llvmPackages_upstream = llvmPackages; @@ -184,13 +257,78 @@ makeScopeWithSplicing' { swift-foundation = null; swift-testing = null; enableRepl = false; + enableSourceKitLSP = false; }; }; f = lib.extends autoCalledPackages ( self: + let + # Can’t be defined in `by-name` because it’s a function. + swiftpmDepsUpdater = + let + updateScript = writeShellScript "swiftpm-deps-updater.sh" '' + set -o errexit + + resolve_swift_package=$1 + source_root=$2 + + [[ -n "$version" ]] || version="$UPDATE_NIX_OLD_VERSION" + [[ -n "$attr_path" ]] || attr_path="$UPDATE_NIX_ATTR_PATH" + + # The SwiftPM deps updater assumes some other updater has run and updated the version attribute. + new_version=$( + ${lib.getExe' nix "nix-instantiate"} --eval --raw --expr "with import ./. {}; lib.getVersion $attr_path" + ) + + if [ "$version" = "$new_version" ]; then + exit 0 + fi + + export PATH=${lib.getBin self.swift}/bin:${lib.getBin self.swiftpm}/bin:$PATH + + src=$(${lib.getExe' nix "nix-instantiate"} --eval --raw -A $attr_path.src) + package_file=$(${lib.getExe' nix "nix-instantiate"} --eval --raw -A $attr_path.meta.position | cut -d: -f1) + + if [ -n "$resolve_swift_package" ]; then + resolved_file=$(dirname "$package_file")/Package.resolved + + scratch_dir=$(mktemp -d) + trap 'rm -rf -- "$scratch_dir"' EXIT + + cp -r "$src/" "$scratch_dir/source/" + chmod -R u+w "$scratch_dir/source" + + pushd "$scratch_dir/$source_root" > /dev/null + swift package resolve &> /dev/null + cp Package.resolved "$resolved_file" + popd > /dev/null + echo "done resolving" >&2 + else + resolved_file=$src/Package.resolved + fi + + deps_hash=$(${lib.getExe self.prefetch-swiftpm-deps} "$resolved_file") + sed -e "s|$(${lib.getExe' nix "nix-instantiate"} --eval --raw -A $attr_path.swiftpmDeps.vendorStaging.outputHash)|$deps_hash|" --in-place "$package_file" + ''; + in + { + sourceRoot ? "source", + # Some packages do not provide `Package.resolved`. If true, one will be generated and saved next to the package. + resolveSwiftPackage ? false, + }: + { + name = "swiftpm-deps-updater"; + command = [ + updateScript + resolveSwiftPackage + sourceRoot + ]; + supportedFeatures = [ "silent" ]; + }; + in { stdenv = clangStdenv; - inherit swift_release; + inherit swiftpmDepsUpdater swift_release; } // lib.optionalAttrs config.allowAliases { # Compatibility aliases for the old Swift packaging.