From be2bc72968384075c49c380e7662cb37f6530154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 20 Sep 2023 10:38:29 +0200 Subject: [PATCH] fix(fish): poetry completions --- overlays/fixes.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 overlays/fixes.nix diff --git a/overlays/fixes.nix b/overlays/fixes.nix new file mode 100644 index 0000000..8bfb9ba --- /dev/null +++ b/overlays/fixes.nix @@ -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" + ''; + }; +}