forked from mirrors/nixpkgs
gitolite: fix aborted build due to non-deterministic fetchgit
This commit is contained in:
parent
842fcdb4b4
commit
6fb00303fb
|
@ -1,14 +1,12 @@
|
||||||
{ stdenv, fetchurl, perl, git, fetchgit }:
|
{ stdenv, fetchurl, perl, git }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gitolite-${version}";
|
name = "gitolite-${version}";
|
||||||
version = "3.6.1";
|
version = "3.6.1";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchurl {
|
||||||
url = "git://github.com/sitaramc/gitolite";
|
url = "https://github.com/sitaramc/gitolite/archive/v${version}.tar.gz";
|
||||||
rev = "refs/tags/v${version}";
|
sha256 = "0sizzv705aypasi9vf9kmdbzcl3gmyfxg9dwdl5prn64biqkvq3y";
|
||||||
sha256 = "47e0e9c3137b05af96c091494ba918d61d1d3396749a04d63e7949ebcc6c6dca";
|
|
||||||
leaveDotGit = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl git ];
|
buildInputs = [ perl git ];
|
||||||
|
@ -17,21 +15,21 @@ stdenv.mkDerivation rec {
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace ./install --replace " 2>/dev/null" ""
|
substituteInPlace ./install --replace " 2>/dev/null" ""
|
||||||
substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \
|
substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \
|
||||||
--replace /usr/bin/perl "/usr/bin/env perl"
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
||||||
substituteInPlace src/lib/Gitolite/Hooks/Update.pm \
|
substituteInPlace src/lib/Gitolite/Hooks/Update.pm \
|
||||||
--replace /usr/bin/perl "/usr/bin/env perl"
|
--replace /usr/bin/perl "${perl}/bin/perl"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
git tag v${version} # Gitolite requires a tag for the version information :/
|
|
||||||
perl ./install -to $out/bin
|
perl ./install -to $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Finely-grained git repository hosting";
|
description = "Finely-grained git repository hosting";
|
||||||
homepage = "http://gitolite.com/gitolite/index.html";
|
homepage = http://gitolite.com/gitolite/index.html;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
maintainers = [ maintainers.thoughtpolice ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue