diff options
author | lassulus <lass@aidsballs.de> | 2015-12-29 19:24:01 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-12-29 19:24:01 +0100 |
commit | 42380546976c15d99dc0e9a65607ba4aafb31590 (patch) | |
tree | 4b0ae218de102219e9865ae4da65cef8490fafaa /makefu/2configs/Reaktor/titlebot.nix | |
parent | f22fe4e5d97237dbe76bc856909950487634c7be (diff) | |
parent | 676d0f748138f0e1fa3cb2177b5a08a857f17fac (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/Reaktor/titlebot.nix')
-rw-r--r-- | makefu/2configs/Reaktor/titlebot.nix | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/makefu/2configs/Reaktor/titlebot.nix b/makefu/2configs/Reaktor/titlebot.nix deleted file mode 100644 index 9ef02548b..000000000 --- a/makefu/2configs/Reaktor/titlebot.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ stdenv,config, lib, pkgs, ... }: - -with pkgs; -let - pypkgs = pkgs.python3Packages; - titlebot_cmds = pypkgs.buildPythonPackage { - name = "titlebot_cmds"; - propagatedBuildInputs = with pypkgs; [ setuptools ]; - src = fetchurl { - # https://github.com/makefu/reaktor-titlebot tag 2.1.0 - url = "https://github.com/makefu/reaktor-titlebot/archive/2.1.0.tar.gz"; - sha256 = "0wvf09wmk8b52f9j65qrw81nwrhs9pfhijwrlkzp5l7l2q8cjkp6"; - }; - }; - pub_cmds = ["up" "help" "list" "top" "highest" "undo" ]; - priv_cmds = [ "clear" ]; -in { - # TODO: write identify file in - # {config.users.extraUsers.Reaktor.home}/state/admin.lst - krebs.Reaktor.extraConfig = '' - def titlebot_cmd(cmd): - return { - 'capname': cmd, - 'env': { - 'TITLEDB': - '${config.users.extraUsers.Reaktor.home}/suggestions.json' - }, - 'pattern': '^\\.' + cmd + '\\s*(?:\\s+(?P<args>.*))?$$', - 'argv': [ '${titlebot_cmds}/bin/' + cmd ] } - # TODO: for each element in ${titlebot_cmds}/bin/* - public_commands.insert(0,titlebot_cmd('up')) - public_commands.insert(0,titlebot_cmd('help')) - public_commands.insert(0,titlebot_cmd('list')) - public_commands.insert(0,titlebot_cmd('top')) - public_commands.insert(0,titlebot_cmd('new')) - commands.insert(0,titlebot_cmd('clear')) - ''; -} |