l reaktor-coders: remove lambdabot stuff
This commit is contained in:
parent
2dcbc9027e
commit
64b3606044
|
@ -27,43 +27,6 @@ in {
|
||||||
hooks.PRIVMSG = [
|
hooks.PRIVMSG = [
|
||||||
hooks.sed
|
hooks.sed
|
||||||
hooks.url-title
|
hooks.url-title
|
||||||
{
|
|
||||||
activate = "match";
|
|
||||||
pattern = ''^@([^ ]+) (.*)$'';
|
|
||||||
command = 1;
|
|
||||||
arguments = [2];
|
|
||||||
env.HOME = config.krebs.reaktor2.coders.stateDir;
|
|
||||||
commands = let
|
|
||||||
lambdabot = (import (pkgs.fetchFromGitHub {
|
|
||||||
owner = "NixOS"; repo = "nixpkgs";
|
|
||||||
rev = "a4ec1841da14fc98c5c35cc72242c23bb698d4ac";
|
|
||||||
sha256 = "148fpw31s922hxrf28yhrci296f7c7zd81hf0k6zs05rq0i3szgy";
|
|
||||||
}) {}).lambdabot;
|
|
||||||
lambdabotWrapper = pkgs.writeDash "lambdabot.wrapper" ''
|
|
||||||
exec ${lambdabot}/bin/lambdabot \
|
|
||||||
-XStandaloneDeriving -XGADTs -XFlexibleContexts \
|
|
||||||
-XFlexibleInstances -XMultiParamTypeClasses \
|
|
||||||
-XOverloadedStrings -XFunctionalDependencies \
|
|
||||||
-e "$@"
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
pl.filename = pkgs.writeDash "lambdabot-pl" ''
|
|
||||||
${lambdabotWrapper} "@pl $1"
|
|
||||||
'';
|
|
||||||
type.filename = pkgs.writeDash "lambdabot-type" ''
|
|
||||||
${lambdabotWrapper} "@type $1"
|
|
||||||
'';
|
|
||||||
"let".filename = pkgs.writeDash "lambdabot-let" ''
|
|
||||||
${lambdabotWrapper} "@let $1"
|
|
||||||
'';
|
|
||||||
run.filename = pkgs.writeDash "lambdabot-run" ''
|
|
||||||
${lambdabotWrapper} "@run $1"
|
|
||||||
'';
|
|
||||||
kind.filename = pkgs.writeDash "lambdabot-kind" ''
|
|
||||||
${lambdabotWrapper} "@kind $1"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
activate = "match";
|
activate = "match";
|
||||||
pattern = ''^!([^ ]+)(?:\s*(.*))?'';
|
pattern = ''^!([^ ]+)(?:\s*(.*))?'';
|
||||||
|
|
Loading…
Reference in a new issue