buildbot-classic: guess version name with git

This commit is contained in:
makefu 2017-07-28 23:47:07 +02:00
parent 9884b522fe
commit a4382f83ec
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -1,4 +1,4 @@
{ fetchgit, fetchFromGitHub, python2Packages, ... }: { fetchgit, fetchFromGitHub, python2Packages, git, ... }:
let let
# https://github.com/NixOS/nixpkgs/issues/14026 # https://github.com/NixOS/nixpkgs/issues/14026
nixpkgs-fix = import (fetchgit { nixpkgs-fix = import (fetchgit {
@ -8,7 +8,7 @@ let
}) {}; }) {};
in nixpkgs-fix.buildPythonApplication { in nixpkgs-fix.buildPythonApplication {
name = "buildbot-classic-0.8.12"; name = "buildbot-classic-0.8.13";
namePrefix = ""; namePrefix = "";
patches = []; patches = [];
@ -19,7 +19,7 @@ in nixpkgs-fix.buildPythonApplication {
sha256 = "1j3xn1gjzvsf90jvfmyln71fzlhjx642ivrqf47zfxpkacljja93"; sha256 = "1j3xn1gjzvsf90jvfmyln71fzlhjx642ivrqf47zfxpkacljja93";
}; };
postUnpack = "sourceRoot=\${sourceRoot}/master"; postUnpack = "sourceRoot=\${sourceRoot}/master";
nativeBuildInputs = [ nixpkgs-fix.git ];
patchPhase = patchPhase =
# The code insists on /usr/bin/tail, /usr/bin/make, etc. # The code insists on /usr/bin/tail, /usr/bin/make, etc.
'' echo "patching erroneous absolute path references..." '' echo "patching erroneous absolute path references..."
@ -32,11 +32,11 @@ in nixpkgs-fix.buildPythonApplication {
sed -i 's/==/>=/' setup.py sed -i 's/==/>=/' setup.py
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = with nixpkgs-fix.pythonPackages; [
python2Packages.jinja2 jinja2
python2Packages.twisted twisted
nixpkgs-fix.pythonPackages.dateutil_1_5 dateutil_1_5
nixpkgs-fix.pythonPackages.sqlalchemy_migrate_0_7 sqlalchemy_migrate_0_7
]; ];
doCheck = false; doCheck = false;
postInstall = '' postInstall = ''