Commit Graph

21 Commits

Author SHA1 Message Date
Ethan Carter Edwards
14b172fea0 bat: modernize
Tag, structuredAttrs

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-05-16 03:48:11 -04:00
Jonathan Davies
fad5cb39b7 bat: Add versionCheckHook 2025-12-02 21:51:35 +00:00
Jonathan Davies
c44aeaaaed bat: Use finalAttrs 2025-12-02 21:51:33 +00:00
Jonathan Davies
c36ed8fed8 bat: 0.26.0 → 0.26.1 2025-12-02 21:51:24 +00:00
Jost Alemann
944fb34f0b bat: 0.25.0 -> 0.26.0
Changelog: https://github.com/sharkdp/bat/releases/tag/v0.26.0
Diff: https://github.com/sharkdp/bat/compare/v0.25.0...v0.26.0
2025-10-19 21:01:41 +02:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
liberodark
51104bca6e treewide: remove with lib Part 1 2025-06-03 18:27:59 +05:30
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
Will Leinweber
cafe63f62b bat: 0.24.0 -> 0.25.0 2025-01-08 17:22:33 +01:00
Reno Dakota
2ae4f94054 bat: unvendor zlib; fix darwin
bat fails with
> error: failed to run custom build command for `libz-sys v1.1.8`
due to the vendored libz failing to build with clang-19

the apple-sdk_11 can also be removed as that is now the default for both
darwin x64 and aarch64
2024-12-16 15:12:05 -08:00
Silvan Mosberger
84d4f874c2 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 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
Fernando Rodrigues
f611da92a7 bat: add sigmasquadron as co-maintainer
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-23 20:13:42 -03:00
zowoq
7495125f91 bat: switch to apple-sdk_11 2024-11-05 10:46:53 +10: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
Lily Ballard
15196e1730 treewide: remove lilyball 2024-07-02 15:32:33 -04: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
Alex James
47d9ce462b bat: skip file_with_invalid_utf8_filename test
This test tries to create a temporary file with a filename that contains
invalid UTF-8 bytes, which may fail if TMPDIR is located on a filesystem
that performs UTF-8 validation (such as ZFS with utf8only=on).

Resolves https://github.com/NixOS/nixpkgs/issues/269631.
2024-04-01 22:45:34 -05:00
xrelkd
bbbf613ed2 bat: 0.23.0 -> 0.24.0
Diff: https://github.com/sharkdp/bat/compare/v0.23.0...v0.24.0

Changelog: https://github.com/sharkdp/bat/raw/v0.24.0/CHANGELOG.md
2023-10-12 11:50:36 +08:00
xrelkd
ec5b43883a bat: migrate to by-name 2023-10-12 11:41:03 +08:00