···
1
-
{ stdenv, fetchurl, perl, git, fetchgit }:
1
+
{ stdenv, fetchurl, perl, git }:
stdenv.mkDerivation rec {
name = "gitolite-${version}";
8
-
url = "git://github.com/sitaramc/gitolite";
9
-
rev = "refs/tags/v${version}";
10
-
sha256 = "47e0e9c3137b05af96c091494ba918d61d1d3396749a04d63e7949ebcc6c6dca";
8
+
url = "https://github.com/sitaramc/gitolite/archive/v${version}.tar.gz";
9
+
sha256 = "0sizzv705aypasi9vf9kmdbzcl3gmyfxg9dwdl5prn64biqkvq3y";
buildInputs = [ perl git ];
···
substituteInPlace ./install --replace " 2>/dev/null" ""
substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \
20
-
--replace /usr/bin/perl "/usr/bin/env perl"
18
+
--replace /usr/bin/perl "${perl}/bin/perl"
substituteInPlace src/lib/Gitolite/Hooks/Update.pm \
22
-
--replace /usr/bin/perl "/usr/bin/env perl"
20
+
--replace /usr/bin/perl "${perl}/bin/perl"
26
-
git tag v${version} # Gitolite requires a tag for the version information :/
perl ./install -to $out/bin
28
+
meta = with stdenv.lib; {
description = "Finely-grained git repository hosting";
32
-
homepage = "http://gitolite.com/gitolite/index.html";
33
-
license = stdenv.lib.licenses.gpl2;
34
-
platforms = stdenv.lib.platforms.unix;
35
-
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
30
+
homepage = http://gitolite.com/gitolite/index.html;
31
+
license = licenses.gpl2;
32
+
platforms = platforms.unix;
33
+
maintainers = [ maintainers.thoughtpolice ];