Commit Graph

43 Commits

Author SHA1 Message Date
Eman Resu
ff094f60ad treewide: replace more singleton license lists 2026-07-15 14:04:39 -04:00
Alex Libman
c61c7418d0 bat: genericize shell init for bat-extras packages
Moves shell init logic specific to bat-extras packages into the
extras packages themselves. The bat package itself is now only
reponsible for registering the bat-extras shell inits. Also uses finalAttrs.finalPackage to correctly handle overlays on bat-extra packages.
2026-03-29 22:40:18 -04:00
PerchunPak
3f8be5ef33 lib.maintainers.perchun -> PerchunPak
Should be easier for people to ping me
2025-12-07 15:53:57 +01:00
PerchunPak
46e297cf98 bat-extras.batgrep: disable tests 2025-10-24 17:36:22 +02:00
PerchunPak
78f92255c2 bat-extras: also test nushell 2025-10-24 17:36:21 +02:00
PerchunPak
a996e5339e bat-extras: 2024.08.24 -> 2024.08.24-unstable-2025-02-22 2025-10-23 11:02:38 +02:00
PerchunPak
428deb18ab bat-extras: minor improvements 2025-10-23 11:02:36 +02:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
mivorasu
ee0866bddd treewide: conform descriptions to the standards 2025-07-28 04:39:00 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther
243dcd6845 bat-extras: remove useless callPackage 2025-06-18 15:57:29 +02:00
Victor Engmark
0e0ac8143c prettier: Migrate from nodePackages
Co-Authored-By: Robert Schütz <nix@dotlambda.de>
Co-Authored-By: Kira Bruneau <kira.bruneau@pm.me>
Co-Authored-By: Pol Dellaiera <pol.dellaiera@protonmail.com>
2025-06-01 08:36:10 +02:00
PerchunPak
d489575942 bat-extras: heavily refactor 2025-02-04 18:09:50 +01:00
Petr Zahradnik
80d08100fa bat-extras: disable broken tests 2025-01-12 11:32:35 +01:00
Sandro
adf873d0ab bat-extras: add broken comment 2025-01-09 07:25:49 +01:00
Will Leinweber
cafe15ecec bat-extras: mark as broken due to bat v0.25.0 changes 2025-01-08 17:28:03 +01: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
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
Bruno Bigras
1b92a4b9e9 Back out "bats-extras: disable test to fix bat-extras.batdiff build"
This backs out commit 7d37cb86ad.
2024-08-24 13:19:16 -04:00
Bruno Bigras
0604e31899 bats-extras: 2024.02.12 -> 2024.07.10
fix #334634
2024-08-24 02:50:25 -04:00
Bruno Bigras
7d37cb86ad bats-extras: disable test to fix bat-extras.batdiff build
fix #336312
2024-08-24 02:49:54 -04:00
Lily Ballard
15196e1730 treewide: remove lilyball 2024-07-02 15:32:33 -04:00
Pol Dellaiera
73270c64ae Merge pull request #288611 from tarneaux/update-bat-extras
bat-extras: 2023.06.15 -> 2024.02.12
2024-02-17 19:12:57 +01:00
tarneo
92d048aec6 bat-extras: 2023.06.15 -> 2024.02.12
The most notable change in this version is the fix of `batman` making an
infinite recursion when $BAT_PAGER is set.
See https://github.com/eth-p/bat-extras/releases/tag/v2024.02.12

This commit also changes `sha256` to `hash` and makes the repo name
explicit instead of reusing the package name with `pname`.
2024-02-17 18:03:45 +01:00
Hraban Luyat
6b6dd4509e bat-extras: also set meta.mainProgram 2024-01-26 12:45:26 -05:00
Hraban Luyat
d08f8d0c98 bat-extras: set pname to executable name
This is the easiest way to make bat-extras scripts runnable directly as flakes,
e.g. nix run nixpkgs#bat-extras.batgrep. There are other ways but this one is
nice and simple.
2023-11-21 10:52:06 -05:00
Shi Han NG
e27415632b bat-extras: 2023.03.21 -> 2023.06.15 2023-07-13 21:52:44 +09:00
Theodore Ni
3331569a77 bat-extras.batman: remove util-linux on Darwin 2023-06-07 21:47:26 -07:00
Bruno Bigras
5f590477ec bat-extras: 2021.04.06 -> 2023.03.21 2023-03-21 13:27:11 -04:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Nicholas Sielicki
dba57a0362 pkgs/tools/misc/bat-extras: fix tests
Add bash/fish/zsh to checkInputs
2022-11-05 20:12:13 -05:00
Nicholas Sielicki
76df7b5d94 bat-extras: add batpipe 2022-11-05 20:12:13 -05:00
github-actions[bot]
616b3ecd9a Merge master into staging-next 2022-04-28 00:04:39 +00:00
Dennis Hoppe
7f9e285f54 bat-extras.batman: Add new dependency (util-linux) 2022-04-24 11:08:25 +02:00
Ben Siraphob
259fa13d53 treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
Andreas Schmid
9f050c691c bat-extras: fix build on Darwin (#119987)
introduced by #119689

Signed-off-by: Andreas Schmid <service@aaschmid.de>
2021-05-08 22:08:23 +02:00
Bruno Bigras
2a441ee408 bat-extras: 20200515-dev -> 2021.04.06 2021-04-17 02:24:58 -04:00
Sandro Jäckel
e5c9b6de1a bat-extras: remove unused input 2021-02-18 22:25:34 +01:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Alyssa Ross
3893d6c6d7 gitAndTools: move everything to the top level
The comment at the top of git-and-tools/default.nix said:

    /* All git-relates tools live here, in a separate attribute set so that users
     * can get a fast overview over what's available.

but unfortunately that hasn't actually held up in practice.

Git-related packages have continued to be added to the top level, or
into gitAndTools, or sometimes both, basically at random, so having
gitAndTools is just confusing.  In fact, until I looked as part of
working on getting rid of gitAndTools, one program (ydiff) was
packaged twice independently, once in gitAndTools and once at the top
level (I fixed this in 98c3490196).

So I think it's for the best if we move away from gitAndTools, and
just put all the packages it previously contained at the top level.
I've implemented this here by just making gitAndTools an alias for the
top level -- this saves having loads of lines in aliases.nix.  This
means that people can keep referring to gitAndTools in their
configuration, but it won't be allowed to be used within Nixpkgs, and
it won't be presented to new users by e.g. nix search.

The only other change here that I'm aware of is that
appendToName "minimal" is not longer called on the default git
package, because doing that would have necessitated having a private
gitBase variable like before.  I think it makes more sense not to do
that anyway, and reserve the "minimal" suffix only for gitMinimal.
2021-01-14 21:27:48 +00:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Lily Ballard
1894b5a912 bat-extras: 20200408 -> 20200515-dev 2020-06-17 16:03:03 -07:00
Lily Ballard
c27bd9af4e bat-extras: init at 20200408 2020-04-26 15:16:56 -07:00