Files
nixpkgs/pkgs/development/libraries
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
..
2025-12-12 23:01:23 +01:00
2025-12-22 10:35:51 +03:00
2025-12-22 13:36:30 +08:00
2026-01-10 22:12:03 +01:00
2026-01-12 06:08:14 +00:00
2026-01-15 11:20:38 +03:00
2026-01-02 12:53:33 -04:00
2026-01-21 00:54:18 +01:00
2026-01-14 22:22:33 +01:00
2026-01-02 12:54:22 -04:00
2026-01-19 21:12:15 +01:00
2025-12-18 17:18:21 -05:00
2025-12-16 13:47:12 -04:00
2025-10-15 14:21:00 +02:00
2026-01-05 23:22:07 -05:00
2025-12-31 17:47:05 +01:00
2025-10-05 10:50:41 +02:00
2025-11-03 10:50:00 +01:00
2025-10-09 21:19:55 +01:00
2025-12-18 22:51:11 +00:00
2026-01-19 09:45:22 +00:00
2026-01-06 18:21:51 -04:00
2025-12-05 20:31:47 -04:00
2025-11-02 11:06:43 +01:00
2025-10-07 00:40:56 +00:00
2026-01-06 06:23:07 -08:00
2026-01-20 14:05:43 +00:00
2026-01-08 22:08:10 +01:00
2026-01-20 22:42:33 +01:00
2026-01-03 19:11:51 +01:00
2025-12-08 12:08:02 +00:00
2026-01-11 00:14:22 +01:00
2026-01-10 11:11:06 +00:00
2025-12-29 06:04:57 -08:00
2025-11-15 12:16:47 +01:00
2026-01-02 18:07:10 +00:00
2025-11-27 09:53:15 +01:00
2025-12-28 12:33:08 +00:00
2026-01-18 15:28:17 +01:00
2026-01-01 01:59:17 -08:00
2025-12-24 20:08:16 +00:00
2026-01-09 11:23:04 +08:00
2025-12-18 06:43:54 +00:00