summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/buildbot-classic
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-08-05 14:49:59 +0200
committermakefu <github@syntax-fehler.de>2017-08-05 14:49:59 +0200
commitad7c43c727dcab7931ed0e17ec9b79b63d96766f (patch)
tree119983a3408f9904a031585fa2694e93076e42c5 /krebs/5pkgs/simple/buildbot-classic
parentb4e8ae13698ea1cd32e0b8e187a812687f28715b (diff)
buildbot{-slave}: simplify builder
remove obsolete patchPhase, use fetchFromGitHub
Diffstat (limited to 'krebs/5pkgs/simple/buildbot-classic')
-rw-r--r--krebs/5pkgs/simple/buildbot-classic/default.nix25
1 files changed, 6 insertions, 19 deletions
diff --git a/krebs/5pkgs/simple/buildbot-classic/default.nix b/krebs/5pkgs/simple/buildbot-classic/default.nix
index 3f70bf6a8..d81f31296 100644
--- a/krebs/5pkgs/simple/buildbot-classic/default.nix
+++ b/krebs/5pkgs/simple/buildbot-classic/default.nix
@@ -1,4 +1,4 @@
-{ pkgs, fetchgit, fetchFromGitHub, python2Packages, git, ... }:
+{ pkgs, fetchFromGitHub, python2Packages, git, ... }:
python2Packages.buildPythonApplication rec {
name = "buildbot-classic-${version}";
@@ -6,26 +6,13 @@ python2Packages.buildPythonApplication rec {
namePrefix = "";
patches = [];
- src = fetchgit {
- url = "https://github.com/krebscode/buildbot-classic";
- rev = "f26147d17";
- sha256 = "096fzcg36qbvfqc3nx3g4608khlkwx81myl1dww1q2i1sa6bgzzh";
- leaveDotGit = true;
-
+ src = fetchFromGitHub {
+ owner = "krebscode";
+ repo = "buildbot-classic";
+ rev = "v${version}";
+ sha256 = "0j3mb3g3pgx9nar798igfva7pc5hzcg845gwz8lw7dxr504fky30";
};
postUnpack = "sourceRoot=\${sourceRoot}/master";
- buildInputs = [ git ];
- patchPhase =
- # The code insists on /usr/bin/tail, /usr/bin/make, etc.
- '' echo "patching erroneous absolute path references..."
- for i in $(find -name \*.py)
- do
- sed -i "$i" \
- -e "s|/usr/bin/python|$(type -P python)|g ; s|/usr/bin/||g"
- done
-
- sed -i 's/==/>=/' setup.py
- '';
propagatedBuildInputs = [
python2Packages.jinja2