Commit Graph

38 Commits

Author SHA1 Message Date
Emily
fdb820602b treewide: drop simple x86_64-darwin mentions
To reproduce:

    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: nix-x86_64-darwin
          language: nix
          rule:
            any:
              - pattern: "\"x86_64-darwin\""
                kind: list_expression > string_expression
              - pattern:
                  context: "{ \"x86_64-darwin\" = $EXPR; }"
                  selector: binding
              - pattern:
                  context: "{ x86_64-darwin = $EXPR; }"
                  selector: binding
          fix:
            template: ""
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-first-x86_64-darwin
          language: json
          rule:
            kind: object > pair:nth-child(1)
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandEnd: { regex: "," }
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-x86_64-darwin
          language: json
          rule:
            kind: object > pair
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandStart: { regex: "," }
        ' pkgs
    $ git restore pkgs/by-name/om/omnix/package.nix
    $ git diff --name-only -z \
        | nix shell nixpkgs/3b32825de172d0bc85664f495edb096b10862524#gnused \
            -c xargs -0 sed -i '/^$/N; /^\n\? \+$/d'
    $ treefmt
2026-07-15 03:58:16 +01:00
Weijia Wang
6ad6f499dd qt6.qtwebengine: drop obsolete patch 2026-04-14 15:34:35 +02:00
K900
daeb684bfa Merge remote-tracking branch 'origin/master' into staging-next 2026-02-12 15:22:32 +03:00
K900
3c4102eef4 Merge remote-tracking branch 'origin/staging-next' into staging 2026-02-06 15:58:23 +03:00
quantenzitrone
837ce569f8 various: rename references from libXtst to libxtst
this shouldn't create any rebuilds
2026-02-06 00:29:24 +01:00
quantenzitrone
cbb29acbad various: rename references from libXScrnSaver to libxscrnsaver
this shouldn't create any rebuilds
2026-02-06 00:29:23 +01:00
quantenzitrone
43cdce2c39 various: rename references from libXrandr to libxrandr
this shouldn't create any rebuilds
2026-02-06 00:29:06 +01:00
quantenzitrone
77837f424c various: rename references from libXi to libxi
this shouldn't create any rebuilds
2026-02-06 00:25:56 +01:00
quantenzitrone
8382a53a4c various: rename references from libXcursor to libxcursor
this shouldn't create any rebuilds
2026-02-06 00:24:45 +01:00
K900
71adc1a57a qt6: 6.10.1 -> 6.10.2 2026-02-03 11:47:05 +03:00
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
K900
d563d69b50 qt6.qtwebengine: backport crash fix recommended by KDE 2026-01-10 13:01:30 +03:00
Sizhe Zhao
28e43000db qt6.qtwebengine: fix build 2025-10-19 17:37:31 +08:00
K900
13fda0b4b2 qt6: 6.9.3 -> 6.10.0 2025-10-07 21:23:08 +03:00
K900
5c43e78b60 qt6.qtwebengine: enable VA-API support
Requires vendored libvpx, but the end user experience is much better for it.
2025-10-07 21:23:08 +03:00
Wolfgang Walther
5e1f5b623b Merge branch 'staging-next' into staging 2025-10-05 11:40:56 +02:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
K900
631c6a2ff2 qt6.qtwebengine: replace revert with better patch from upstream 2025-10-04 13:21:07 +03:00
K900
5cfa0482b1 qt6.qtwebengine: revert commit that breaks graphics acceleration on Mesa 25.2 2025-08-28 12:52:18 +03:00
K900
5c99d67b86 qt6: 6.9.1 -> 6.9.2 2025-08-27 18:32:46 +03:00
Wolfgang Walther
90604d95bc Merge branch 'staging-next' into staging 2025-07-24 14:33:09 +02:00
Wolfgang Walther
535b720589 Merge branch 'master' into staging-next 2025-07-24 14:27:50 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
K900
ce3414c7a6 qt6.qtwebengine: drop unused git dependency
More git reverse closure reduction.
2025-07-19 16:32:23 +03:00
nixpkgs-ci[bot]
2d09237398 Merge staging-next into staging 2025-07-10 18:06:37 +00:00
Sizhe Zhao
9bef2747f7 qt6.qtwebengine: fix build on darwin 2025-07-10 20:21:06 +08:00
Sizhe Zhao
1eb4130494 qt6.qtwebengine: fix build for gcc 2025-07-10 20:11:32 +08:00
Sizhe Zhao
7f96522ec7 qt6.qtwebengine: fix build 2025-07-10 19:41:21 +08:00
Robert Schütz
2cacd479ff qt6Packages.qtwebengine: drop upstreamed patch 2025-06-11 18:05:17 -07:00
Arnout Engelen
14aa109418 qt6.qtwebengine: remove nondeterminism from build
This patch makes sure the intermediate resource
`QtWebEngineCore_objects.rsp` is sorted, which
appears to remove the unreproducibility.
2025-04-22 12:41:47 +02:00
K900
6f095be4bd qt6: 6.8.3 -> 6.9 2025-04-02 10:00:16 +03:00
K900
e313574366 qt6: 6.8.2 -> 6.8.3 2025-03-27 13:38:56 +03:00
Zhong Jianxin
85c1c3ca3f qt6.qtwebengine: fix build on darwin
- Disable metal shader compilation
- Apply upstream zutil.h patch that fixes clang 18 and later
- Apply upstream libpng patch that fixes clang 18 and later
- Drop `autoSignDarwinBinariesHook` on aarch64-darwin, no longer necessary
2025-01-06 01:35:40 +08:00
Zhong Jianxin
af397f4a33 qt6.qtwebengine: make the AppleClang substitution unconditional
So we won't break darwin build if the package is updated
2024-12-31 20:11:19 +08:00
K900
b29f28a0eb qt6.qtwebengine: backport aarch64 build fix for xnnpack 2024-12-25 14:34:19 +03:00
Silvan Mosberger
84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
K900
d209d800b7 treewide: mesa -> libgbm (where appropriate)
This will likely break things, but anything broken should be easily noticeable.
2024-12-05 12:37:39 +03:00
K900
2873053688 qt6: 6.8.0 -> 6.8.1, reorganize everything
- move patches to their corresponding modules
- inline patches list for qtbase into the expression itself
- don't treat patches as series, as they are not
- clean up outdated headers from all the patches
- drop doc tools patch, replace it with setting newly added cmake var in a hook
- add a new patch to disable SBOM generation that's very broken with split installs
2024-12-02 13:39:36 +03:00