summaryrefslogtreecommitdiffstats
path: root/lass/1systems
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-21 23:50:48 +0100
committerlassulus <lass@lassul.us>2017-01-21 23:50:48 +0100
commit1f4becad4dbbb512684045f55a42021ab7695c24 (patch)
tree268ab958f2a0313c135b02c016aad3bc70574d24 /lass/1systems
parent13e5a3d41ae42e8d2ef623dcbb26c66b409c66d8 (diff)
l 1 prism: add some flags to lambdabot
Diffstat (limited to 'lass/1systems')
-rw-r--r--lass/1systems/prism.nix27
1 files changed, 21 insertions, 6 deletions
diff --git a/lass/1systems/prism.nix b/lass/1systems/prism.nix
index 6d5a7c965..83f669a3d 100644
--- a/lass/1systems/prism.nix
+++ b/lass/1systems/prism.nix
@@ -266,37 +266,52 @@ in {
extraEnviron = {
REAKTOR_HOST = "irc.hackint.org";
};
- plugins = with pkgs.ReaktorPlugins; [
+ plugins = with pkgs.ReaktorPlugins; let
+ lambdabotflags = ''
+ -XStandaloneDeriving -XGADTs -XFlexibleContexts \
+ -XFlexibleInstances -XMultiParamTypeClasses \
+ -XOverloadedStrings -XFunctionalDependencies \'';
+ in [
sed-plugin
url-title
(buildSimpleReaktorPlugin "lambdabot-pl" {
pattern = "^@pl(?P<args>.*)$$";
script = pkgs.writeDash "lambda-pl" ''
- exec ${pkgs.lambdabot}/bin/lambdabot -e "@pl $1"
+ exec ${pkgs.lambdabot}/bin/lambdabot \
+ ${indent lambdabotflags}
+ -e "@pl $1"
'';
})
(buildSimpleReaktorPlugin "lambdabot-type" {
pattern = "^@type(?P<args>.*)$$";
script = pkgs.writeDash "lambda-type" ''
- exec ${pkgs.lambdabot}/bin/lambdabot -e "@type $1"
+ exec ${pkgs.lambdabot}/bin/lambdabot \
+ ${indent lambdabotflags}
+ -e "@type $1"
'';
})
(buildSimpleReaktorPlugin "lambdabot-let" {
pattern = "^@let(?P<args>.*)$$";
script = pkgs.writeDash "lambda-let" ''
- exec ${pkgs.lambdabot}/bin/lambdabot -e "@let $1"
+ exec ${pkgs.lambdabot}/bin/lambdabot \
+ ${indent lambdabotflags}
+ -e "@let $1"
'';
})
(buildSimpleReaktorPlugin "lambdabot-run" {
pattern = "^@run(?P<args>.*)$$";
script = pkgs.writeDash "lambda-run" ''
- exec ${pkgs.lambdabot}/bin/lambdabot -e "@run $1"
+ exec ${pkgs.lambdabot}/bin/lambdabot \
+ ${indent lambdabotflags}
+ -e "@run $1"
'';
})
(buildSimpleReaktorPlugin "lambdabot-kind" {
pattern = "^@kind(?P<args>.*)$$";
script = pkgs.writeDash "lambda-kind" ''
- exec ${pkgs.lambdabot}/bin/lambdabot -e "@kind $1"
+ exec ${pkgs.lambdabot}/bin/lambdabot \
+ ${indent lambdabotflags}
+ -e "@kind $1"
'';
})
];