25 lines
721 B
Nix
25 lines
721 B
Nix
{ depot, pkgs, ... }:
|
|
|
|
depot.third_party.naersk.buildPackage {
|
|
src = ./.;
|
|
doDoc = false;
|
|
|
|
override = x: {
|
|
# Use our custom bat syntax set, which is everything from upstream,
|
|
# plus additional languages we care about.
|
|
BAT_SYNTAXES = "${depot.third_party.bat_syntaxes}";
|
|
|
|
NIX_LDFLAGS = "${x.NIX_LDFLAGS or ""}${pkgs.lib.optionalString (pkgs.stdenv.isLinux && pkgs.stdenv.isAarch64 && pkgs.stdenv.cc.isGNU) " -lgcc"}";
|
|
};
|
|
|
|
passthru = {
|
|
# Wrapper for cgit which can't be told to pass arguments to a filter
|
|
about-filter = pkgs.writeShellScriptBin "cheddar-about" ''
|
|
exec ${depot.tools.cheddar}/bin/cheddar --about-filter $@
|
|
'';
|
|
};
|
|
|
|
meta.ci.targets = [
|
|
"about-filter"
|
|
];
|
|
}
|