about summary refs log tree commit diff
path: root/pkgs/applications/editors/kakoune/plugins/quickscope.kak.nix
blob: f2fb1f5d57c3f5894d54d920e2441fa98def20db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchgit, lua5_3 }:

stdenv.mkDerivation rec {
  pname = "quickscope-kak";
  version = "1.0.0";

  src = fetchgit {
    url = "https://git.sr.ht/~voroskoi/quickscope.kak";
    rev = "v${version}";
    sha256 = "0y1g3zpa2ql8l9rl5i2w84bka8a09kig9nq9zdchaff5pw660mcx";
  };

  buildInputs = [ lua5_3 ];

  installPhase = ''
    mkdir -p $out/share/kak/autoload/plugins/
    cp quickscope.* $out/share/kak/autoload/plugins/
    # substituteInPlace does not like the pipe
    sed -e 's,[|] *lua,|${lua5_3}/bin/lua,' quickscope.kak >$out/share/kak/autoload/plugins/quickscope.kak
  '';

  meta = with stdenv.lib; {
    description = "Highlight f and t jump positions";
    homepage = "https://sr.ht/~voroskoi/quickscope.kak/";
    license = licenses.unlicense;
    maintainers = with maintainers; [ eraserhd ];
    platforms = platforms.all;
  };
}