Unverified Commit 6d151f1e authored by Philip Taron's avatar Philip Taron
Browse files

kakoune-lsp: use replaceVars

parent d176239d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ index b173478..015c3ca 100644
-        fi
         echo >$kak_command_fifo "echo -to-file $kak_response_fifo -quoting kakoune -- %reg{a}"
-        perl < $kak_response_fifo -we '
+        @perl@ < $kak_response_fifo -we '
+        @perl@/bin/perl < $kak_response_fifo -we '
             use strict;
             my $Q = "'\''";
             my @args = ();
@@ -42,7 +42,7 @@ index b173478..015c3ca 100644
     set-register x nop
     evaluate-commands %sh[ # $kak_quoted_selections
-        perl -e '
+        @perl@ -e '
+        @perl@/bin/perl -e '
 use strict;
 use warnings;
 use Text::ParseWords();
+2 −7
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
  lib,
  rustPlatform,
  fetchFromGitHub,
  substituteAll,
  replaceVars,
  perl,
  stdenv,
  CoreServices,
@@ -21,12 +21,7 @@ rustPlatform.buildRustPackage rec {
    sha256 = "sha256-uXKquAjfytUn/Q0kx+0BGRQTkVMQ9rMRnTCy622upag=";
  };

  patches = [
    (substituteAll {
      src = ./Hardcode-perl.patch;
      perl = lib.getExe perl;
    })
  ];
  patches = [ (replaceVars ./Hardcode-perl.patch { inherit perl; }) ];

  cargoHash = "sha256-XnhYODMzqInwbgM8wveY048sljZ8OKw4hLYJG5h8Twc=";