summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2021-01-14 10:26:31 -0300
committerGitHub <noreply@github.com>2021-01-14 10:26:31 -0300
commit956afcd713a4f94a4acb4460d339dc638bac3d0a (patch)
tree4559465487cb48a1bf2e8cd50549e06e2c55df5e /pkgs/applications
parent7d9c32f7437cb1d51df7f2e64144c083517aa320 (diff)
parent4c486c1314593afa95234fae3778ef267cc12d84 (diff)
downloadnixpkgs-956afcd713a4f94a4acb4460d339dc638bac3d0a.tar
nixpkgs-956afcd713a4f94a4acb4460d339dc638bac3d0a.tar.gz
nixpkgs-956afcd713a4f94a4acb4460d339dc638bac3d0a.tar.bz2
nixpkgs-956afcd713a4f94a4acb4460d339dc638bac3d0a.tar.lz
nixpkgs-956afcd713a4f94a4acb4460d339dc638bac3d0a.tar.xz
nixpkgs-956afcd713a4f94a4acb4460d339dc638bac3d0a.tar.zst
nixpkgs-956afcd713a4f94a4acb4460d339dc638bac3d0a.zip
Merge pull request #106548 from eraserhd/quickscope-kak
kakounePlugins.quickscope-kak: init at 1.0.0
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/editors/kakoune/plugins/default.nix1
-rw-r--r--pkgs/applications/editors/kakoune/plugins/quickscope.kak.nix29
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/editors/kakoune/plugins/default.nix b/pkgs/applications/editors/kakoune/plugins/default.nix
index 168c1d06b31..950229baee0 100644
--- a/pkgs/applications/editors/kakoune/plugins/default.nix
+++ b/pkgs/applications/editors/kakoune/plugins/default.nix
@@ -13,4 +13,5 @@
   kak-prelude = pkgs.callPackage ./kak-prelude.nix { };
   kak-vertical-selection = pkgs.callPackage ./kak-vertical-selection.nix { };
   openscad-kak = pkgs.callPackage ./openscad.kak.nix { };
+  quickscope-kak = pkgs.callPackage ./quickscope.kak.nix { };
 }
diff --git a/pkgs/applications/editors/kakoune/plugins/quickscope.kak.nix b/pkgs/applications/editors/kakoune/plugins/quickscope.kak.nix
new file mode 100644
index 00000000000..f2fb1f5d57c
--- /dev/null
+++ b/pkgs/applications/editors/kakoune/plugins/quickscope.kak.nix
@@ -0,0 +1,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;
+  };
+}