summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/buildbot-classic-slave/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-25 23:10:51 +0200
committerlassulus <lassulus@lassul.us>2017-07-25 23:18:38 +0200
commit7aa31b7babafb2e10bbf8418800ef561bccbd67b (patch)
treec0d87b752e939d07facb64f1d69a569c963a773c /krebs/5pkgs/simple/buildbot-classic-slave/default.nix
parent826da6c222d359ede5d032173c204bf37715cdc8 (diff)
krebs buildbot: reintroduce packages with minimal overrides
Diffstat (limited to 'krebs/5pkgs/simple/buildbot-classic-slave/default.nix')
-rw-r--r--krebs/5pkgs/simple/buildbot-classic-slave/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/buildbot-classic-slave/default.nix b/krebs/5pkgs/simple/buildbot-classic-slave/default.nix
new file mode 100644
index 000000000..193df579f
--- /dev/null
+++ b/krebs/5pkgs/simple/buildbot-classic-slave/default.nix
@@ -0,0 +1,21 @@
+{ coreutils, fetchgit, fetchFromGitHub, buildbot-classic, python2Packages, ... }:
+
+python2Packages.buildPythonApplication {
+ name = "buildbot-slave-0.8.12";
+ namePrefix = "";
+
+ src = buildbot-classic.src;
+ postUnpack = "sourceRoot=\${sourceRoot}/slave";
+
+ patchPhase = ''
+ substituteInPlace buildslave/scripts/logwatcher.py --replace /usr/bin/tail ${coreutils}/bin/tail
+ '';
+
+ propagatedBuildInputs = [ python2Packages.twisted ];
+ doCheck = false;
+
+ postInstall = ''
+ mkdir -p "$out/share/man/man1"
+ cp docs/buildslave.1 "$out/share/man/man1"
+ '';
+}