c61c7418d0
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.
27 lines
463 B
Nix
27 lines
463 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildBatExtrasPkg,
|
|
less,
|
|
procps,
|
|
}:
|
|
buildBatExtrasPkg {
|
|
name = "batpipe";
|
|
dependencies = [
|
|
less
|
|
procps
|
|
];
|
|
shellInit = {
|
|
flags = [ ];
|
|
};
|
|
|
|
patches = [
|
|
../patches/batpipe-skip-outdated-test.patch
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
../patches/batpipe-skip-detection-tests.patch
|
|
];
|
|
|
|
meta.description = "Less (and soon bat) preprocessor for viewing more types of files in the terminal";
|
|
}
|