Browse Source

gitolite: 3.6.1

Signed-off-by: Austin Seipp <aseipp@pobox.com>
nixos-19.03
Austin Seipp 8 years ago
parent
commit
ec4cd43ca8
  1. 30
      pkgs/applications/version-management/gitolite/default.nix
  2. 2
      pkgs/top-level/all-packages.nix

30
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 ];
};
}

2
pkgs/top-level/all-packages.nix

@ -8636,6 +8636,8 @@ let
python = python27;
};
gitolite = callPackage ../applications/version-management/gitolite { };
inherit (gnome3) gitg;
giv = callPackage ../applications/graphics/giv {

Loading…
Cancel
Save