Commit Graph

36 Commits

Author SHA1 Message Date
tree-sapii
5827b21db0 codeql: 2.25.6 -> 2.26.3 2026-08-12 21:30:27 -04:00
R. Ryantm
b95d2aac84 codeql: 2.25.5 -> 2.25.6 2026-06-04 21:31:03 +00:00
R. Ryantm
0994e3d808 codeql: 2.25.4 -> 2.25.5 2026-05-22 11:17:58 +00:00
R. Ryantm
7d1394876c codeql: 2.25.3 -> 2.25.4 2026-05-10 03:22:27 +00:00
R. Ryantm
5f8a272a4a codeql: 2.25.2 -> 2.25.3 2026-05-01 18:24:26 +00:00
R. Ryantm
63b6b41948 codeql: 2.25.1 -> 2.25.2 2026-04-15 15:05:02 +00:00
R. Ryantm
7213d375b5 codeql: 2.24.3 -> 2.25.1 2026-03-28 17:02:18 +00:00
R. Ryantm
9edb62634a codeql: 2.24.2 -> 2.24.3 2026-03-08 09:09:18 +00:00
R. Ryantm
53055dda17 codeql: 2.24.1 -> 2.24.2 2026-02-20 14:52:22 +00:00
R. Ryantm
8853e9df01 codeql: 2.24.0 -> 2.24.1 2026-02-06 23:41:58 +00:00
R. Ryantm
aa47669d4f codeql: 2.23.3 -> 2.24.0 2026-01-31 01:51:31 +00: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
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
R. Ryantm
813130a339 codeql: 2.23.0 -> 2.23.3 2025-10-17 22:17:19 +00:00
R. Ryantm
5da17c31f4 codeql: 2.22.4 -> 2.23.0 2025-09-12 19:19:07 +00:00
R. Ryantm
3a5eb03d62 codeql: 2.22.3 -> 2.22.4 2025-08-21 17:12:07 +00:00
R. Ryantm
f3821258f3 codeql: 2.22.2 -> 2.22.3 2025-08-07 17:20:15 +00:00
R. Ryantm
91775829fc codeql: 2.22.1 -> 2.22.2 2025-07-29 20:38:23 +00:00
R. Ryantm
d63fec2de2 codeql: 2.21.4 -> 2.22.1 2025-06-28 04:26:03 +00:00
R. Ryantm
27f6049036 codeql: 2.21.3 -> 2.21.4 2025-06-09 06:28:38 +00:00
R. Ryantm
0239196acb codeql: 2.21.2 -> 2.21.3 2025-05-19 08:51:18 +00:00
R. Ryantm
6cc0482380 codeql: 2.21.1 -> 2.21.2 2025-05-08 10:33:35 +00:00
R. Ryantm
8a79ed05ba codeql: 2.21.0 -> 2.21.1 2025-04-28 09:50:34 +00:00
R. Ryantm
e8f073f458 codeql: 2.20.7 -> 2.21.0 2025-04-10 01:11:03 +00:00
R. Ryantm
3813e43ce9 codeql: 2.20.6 -> 2.20.7 2025-03-19 04:30:01 +00:00
R. Ryantm
1de76b0446 codeql: 2.20.5 -> 2.20.6 2025-03-06 18:47:19 +00:00
Guy Chronister
ddd1728895 codeql: 2.20.4 -> 2.20.5 2025-02-23 11:30:38 -06:00
R. Ryantm
bc7ba2fc70 codeql: 2.20.3 -> 2.20.4 2025-02-18 05:21:42 +00:00
R. Ryantm
8ccbed29da codeql: 2.20.2 -> 2.20.3 2025-02-03 23:29:19 +00:00
R. Ryantm
a5cf452a1a codeql: 2.20.1 -> 2.20.2 2025-01-23 19:00:54 +00:00
R. Ryantm
05314bde96 codeql: 2.20.0 -> 2.20.1 2025-01-10 03:54:13 +00:00
R. Ryantm
53d760beee codeql: 2.19.4 -> 2.20.0 2025-01-01 05:25:13 +01:00
Silvan Mosberger
4f0dadbf38 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 b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
R. Ryantm
e998856e59 codeql: 2.19.3 -> 2.19.4 2024-12-08 20:26:04 +00:00
R. Ryantm
90fb183cc7 codeql: 2.19.1 -> 2.19.3 2024-11-12 10:50:31 +00:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00