summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/buildbot-classic-slave/default.nix
blob: c316889e4ebbb2dbef0e39997fbd8130435b09a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ coreutils, fetchgit, fetchFromGitHub, buildbot-classic, python2Packages, ... }:

python2Packages.buildPythonApplication {
  name = "buildbot-classic-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"
  '';
}