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.
15 lines
317 B
Nix
15 lines
317 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildBatExtrasPkg,
|
|
util-linux,
|
|
}:
|
|
buildBatExtrasPkg {
|
|
name = "batman";
|
|
dependencies = lib.optional stdenv.targetPlatform.isLinux util-linux;
|
|
shellInit = {
|
|
flags = [ "--export-env" ];
|
|
};
|
|
meta.description = "Read system manual pages (man) using bat as the manual page formatter";
|
|
}
|