diff options
author | Austin Seipp <aseipp@pobox.com> | 2014-06-25 21:50:16 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2014-06-25 22:54:18 -0500 |
commit | ec4cd43ca8da720185b887187468c5c237b93424 (patch) | |
tree | ba4d19401fa01e59909d68b472d18cef64e56c8a /pkgs/applications/version-management/gitolite | |
parent | 39db3547a9dba1f5bafbef3807c8781305d2cda1 (diff) |
gitolite: 3.6.1
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/applications/version-management/gitolite')
-rw-r--r-- | pkgs/applications/version-management/gitolite/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/gitolite/default.nix b/pkgs/applications/version-management/gitolite/default.nix new file mode 100644 index 000000000000..8447330ef3c9 --- /dev/null +++ b/pkgs/applications/version-management/gitolite/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, perl, git, fetchgit }: + +stdenv.mkDerivation rec { + name = "gitolite-${version}"; + version = "3.6.1"; + + src = fetchgit { + url = "git://github.com/sitaramc/gitolite"; + rev = "refs/tags/v${version}"; + sha256 = "47e0e9c3137b05af96c091494ba918d61d1d3396749a04d63e7949ebcc6c6dca"; + leaveDotGit = true; + }; + + buildInputs = [ perl git ]; + buildPhase = "true"; + installPhase = '' + mkdir -p $out/bin + substituteInPlace ./install --replace " 2>/dev/null" "" + git tag v${version} # Gitolite requires a tag for the version information :/ + perl ./install -to $out/bin + ''; + + meta = { + description = "Finely-grained git repository hosting"; + homepage = "http://gitolite.com/gitolite/index.html"; + license = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; + }; +}
\ No newline at end of file |