buildbot-classic: use fetchgit for version detection

This commit is contained in:
makefu 2017-07-29 00:20:50 +02:00
parent d761743c4b
commit 1b5ab3384c
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -12,14 +12,15 @@ in nixpkgs-fix.buildPythonApplication {
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 = "09q8wyci7p07lrngjblwnpyxk0wddf8jzabwf598a7yiam6yc4cm";
leaveDotGit = true;
};
postUnpack = "sourceRoot=\${sourceRoot}/master";
nativeBuildInputs = [ nixpkgs-fix.git ];
buildInputs = [ git ];
patchPhase =
# The code insists on /usr/bin/tail, /usr/bin/make, etc.
'' echo "patching erroneous absolute path references..."