cross: fix ripgrep

This commit is contained in:
Colin 2023-11-27 23:08:39 +00:00
parent e58833da3b
commit 1729f29374

View File

@ -1814,6 +1814,16 @@ in {
# });
# });
ripgrep = prev.ripgrep.overrideAttrs (upstream: {
# ripgrep generates its own manpage.
# this is only problematic on a non-binfmt machine
preFixup = lib.replaceStrings
[ "$out/bin/rg" ]
[ "${final.stdenv.hostPlatform.emulator final.buildPackages} $out/bin/rg" ]
upstream.preFixup
;
});
# rmlint = prev.rmlint.override {
# # fixes "Checking whether the C compiler works... no"
# # rmlint is scons; it reads the CC environment variable, though, so *may* be cross compilable