about summary refs log tree commit diff
path: root/machines/profpatsch/pkgs.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2018-07-20 14:13:38 +0200
committerProfpatsch <mail@profpatsch.de>2018-07-20 14:13:38 +0200
commit830bc363cf62736fed902ead3ec559ffa2516219 (patch)
tree0787d5d54c469ad09a600b9527771a1a25bb1543 /machines/profpatsch/pkgs.nix
parent8cda0828125b5877c7b479fd2bb2bcbb898aecbb (diff)
machines/katara: add execlineb-with-builtins
Diffstat (limited to 'machines/profpatsch/pkgs.nix')
-rw-r--r--machines/profpatsch/pkgs.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/machines/profpatsch/pkgs.nix b/machines/profpatsch/pkgs.nix
index af95188c..68305a60 100644
--- a/machines/profpatsch/pkgs.nix
+++ b/machines/profpatsch/pkgs.nix
@@ -103,6 +103,15 @@ let
         --replace 'notify-send' '${notify-send}'
     '';
 
+  # wrapper for execlineb that doesn’t need the execline commands
+  # in PATH to work (making them appear like “builtins”)
+  execlineb-with-builtins =
+    let eldir = "${pkgs.execline}/bin";
+    in pkgs.writeScriptBin "execlineb" ''
+      #!${eldir}/execlineb -s0
+      ${eldir}/importas oldpath PATH
+      env PATH=${eldir}:$${oldpath} exelineb $@
+    '';
 
 in
 { inherit
@@ -117,5 +126,6 @@ in
     saneGhci
     /*searx*/
     pyrnotify
+    exelineb-with-builtins
     ;
 }