2022-05-19 14:39:52 +00:00
|
|
|
{ depot, pkgs, ... }:
|
2020-09-30 03:42:59 +00:00
|
|
|
|
2022-05-19 14:39:52 +00:00
|
|
|
depot.third_party.naersk.buildPackage {
|
2020-09-30 03:42:59 +00:00
|
|
|
src = ./.;
|
|
|
|
doDoc = false;
|
|
|
|
|
|
|
|
override = x: {
|
|
|
|
# Use our custom bat syntax set, which is everything from upstream,
|
|
|
|
# plus additional languages we care about.
|
2022-05-19 14:39:52 +00:00
|
|
|
BAT_SYNTAXES = "${depot.third_party.bat_syntaxes}";
|
2023-01-22 23:12:20 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS = "${x.NIX_LDFLAGS or ""}${pkgs.lib.optionalString (pkgs.stdenv.isLinux && pkgs.stdenv.isAarch64 && pkgs.stdenv.cc.isGNU) " -lgcc"}";
|
2022-05-19 14:39:52 +00:00
|
|
|
};
|
2020-09-30 03:42:59 +00:00
|
|
|
|
2022-05-19 14:39:52 +00:00
|
|
|
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 $@
|
|
|
|
'';
|
2020-09-30 03:42:59 +00:00
|
|
|
};
|
2022-05-19 14:39:52 +00:00
|
|
|
|
|
|
|
meta.ci.targets = [
|
|
|
|
"about-filter"
|
|
|
|
];
|
2020-09-30 03:42:59 +00:00
|
|
|
}
|