summaryrefslogtreecommitdiff
path: root/pkgs/tools/misc/bat-extras/modules/batdiff.nix
blob: b06b7423aa55dffa11f2a358573eb1f20bd6e1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  lib,
  buildBatExtrasPkg,
  less,
  coreutils,
  gitMinimal,
  delta,
  withDelta ? true,
}:
buildBatExtrasPkg {
  name = "batdiff";
  dependencies = [
    less
    coreutils
    gitMinimal
  ]
  ++ lib.optional withDelta delta;
  meta.description = "Diff a file against the current git index, or display the diff between two files";
}