Commit Graph

21 Commits

Author SHA1 Message Date
Callie Cameron
bd41942fe6 bats-assert: 2.1.0 -> 2.2.4 2026-09-02 09:19:11 +02:00
R. Ryantm
3aff4d1c49 bats: 1.12.0 -> 1.14.0 2026-07-26 13:07:30 +00:00
Travis A. Everett
1641b0188d various: switch resholve + rec packages to finalAttrs
These likely would have been switched long ago by various automated
PRs if not for lack of support in resholve.mkDerivation.
2026-05-15 19:46:05 -05:00
Stefan Frijters
5eca65929e bats.withLibraries: inherit meta from bats
This fixes "evaluation warning: getExe: Package "bats-with-libraries-1.12.0" does not have the meta.mainProgram attribute"
2026-04-11 16:49:36 +02:00
Stefan Frijters
5f5d29e3a2 bats: add let binding to passthru.tests.libraries
We don't actually need to pass the script as an argument to runCommand
since we can reference it directly.

Moving bats.withLibraries [...] out of the string interpolation seems a
bit more readable as well.
2026-04-11 16:49:36 +02:00
Stefan Frijters
d3d6e2f38b bats: use writeText instead of passAsFile
This fixes compatibility with __structuredAttrs.
2026-04-11 16:49:36 +02:00
Travis A. Everett
7ad32b3e29 bats: disable packcc test on darwin
This is failing on darwin after latest bump. Hopefully just temporary.
Separate commit for easier reversion later.
2026-04-06 20:53:21 -05:00
Travis A. Everett
f6c1d2f013 bats: work around parallelized test break
after 411981, make-symlinks-relative hook breaks a parallelization
test: "setup_file is not over parallelized"

Thankfully, the same PR adds dontRewriteSymlinks for disabling it.
2026-04-06 20:50:03 -05:00
ryu
43cfd42b4d bats: improve longDescription formatting
Apply suggestions to use markdown fenced code blocks for the usage example and bullet points for the library list.

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
2026-01-11 16:21:21 +09:00
ryuryu333
4bab0c7984 bats: add usage example to longDescription
The `bats` package provides a `withLibraries` function to easily include helper library such as `bats-assert` and `bats-support`.
However, this capability is not immediately visible to users browsing packages via `Nixpkgs Package Search`.

This commit adds a `longDescription` to document this feature, providing a code example on how to compose `bats` with its libraries.
2026-01-10 21:48:22 +09:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther
87bb138321 bats-detik: 1.3.2 -> 1.3.3 (#400510) 2025-07-12 16:35:40 +00:00
h0nIg
752233eb66 bats: fix build with procps without systemd 2025-07-07 18:46:51 +02:00
R. Ryantm
aff98d4427 bats: 1.11.1 -> 1.12.0 2025-05-19 00:43:20 +00:00
brokenpip3
9b88776d08 bats-detik: 1.3.2 -> 1.3.3 2025-04-21 12:34:25 +02: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
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02: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
a156cee721 bats: 1.11.0 -> 1.11.1 2024-11-30 02:06:19 +00: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