Reaktor: debug enable/disable
This commit is contained in:
parent
8012e60b77
commit
d12e86c481
@ -40,7 +40,7 @@ let
|
|||||||
|
|
||||||
nickname = mkOption {
|
nickname = mkOption {
|
||||||
default = config.krebs.build.host.name + "|r";
|
default = config.krebs.build.host.name + "|r";
|
||||||
type = types.str;
|
type = types.string;
|
||||||
description = ''
|
description = ''
|
||||||
The nick name of the irc bot.
|
The nick name of the irc bot.
|
||||||
Defaults to {hostname}|r
|
Defaults to {hostname}|r
|
||||||
@ -70,6 +70,12 @@ let
|
|||||||
the Reaktor pkg to use.
|
the Reaktor pkg to use.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
debug = mkOption {
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Reaktor debug output
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
imp = {
|
imp = {
|
||||||
@ -101,6 +107,7 @@ let
|
|||||||
environment = {
|
environment = {
|
||||||
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
REAKTOR_NICKNAME = cfg.nickname;
|
REAKTOR_NICKNAME = cfg.nickname;
|
||||||
|
REAKTOR_DEBUG = (if cfg.debug then "True" else "False");
|
||||||
};
|
};
|
||||||
serviceConfig= {
|
serviceConfig= {
|
||||||
ExecStartPre = pkgs.writeScript "Reaktor-init" ''
|
ExecStartPre = pkgs.writeScript "Reaktor-init" ''
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
python3Packages.buildPythonPackage rec {
|
python3Packages.buildPythonPackage rec {
|
||||||
name = "Reaktor-${version}";
|
name = "Reaktor-${version}";
|
||||||
version = "0.4.0";
|
version = "0.4.3";
|
||||||
propagatedBuildInputs = with pkgs;[
|
propagatedBuildInputs = with pkgs;[
|
||||||
python3Packages.docopt
|
python3Packages.docopt
|
||||||
python3Packages.requests2
|
python3Packages.requests2
|
||||||
];
|
];
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://pypi.python.org/packages/source/R/Reaktor/Reaktor-${version}.tar.gz";
|
url = "https://pypi.python.org/packages/source/R/Reaktor/Reaktor-${version}.tar.gz";
|
||||||
sha256 = "0izwpq6smp86964hiddnk2bbx8g27nrzfbvdp790bjmnw6gk64nb";
|
sha256 = "1rvfw9vg7i7z2ah7m5k3zik2b92d3xdaqa8am62qw6vgvmxcmfp4";
|
||||||
};
|
};
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://krebsco.de/;
|
homepage = http://krebsco.de/;
|
||||||
|
Loading…
Reference in New Issue
Block a user