diff options
author | Profpatsch <mail@profpatsch.de> | 2018-07-20 14:13:38 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2018-07-20 14:13:38 +0200 |
commit | 830bc363cf62736fed902ead3ec559ffa2516219 (patch) | |
tree | 0787d5d54c469ad09a600b9527771a1a25bb1543 | |
parent | 8cda0828125b5877c7b479fd2bb2bcbb898aecbb (diff) |
machines/katara: add execlineb-with-builtins
-rw-r--r-- | machines/profpatsch/katara.nix | 1 | ||||
-rw-r--r-- | machines/profpatsch/pkgs.nix | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix index cd606cca..e7463ac7 100644 --- a/machines/profpatsch/katara.nix +++ b/machines/profpatsch/katara.nix @@ -147,6 +147,7 @@ in { pkgs.vuizvui.profpatsch.nix-gen # generate nix expressions pkgs.vuizvui.profpatsch.watch-server # restart server on code change pkgs.vuizvui.profpatsch.until # restart until cmd succeeds + myPkgs.execlineb-with-builtins ]; documentation = [ # mustache-spec NOT IN 16.09 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 ; } |