Commit Graph

46 Commits

Author SHA1 Message Date
R. Ryantm
532349ff42 cnquery: 11.48.0 -> 11.49.0 2025-04-14 16:38:13 +00:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Defelo
04e44c5dc2
cnsprcy: fix updateScript 2025-04-08 01:00:49 +02:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Arne Keller
fda31127f2
cnsprcy : 0.2.0 -> 0.3.2 (#395109) 2025-04-07 11:32:02 +02:00
R. Ryantm
e60af77fe3 cnquery: 11.46.2 -> 11.48.0 2025-04-05 05:58:39 +00:00
maryjane
2d41bd05c2 cnsprcy: 0.2.0 -> 0.3.2 2025-04-03 10:40:43 +01:00
R. Ryantm
2e5ec329da cntb: 1.5.3 -> 1.5.4 2025-04-02 20:27:40 +00:00
R. Ryantm
6753845f71 cnquery: 11.45.1 -> 11.46.2 2025-03-24 18:09:21 +00:00
Arne Keller
2c3dbb1288
cns11643-kai: init at 0-unstable-2025-01-13 (#363429) 2025-03-22 23:23:27 +01:00
rypervenche
53249b4d4b
cns11643-kai: init at 0-unstable-2025-01-13 2025-03-22 15:07:05 -05:00
Wolfgang Walther
507e623fca
cnquery: 11.41.0 -> 11.45.1 (#385911) 2025-03-16 12:33:44 +00:00
Sigmanificient
e6fe6f4b7c treewide: remove unused rec expressions 2025-03-13 21:34:05 +01:00
R. Ryantm
a24361a030 cnquery: 11.41.0 -> 11.45.1 2025-03-13 15:49:40 +00: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
R. Ryantm
98b6b67b49 cntb: 1.5.2 -> 1.5.3 2025-02-27 11:33:21 +00:00
Peder Bergebakken Sundt
5aba99242e treewide: fix typos in comments
Made with

```shell
git restore .
fd '\.nix$' pkgs/ --type f -j1 -x bash -xc "$(cat <<"EOF"
    typos --no-check-filenames --write-changes "$1"
    git diff --exit-code "$1" && exit
    #( git diff "$1" | grep -qE "^\+ +[^# ]") && git restore "$1"
    count1="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> ' | wc -l )"
    count2="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> (<span style="color:#f8f8f2;"> *</span>)?<span style="color:#75715e;">.*</span>$' | wc -l )"
    [[ $count1 -ne $count2 ]] && git restore "$1"
EOF
)" -- {}
```

and filtered with `GIT_DIFF_OPTS='--unified=15' git -c interactive.singleKey=true add --patch`

I initially tried using the tree-sitter cli, python bindings and even ast-grep through various means, but this is what I ended up with.
2025-02-24 10:44:41 +01:00
R. Ryantm
bcc7982697 cnquery: 11.39.0 -> 11.41.0 2025-02-15 18:37:42 +00:00
R. Ryantm
c4f89c6536 cntb: 1.4.12 -> 1.5.2 2025-02-14 01:48:21 +00:00
K900
d44bbfd49c Merge remote-tracking branch 'origin/master' into staging-next 2025-02-02 00:08:43 +03:00
R. Ryantm
b317285259 cnquery: 11.37.1 -> 11.39.0 2025-02-01 19:18:08 +00:00
K900
b6f676fbd2 Merge remote-tracking branch 'origin/master' into staging-next 2025-01-27 15:42:36 +03:00
R. Ryantm
bc8cf25835 cntr: 1.6.0 -> 1.6.1 2025-01-26 21:21:25 +00:00
Alyssa Ross
6723c183bf
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/by-name/ca/cargo-public-api/package.nix
	pkgs/by-name/ju/just/package.nix
	pkgs/by-name/kd/kdlfmt/package.nix
	pkgs/by-name/mo/mountpoint-s3/package.nix
	pkgs/by-name/wa/wayidle/package.nix
2025-01-26 19:49:51 +01:00
talyz
a73a92d6bd
cnijfilter_4_00: Fix build 2025-01-26 10:01:42 +01:00
Alyssa Ross
53de5140ae
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/applications/editors/vim/plugins/non-generated/nvim-spectre/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/sg-nvim/default.nix
	pkgs/by-name/ce/cedar/package.nix
	pkgs/by-name/gn/gnome-podcasts/package.nix
	pkgs/by-name/ru/rust-analyzer-unwrapped/package.nix
	pkgs/by-name/sy/systemctl-tui/package.nix
	pkgs/by-name/ti/tinty/package.nix
2025-01-24 16:40:22 +01:00
Alyssa Ross
63bff8c132
treewide: migrate to fetchCargoVendor, batch 1
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

It should be possible to reproduce this diff.  To do so, get the list
of files changed by this commit, e.g. with git diff --name-only, then
run the following two commands, each with that list of files as their
standard input:

	xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/'
	cut -d / -f 4 | xargs -n 1 nix-update --version=skip

This will take a long time.  It might be possible to parallelize it
using xargs' -P option.  I haven't tested it.
2025-01-23 11:46:43 +01:00
R. Ryantm
58855abbc5 cnquery: 11.36.0 -> 11.37.1 2025-01-19 23:17:36 +00:00
R. Ryantm
58a7d30589 cntr: 1.5.4 -> 1.6.0 2025-01-13 13:03:47 +00:00
R. Ryantm
e289667cfe cnquery: 11.35.0 -> 11.36.0 2025-01-07 13:38:51 +00:00
Peder Bergebakken Sundt
0cd04d3036 treewide: migrate fetchgit rev = "refs/tags/..." to tag 2025-01-04 00:19:17 +01:00
Weijia Wang
7f5756b006
cnijfilter2: add patch to fix missing import (#369086) 2025-01-03 23:41:37 +01:00
Deadbeef
913c5d2636 cnijfilter2: add patch to fix missing import 2024-12-29 19:34:51 +08:00
R. Ryantm
078b492ba3 cnquery: 11.34.0 -> 11.35.0 2024-12-22 16:35:19 +00:00
R. Ryantm
b32e3e659c cnquery: 11.31.1 -> 11.34.0 2024-12-11 16:56:18 +00: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
Ramses
69c07a1590
treewide: adopt/co-maintain some packages (#355700) 2024-12-05 09:29:28 +01:00
R. Ryantm
cf1bb0ec9f cnquery: 11.19.1 -> 11.31.1 2024-11-24 04:45:05 +00:00
Fernando Rodrigues
03b4c53484
cntr: add sigmasquadron as co-maintainer
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-23 20:13:43 -03: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
Andrea Ciceri
e1973e0aa2
cntb: fix darwin 2024-09-15 12:23:03 +02:00
Scott Edlund
4fe6d22a94 cntb: 1.4.8 -> 1.4.12 2024-09-12 15:52:11 +02:00
supinie
3a79d83d50 cnsprcy: init at 0.2.0 2024-08-09 13:55:07 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Andrea Ciceri
799100a30e
cntb: 1.4.6 -> 1.4.8 2024-02-27 13:02:28 +01:00
Andrea Ciceri
044a8a9a5a cntb: init at 1.4.6 2023-09-22 12:21:36 +00:00