about summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2024-04-11 13:52:44 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2024-04-11 15:08:51 +0200
commit15ed0d212574c950e94e56f7ad7ec3c33ee8f772 (patch)
tree74403d901f42b09d98649bb7d1418d619184244f /pkgs/tools/misc
parent104f24e0b99b6d340c313e8f7c963cb8e9f8ae3a (diff)
Revert "fzf: remove fzf-share helper"
This reverts commit 1035a9efdfe4456f224a92ed133cf0605b9eb821.
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/fzf/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix
index 9f6d94a83920c..e2ae52985a504 100644
--- a/pkgs/tools/misc/fzf/default.nix
+++ b/pkgs/tools/misc/fzf/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildGoModule
 , fetchFromGitHub
+, runtimeShell
 , installShellFiles
 , bc
 , ncurses
@@ -64,6 +65,14 @@ buildGoModule rec {
       status is-interactive; or exit 0
       fzf_key_bindings
     EOF
+
+    cat <<SCRIPT > $out/bin/fzf-share
+    #!${runtimeShell}
+    # Run this script to find the fzf shared folder where all the shell
+    # integration scripts are living.
+    echo $out/share/fzf
+    SCRIPT
+    chmod +x $out/bin/fzf-share
   '';
 
   passthru.tests.version = testers.testVersion {