stockholm/makefu/2configs/Reaktor/sed-plugin.nix

19 lines
467 B
Nix
Raw Normal View History

2015-12-08 18:38:19 +00:00
{ 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({
2015-12-16 10:54:58 +00:00
'capname' : "sed-plugin",
2015-12-08 18:38:19 +00:00
# only support s///gi
'pattern' : '^(?P<args>.*)$$',
'argv' : ["${pkgs.python3}/bin/python3","${script}"],
'env' : { 'state_dir' : workdir,
'PATH':'${lib.makeSearchPath "bin" [pkgs.gnused]}' }})
'';
}