Commit Graph

21 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
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
0b361ce34d fmtoy: 0-unstable-2024-11-13 -> 0-unstable-2024-12-15 2024-12-20 22:31:03 +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
R. Ryantm
a7aedc9802 fmtoy: 0-unstable-2024-06-11 -> 0-unstable-2024-11-13 2024-12-10 06:08:30 +00:00
Anderson Torres
e7387f290c treewide: remove AndersonTorres from maintainers 2024-11-28 21:12:42 -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
nicoo
2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00
Cosima Neidahl
9856088bd9
fmtoy: 0-unstable-2024-06-07 -> 0-unstable-2024-06-11 (#325489) 2024-08-28 10:12:53 +02:00
Sigmanificient
512e8afdb9 treewide: remove unused occurence of stdenv (and other) arguments
format (will squash)
2024-07-14 04:32:56 +02:00
OPNA2608
8a83a53b81 fmtoy: Reformat, drop meta-wide with lib 2024-07-08 11:42:52 +02:00
OPNA2608
3306e56e00 fmtoy: 0-unstable-2024-06-07 -> 0-unstable-2024-06-11 2024-07-08 11:41:29 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Nick Cao
f4e0351ba0
fmtoy: 0-unstable-2024-04-18 -> 0-unstable-2024-06-07
Diff: aca005c770...1339600e2f
2024-06-07 16:04:15 -04:00
R. Ryantm
c2047d8954 fmtoy: 0.0.0-unstable-2023-05-21 -> 0-unstable-2024-04-18 2024-04-27 04:00:17 +02:00
R. Ryantm
cdf2f46541 fm-go: 1.0.0 -> 1.1.0 2024-04-17 13:49:15 +00:00
R. Ryantm
8c7ec2357d fm-go: 0.16.0 -> 1.0.0 2024-04-07 01:53:03 +00:00
Anderson Torres
3b0e6fce08 fm-go: init at 0.16.0 2024-02-25 18:17:56 -03:00
OPNA2608
a585f9402c fmtoy: Move to pkgs/by-name 2023-12-03 20:34:25 +01:00
Stanisław Pitucha
ea8ed233fa fm-tune: migrate to by-name 2023-10-17 15:10:39 +11:00