summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-29 00:38:22 +0200
committerlassulus <lassulus@lassul.us>2017-07-29 00:38:22 +0200
commit5ff77c7c64fe8eb94004a77718e70cfa14a3c9c4 (patch)
treeb9ceba038f1e54fe68dd3ff94b551535554cd0fa /krebs
parentc575f32d56b53ecbc1bcf28342f4eff683b7818c (diff)
parent17497235e84985f9b2ec4acda47f15a9fe68453e (diff)
Merge remote-tracking branch 'gum/master' into HEAD
Diffstat (limited to 'krebs')
-rw-r--r--krebs/1systems/puyak/config.nix1
-rw-r--r--krebs/3modules/Reaktor.nix16
-rw-r--r--krebs/5pkgs/simple/buildbot-classic-slave/default.nix9
-rw-r--r--krebs/5pkgs/simple/buildbot-classic/default.nix27
4 files changed, 31 insertions, 22 deletions
diff --git a/krebs/1systems/puyak/config.nix b/krebs/1systems/puyak/config.nix
index 8454ba23..a1df1190 100644
--- a/krebs/1systems/puyak/config.nix
+++ b/krebs/1systems/puyak/config.nix
@@ -12,6 +12,7 @@
];
krebs.build.host = config.krebs.hosts.puyak;
+ sound.enable = false;
boot = {
loader.systemd-boot.enable = true;
diff --git a/krebs/3modules/Reaktor.nix b/krebs/3modules/Reaktor.nix
index a70f1ef5..99a7a55e 100644
--- a/krebs/3modules/Reaktor.nix
+++ b/krebs/3modules/Reaktor.nix
@@ -4,8 +4,7 @@ with import <stockholm/lib>;
let
cfg = config.krebs.Reaktor;
-
- workdir = "/var/lib/Reaktor";
+ homedir = "/var/lib/Reaktor";
out = {
options.krebs.Reaktor = api;
@@ -38,6 +37,14 @@ let
default = [pkgs.ReaktorPlugins.nixos-version];
};
+ workdir = mkOption {
+ default = "/var/lib/Reaktor";
+ type = types.path;
+ description = ''
+ path to be used as workdir (home dir is still /var/lib/Reaktor)
+ '';
+ };
+
extraConfig = mkOption {
default = "";
type = types.string;
@@ -84,7 +91,7 @@ let
name = "Reaktor";
uid = genid name;
description = "Reaktor user";
- home = workdir;
+ home = homedir;
createHome = true;
};
@@ -118,7 +125,7 @@ let
REAKTOR_NICKNAME = botcfg.nickname;
REAKTOR_DEBUG = (if botcfg.debug then "True" else "False");
REAKTOR_CHANNELS = lib.concatStringsSep "," botcfg.channels;
- state_dir = workdir;
+ state_dir = botcfg.workdir;
} // botcfg.extraEnviron;
serviceConfig= {
@@ -129,6 +136,7 @@ let
else
''(${pkgs.Reaktor}/bin/reaktor get-config;cat "${ReaktorConfig}" ) > /tmp/reaktor-${name}-config.py''
}
+ mkdir -p ${botcfg.workdir}
'';
ExecStart = "${pkgs.Reaktor}/bin/reaktor run /tmp/reaktor-${name}-config.py";
PrivateTmp = "true";
diff --git a/krebs/5pkgs/simple/buildbot-classic-slave/default.nix b/krebs/5pkgs/simple/buildbot-classic-slave/default.nix
index c316889e..bbc824a6 100644
--- a/krebs/5pkgs/simple/buildbot-classic-slave/default.nix
+++ b/krebs/5pkgs/simple/buildbot-classic-slave/default.nix
@@ -1,16 +1,15 @@
-{ coreutils, fetchgit, fetchFromGitHub, buildbot-classic, python2Packages, ... }:
+{ coreutils, fetchgit, git, buildbot-classic, python2Packages, ... }:
python2Packages.buildPythonApplication {
- name = "buildbot-classic-slave-0.8.12";
+ name = "buildbot-classic-slave-0.8.13";
namePrefix = "";
src = buildbot-classic.src;
postUnpack = "sourceRoot=\${sourceRoot}/slave";
- patchPhase = ''
- substituteInPlace buildslave/scripts/logwatcher.py --replace /usr/bin/tail ${coreutils}/bin/tail
- '';
+ patchPhase = ":";
+ nativeBuildInputs = [ git ];
propagatedBuildInputs = [ python2Packages.twisted ];
doCheck = false;
diff --git a/krebs/5pkgs/simple/buildbot-classic/default.nix b/krebs/5pkgs/simple/buildbot-classic/default.nix
index a3d924c4..35397210 100644
--- a/krebs/5pkgs/simple/buildbot-classic/default.nix
+++ b/krebs/5pkgs/simple/buildbot-classic/default.nix
@@ -1,4 +1,4 @@
-{ fetchgit, fetchFromGitHub, python2Packages, ... }:
+{ fetchgit, fetchFromGitHub, python2Packages, git, ... }:
let
# https://github.com/NixOS/nixpkgs/issues/14026
nixpkgs-fix = import (fetchgit {
@@ -8,18 +8,19 @@ let
}) {};
in nixpkgs-fix.buildPythonApplication {
- name = "buildbot-classic-0.8.12";
+ name = "buildbot-classic-0.8.13";
namePrefix = "";
patches = [];
- src = fetchFromGitHub {
- owner = "krebscode";
- repo = "buildbot-classic";
- rev = "5b4f5f6f1";
- sha256 = "1j3xn1gjzvsf90jvfmyln71fzlhjx642ivrqf47zfxpkacljja93";
+ src = fetchgit {
+ url = "https://github.com/krebscode/buildbot-classic";
+ rev = "211ec7815";
+ sha256 = "0cyn406r31qdqhpsih7w83x47b443svpgfhxqd6w3iryv0y1z95i";
+ leaveDotGit = true;
+
};
postUnpack = "sourceRoot=\${sourceRoot}/master";
-
+ buildInputs = [ git ];
patchPhase =
# The code insists on /usr/bin/tail, /usr/bin/make, etc.
'' echo "patching erroneous absolute path references..."
@@ -32,11 +33,11 @@ in nixpkgs-fix.buildPythonApplication {
sed -i 's/==/>=/' setup.py
'';
- propagatedBuildInputs = [
- python2Packages.jinja2
- python2Packages.twisted
- nixpkgs-fix.pythonPackages.dateutil_1_5
- nixpkgs-fix.pythonPackages.sqlalchemy_migrate_0_7
+ propagatedBuildInputs = with nixpkgs-fix.pythonPackages; [
+ jinja2
+ twisted
+ dateutil_1_5
+ sqlalchemy_migrate_0_7
];
doCheck = false;
postInstall = ''