Commit Graph

72 Commits

Author SHA1 Message Date
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
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Gaetan Lepage
bfe27cf81c treewide: use a string for versionCheckProgramArg where possible 2025-04-05 14:45:13 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
awwpotato
3d1aab41f7
cyclone: unbreak on GCC 14 2025-03-29 17:08:07 -07:00
jopejoe1
7d30c40939 treewide: migrate packages to pkgs/by-name, again 2025-03-25 17:00:45 +01:00
Sigmanificient
e6fe6f4b7c treewide: remove unused rec expressions 2025-03-13 21:34:05 +01: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
h7x4
e26cf06e32
cyme: add shell completion and manpages 2025-03-11 09:19:19 +01:00
R. Ryantm
9085b9b9de cyclonedx-python: 5.2.0 -> 5.3.0 2025-03-08 05:35:33 +00:00
h7x4
e70e4b5dc7
cyme: 1.8.5 -> 2.1.2 (#384754) 2025-02-26 00:43:45 +01:00
Kenichi Kamiya
ff707f8bb0
cyme: 1.8.5 -> 2.1.2
Changelog: https://github.com/tuna-f1sh/cyme/blob/v2.1.2/CHANGELOG.md
Diff: https://github.com/tuna-f1sh/cyme/compare/v1.8.5...v2.1.2

[libusb is an optional dependency since 2.0.0](9b60ec40e1)
2025-02-24 21:41:00 +09:00
Kenichi Kamiya
a5ac07cf83
cyme: prefer versionCheckHook rather than testers.testVersion
bd352cd678/doc/stdenv/passthru.chapter.md (L84)
2025-02-24 21:05:37 +09:00
R. Ryantm
689fc132a0 cyclonedx-python: 5.1.2 -> 5.2.0 2025-02-22 21:03:13 +00:00
Fabian Affolter
ed5b492c7e cyclonedx-python: 4.6.0 -> 5.1.2
Diff: https://github.com/CycloneDX/cyclonedx-python/compare/refs/tags/v4.6.0...v5.1.2

Changelog: https://github.com/CycloneDX/cyclonedx-python/releases/tag/v5.1.2
2025-02-14 00:41:32 +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
Martin Weinelt
35ab2d574c
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/by-name/ca/cargo-show-asm/package.nix
- pkgs/by-name/ja/jay/package.nix
2025-02-03 20:29:14 +01:00
Sandro
3e863cd070
cyberduck: 9.0.0.41777 -> 9.1.2.42722 (#374834) 2025-02-03 19:59:49 +01:00
Alyssa Ross
ce26e2f25a
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/by-name/ca/cargo-bundle-licenses/package.nix
	pkgs/by-name/ca/cargo-semver-checks/package.nix
	pkgs/by-name/co/comrak/package.nix
	pkgs/by-name/kr/krabby/package.nix
	pkgs/by-name/pr/pretix/plugins/passbook/package.nix
	pkgs/by-name/ua/uair/package.nix
	pkgs/development/python-modules/dlinfo/default.nix
2025-02-02 19:43:40 +01:00
R. Ryantm
682a3b1657 cyberpunk-neon: 0-unstable-2024-11-07 -> 0-unstable-2025-02-01 2025-02-02 10:16:52 +00:00
Martin Weinelt
220bc7617a
treewide: migrate to fetchCargoVendor, batch 1 (#376038) 2025-01-23 15:24:48 +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
nixpkgs-ci[bot]
a7ee3fbaaa
Merge staging-next into staging 2025-01-23 00:14:33 +00:00
R. Ryantm
88c82c82b7 cyrus-imapd: 3.10.0 -> 3.10.1 2025-01-22 12:30:25 +00:00
Dimitar Nestorov
1a5c9203e1
cyberduck: 9.0.0.41777 -> 9.1.2.42722 2025-01-19 20:30:00 +02:00
Wolfgang Walther
546ece569b
libpq: init at 17.2
Resolves #61580
2025-01-19 12:49:21 +01:00
Moraxyc
1c22128caa
cyrus-imapd: fix sieveshell 2025-01-14 22:16:52 +08:00
Peder Bergebakken Sundt
0cd04d3036 treewide: migrate fetchgit rev = "refs/tags/..." to tag 2025-01-04 00:19:17 +01:00
GGG
1cd9516969 treewide: migrate nix-based dotnet lockfiles to JSON 2024-12-17 19:49:03 -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
R. Ryantm
cb76615528 cyberpunk-neon: 0-unstable-2024-09-15 -> 0-unstable-2024-11-07 2024-12-08 00:33:06 +00:00
Kenichi Kamiya
81c4870a68
cyme: 1.8.4 -> 1.8.5
Changelog: a7fdf783cb/CHANGELOG.md (L3-L11)
Diff: https://github.com/tuna-f1sh/cyme/compare/v1.8.4...v1.8.5
2024-12-04 09:30:56 +09:00
Alexander Sieg
7ce5501df0 cyclonedx-cli: add team cyberus to maintainers 2024-12-03 16:23:50 +01:00
Alexander Sieg
11ad6d0722 cyclonedx-cli: 0.25.1 -> 0.27.2 2024-12-03 16:16:06 +01:00
Moraxyc
5445bd068e
cyrus-imapd.meta: add changelog 2024-11-24 02:46:04 +08:00
Moraxyc
ad8534e407
cyrus-imapd.meta: fix wrong mainProgram 2024-11-23 22:02:22 +08:00
Moraxyc
74d5eb6a96
cyrus-imapd: remove unused inputs 2024-11-23 22:00:00 +08:00
OTABI Tomoya
b0afbd864a
cynthion: init at 0.1.7 (#353392) 2024-11-19 17:37:15 +09:00
David McFarland
b0d941edb4
dotnet: november 2024 upgrades and infrastructure changes (#355753) 2024-11-18 20:20:45 -04:00
Karolis Stasaitis
57fb63c931 cynthion: init at 0.1.7 2024-11-18 12:44:14 +01:00
David McFarland
bfaca46529 dotnet-sdk/runtime/aspnetcore: 6.0 -> 8.0 2024-11-17 18:35:19 -04:00
Masum Reza
e13831335f
treewide: stdenv.is -> stdenv.hostPlatform.is (#356363)
* treewide: stdenv.is -> stdenv.hostPlatform.is

* treewide: nixfmt due to ci error
2024-11-17 16:11:54 +05:30
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
Moraxyc
7a020d9dc3
cyrus-imapd: init at 3.10.0
Co-authored-by: jtbx <jeremy@baxters.nz>
Co-authored-by: drupol <pol.dellaiera@protonmail.com>
2024-10-19 23:53:09 +08:00
R. Ryantm
996e06fd07 cyme: 1.8.3 -> 1.8.4 2024-09-28 09:55:01 +00:00
R. Ryantm
4231cb5da2 cyberpunk-neon: 0-unstable-2024-02-23 -> 0-unstable-2024-09-15 2024-09-26 18:19:19 +00:00
Peder Bergebakken Sundt
212c9887a7
cyme: 1.8.2 -> 1.8.3 (#343990) 2024-09-25 19:09:33 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
h7x4
387746be03
cyme: 1.8.2 -> 1.8.3 2024-09-23 17:32:05 +02:00
R. Ryantm
0763899501 cyme: 1.8.1 -> 1.8.2 2024-08-30 18:29:28 +00:00