diff options
author | makefu <github@syntax-fehler.de> | 2015-12-08 19:38:19 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-12-08 19:38:19 +0100 |
commit | aadc479bb6e8d4792a41920ac5751c29c93115bc (patch) | |
tree | eb29304b125fee1bf73780b6326f8256d041980f /2configs/Reaktor/sed-plugin.nix | |
parent | d8c0ec69418374b0b48c91ddb668d9a512d2dc27 (diff) |
m 2 Reaktor: finish sed-plugin
Diffstat (limited to '2configs/Reaktor/sed-plugin.nix')
-rw-r--r-- | 2configs/Reaktor/sed-plugin.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2configs/Reaktor/sed-plugin.nix b/2configs/Reaktor/sed-plugin.nix new file mode 100644 index 000000000..1ec977116 --- /dev/null +++ b/2configs/Reaktor/sed-plugin.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +with pkgs; +let + script = ./sed-plugin.py; +in { + #TODO: this will eat up the last regex, fix Reaktor + krebs.Reaktor.extraConfig = '' + public_commands.append({ + 'capname' : "shack-correct", + # only support s///gi + 'pattern' : '^(?P<args>.*)$$', + 'argv' : ["${pkgs.python3}/bin/python3","${script}"], + 'env' : { 'state_dir' : workdir, + 'PATH':'${lib.makeSearchPath "bin" [pkgs.gnused]}' }}) + ''; +} + |