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
Guy Chronister
6d504d064d _0xpropo: switch to finalAttrs pattern 2026-06-02 09:08:28 -05:00
Sandro
e7392c73f8 _010editor: 16.0.3 -> 16.0.4 (#501032) 2026-04-04 17:28:44 +00:00
Sandro
bc23fd0a90 _010editor: add updatescript (#493167) 2026-04-04 17:28:13 +00:00
Majitelll
429c3474d7 _010editor: 16.0.3 -> 16.0.4 2026-03-18 15:12:14 +01:00
Guy Chronister
f6cd0e2059 _010editor: add updatescript
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
2026-02-23 08:34:14 -06:00
eljamm
6fb50c3a89 _010editor: 16.0.2 -> 16.0.3
Changelog: https://sweetscape.com/010editor/release_notes.html
2026-02-23 08:51:06 +01:00
Gergő Gutyina
e37ec71777 _0x: switch to fetchCrate (#483890) 2026-01-31 13:20:42 +00:00
Aliaksandr
2e70b8ce9e _0x: switch to fetchCrate 2026-01-26 08:56:36 +02: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
R. Ryantm
df4b86fd29 _0xproto: 2.501 -> 2.502 2026-01-19 12:30:53 +00:00
R. Ryantm
8dace0abc4 _0xproto: 2.500 -> 2.501 2026-01-07 03:04:05 +00:00
Guy Chronister
ac3f4b2296 _010editor: 16.0.1 -> 16.0.2 2025-10-12 14:26:05 -05:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Fabián Heredia Montiel
15b9a03c27 _010editor: 16.0 -> 16.0.1 (#437420) 2025-08-31 10:59:00 -06:00
Majitelll
6a6ea73076 _010editor: 16.0 -> 16.0.1 2025-08-28 09:58:36 +02:00
Kenichi Kamiya
6fae09968f _0xproto: add No-Ligatures variant
This variant was introduced in v2.400
2025-08-28 03:48:17 +09:00
Kenichi Kamiya
99f0d4ead3 _0xproto: 2.100 -> 2.500
Diff: https://github.com/0xType/0xProto/compare/2.100...2.500
Changelog: https://github.com/0xType/0xProto/blob/2.500/CHANGELOG.md?plain=1#L3-L36

Required to add `stripRoot=false`, to follow archive format changes in 2.200
2025-08-28 03:48:17 +09:00
Kenichi Kamiya
453b5f7c26 _0xproto: add updateScript 2025-08-28 03:48:17 +09:00
qzylinra
5f6fc64897 _0verkill: drop
No maintainer. The upstream project has not been updated for 15 years.
2025-08-27 12:35:16 +08:00
David Wronek
6c6fdfe3d8 _0xffff: init at 0.10
Signed-off-by: David Wronek <david@mainlining.org>
2025-08-26 12:17:59 +02:00
eljamm
888d6caa8f _010editor: add source for aarch64-darwin; refactor 2025-08-17 19:34:46 +02:00
Majitelll
e2881bf54c _010editor: 15.0.2 -> 16.0 2025-08-17 10:36:52 +02:00
mivorasu
7cf77aa671 treewide: prefix unstable versions with 0-unstable 2025-07-26 10:19:34 +00:00
Weijia Wang
84d92db4c4 _0verkill: unpin autotools 2025-07-22 05:14:43 +02:00
Guy Chronister
33c8949e5f treewide: refactor meta section part 2
adapta-gtk-theme: remove maintainers.

Co-authored-by: Shawn8901 <shawn8901@googlemail.com>
2025-06-23 12:46:23 +00:00
Guy Chronister
f2a2cfee8a treewide: refactor meta section 2025-06-21 13:12:59 +00:00
liberodark
c6729488de treewide: remove with lib Part 4 2025-06-07 00:48:50 +02:00
Guy Chronister
c9ee6837d4 _010editor: 15.0.1 -> 15.0.2
Update darwin hash
2025-04-05 08:32:43 -05:00
Peder Bergebakken Sundt
357d2530e5 treewide: substitute pname for strings
Inspired by https://github.com/NixOS/nixpkgs/pull/387725#issuecomment-2704943777, script is based on https://github.com/NixOS/nixpkgs/pull/336172 using what i learned in https://github.com/NixOS/nixpkgs/pull/386865, part of https://github.com/NixOS/nixpkgs/issues/346453

Should be zero rebuilds.

All candidates were made using:

```shell

export NIXPKGS_ALLOW_UNFREE=1
export NIXPKGS_ALLOW_INSECURE=1
export NIXPKGS_ALLOW_BROKEN=1

git-wait restore .

test -s packages.json || ( set -x;
  time nix-env --extra-experimental-features no-url-literals --option system x86_64-linux -f ./. -qaP --json --meta --drv-path --out-path --show-trace --no-allow-import-from-derivation --arg config '{ allowAliases = false; }' > packages.json
)

list_attrpath_fname_col() {
    jq <packages.json 'to_entries[] | select(.value.meta.position==null|not) | "\(.key)\t\(.value.meta.position)"' -r |
        sed -e "s#\t$(realpath .)/#\t#" |
        sed -e 's#:\([0-9]*\)$#\t\1#' |
        grep . |
        grep -iv haskell |
        grep -iv /top-level/ |
        grep -iv chicken |
        grep pkgs/by-name/ |
        grep -iv build |
        grep -E '/(package|default)\.nix'
}

FLOCKDIR="$(mktemp -d)"
N_WORKERS=4
while read attrpath fname col; do
    grep -qE 'repo *= *("\$\{pname\}"|pname);' "$fname" || continue

    echo | (
        # mutex on fname
        flock --nonblock 200 || {
            >&2 echo "failed to aquire lock for $fname"
            exit 1
        }

        echo "$attrpath"
        data="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json)" || exit
        test -n "$data" || exit
        pname="$(jq <<<"$data" .pname -r)"
        test -n "$pname" || exit

        (set -x
            sd -F '${pname}'  "$pname"         "$fname"
            sd -F ' = pname;' " = \"$pname\";" "$fname"
        )

        data2="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json)"
        if [[ "$data" = "$data2" ]]; then
            (set -x; git-wait add "$fname")
        else
            (set -x; git-wait restore "$fname")
            exit
        fi

        (set -x
            sd -F ' rec {' ' {' "$fname"
        )

        data3="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json 2>/dev/nul)"

        if [[ "$data" = "$data3" ]]; then
            (set -x; git-wait add "$fname")
        else
            (set -x; git-wait restore "$fname")
        fi

    ) 200>"$FLOCKDIR"/"$(sha256sum - <<<"$fname" | cut -d' ' -f1)".lock &

    while [[ $(jobs -p | wc -l) -ge $N_WORKERS ]]; do
        wait -n < <(jobs -p) || true
    done

done < <(list_attrpath_fname_col)

wait

git restore .

time nix-env --extra-experimental-features no-url-literals --option system x86_64-linux -f ./. -qaP --json --meta --drv-path --out-path --show-trace --no-allow-import-from-derivation --arg config '{ allowAliases = false; }' > packages2.json
```

`diff packages{,2}.json` is empty, indicating that no package nor src derivation has changed.
I checked and cherry-picked the changes using `GIT_DIFF_OPTS='-u15' git -c interactive.singleKey=true add --patch`
2025-03-11 23:55:31 +01:00
Anderson Torres
cab2a1296e treewide: remove AndersonTorres from maintainers
As I said before, I want to keep a narrow focus on Nixpkgs. Now that I am back
at undergrad, this focus should be even narrower: I will keep my eyes on Emacs,
and nothing else.
2025-02-12 00:36:02 -03: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
Arne Keller
dbd30ceb34 _010editor: init at 15.0.1 (#331313) 2024-12-09 06:34:18 +01:00
eljamm
f4be7b83f1 _010editor: init at 15.0.1
Co-authored-by: nicoo <nicoo@mur.at>
Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
2024-12-05 00:59:34 +01: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
Anderson Torres
f0e64ce16f treewide: migrate packages maintained by AndersonTorres to by-name
Manual migration for the sake of by-name migration is no longer discouraged
since #340235.
2024-09-16 14:26:47 -03:00
R. Ryantm
0a2e184b49 _0xpropo: 1.000 -> 1.100 2024-05-07 12:19:47 +00:00
Vinny Meller
39447b3f07 _0xpropo: init at 1.000 2024-04-11 01:08:00 -04:00