fix(fish): poetry completions

This commit is contained in:
Moritz Böhme 2023-09-20 10:38:29 +02:00
parent 070fc5fb81
commit be2bc72968
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

16
overlays/fixes.nix Normal file
View file

@ -0,0 +1,16 @@
{ lib, ... }:
final: prev: {
# python-poetry/poetry#5929
poetry = final.symlinkJoin {
name = "poetry";
paths = [ prev.poetry ];
postBuild =
let
regex = "s/'([a-z]*[[:blank:]][a-z]*)''/\1'/g";
in
''
${lib.getExe final.gnused} -i -E "${regex}" "$out/share/fish/vendor_completions.d/poetry.fish"
'';
};
}