From f585ebf89367a0ab5414ca2b1aff4e97b428bf88 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 14 Jan 2023 07:27:07 -0700 Subject: [PATCH] overlay: use better perl convention in rex completions --- overlays/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overlays/default.nix b/overlays/default.nix index b823ff0..a77f3a4 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -38,9 +38,9 @@ in { fixupPhase = '' substituteInPlace ./share/rex-tab-completion.zsh \ - --replace 'perl' "${pkgs.perl}/bin/perl -I ${pkgs.perlPackages.YAML}/${pkgs.perlPackages.YAML.perlModule.libPrefix}" + --replace 'perl' "${pkgs.perl.withPackages (ps: [ ps.YAML ])}/bin/perl" substituteInPlace ./share/rex-tab-completion.bash \ - --replace 'perl' "${pkgs.perl}/bin/perl -I ${pkgs.perlPackages.YAML}/${pkgs.perlPackages.YAML.perlModule.libPrefix}" + --replace 'perl' "${pkgs.perl.withPackages (ps: [ ps.YAML ])}/bin/perl" installShellCompletion --name _rex --zsh ./share/rex-tab-completion.zsh installShellCompletion --name _rex --bash ./share/rex-tab-completion.bash '';