2009-01-20 23:15:42 +01:00
|
|
|
/* moving all git tools into one attribute set because git is unlikely to be
|
|
|
|
* referenced by other packages and you can get a fast overview.
|
|
|
|
*/
|
|
|
|
args: with args; with pkgs;
|
|
|
|
let
|
2010-04-02 09:17:11 +02:00
|
|
|
inherit (pkgs) stdenv fetchurl subversion;
|
|
|
|
config = getPkgConfig "git";
|
2009-01-20 23:15:42 +01:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
|
2010-04-02 14:39:38 +02:00
|
|
|
git = lib.makeOverridable (import ./git) {
|
2010-02-18 13:08:39 +01:00
|
|
|
inherit fetchurl stdenv curl openssl zlib expat perl python gettext
|
2009-01-20 23:15:42 +01:00
|
|
|
asciidoc texinfo xmlto docbook2x
|
2009-11-03 16:57:31 +01:00
|
|
|
docbook_xsl docbook_xml_dtd_45 libxslt
|
2009-01-20 23:15:42 +01:00
|
|
|
cpio tcl tk makeWrapper subversion;
|
2010-04-02 09:17:11 +02:00
|
|
|
svnSupport = config "svnSupport" false; # for git-svn support
|
|
|
|
guiSupport = config "guiSupport" false;
|
2010-05-15 12:38:28 +02:00
|
|
|
sendEmailSupport = config "sendEmailSupport" false;
|
2010-04-02 09:17:11 +02:00
|
|
|
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey];
|
2010-05-15 12:38:28 +02:00
|
|
|
smtpPerlLibs = [
|
|
|
|
perlPackages.NetSMTP perlPackages.NetSMTPSSL
|
|
|
|
perlPackages.IOSocketSSL perlPackages.NetSSLeay
|
|
|
|
perlPackages.MIMEBase64 perlPackages.AuthenSASL
|
|
|
|
perlPackages.DigestHMAC
|
|
|
|
];
|
2009-01-20 23:15:42 +01:00
|
|
|
};
|
|
|
|
|
2010-01-18 17:07:44 +01:00
|
|
|
# The full-featured Git.
|
2010-04-02 14:39:38 +02:00
|
|
|
gitFull = git.override {
|
2010-01-18 17:07:44 +01:00
|
|
|
svnSupport = true;
|
|
|
|
guiSupport = true;
|
2010-05-19 14:26:17 +02:00
|
|
|
sendEmailSupport = stdenv.isDarwin == false;
|
2010-01-18 17:07:44 +01:00
|
|
|
};
|
|
|
|
|
2009-01-20 23:15:42 +01:00
|
|
|
gitGit = import ./git/git-git.nix {
|
2009-12-11 14:58:23 +01:00
|
|
|
inherit fetchurl sourceFromHead stdenv curl openssl zlib expat perl gettext
|
2009-01-20 23:15:42 +01:00
|
|
|
asciidoc texinfo xmlto docbook2x
|
2009-11-03 16:57:31 +01:00
|
|
|
docbook_xsl docbook_xml_dtd_45 libxslt
|
2009-01-20 23:15:42 +01:00
|
|
|
cpio tcl tk makeWrapper subversion autoconf;
|
2010-04-02 09:17:11 +02:00
|
|
|
svnSupport = config "svnSupport" false; # for git-svn support
|
|
|
|
guiSupport = config "guiSupport" false;
|
2009-04-23 12:56:23 +02:00
|
|
|
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey subversion];
|
2009-01-20 23:15:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
qgit = import ./qgit {
|
|
|
|
inherit fetchurl stdenv;
|
|
|
|
inherit (xlibs) libXext libX11;
|
2009-04-24 14:31:33 +02:00
|
|
|
qt = qt4;
|
2009-01-20 23:15:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
qgitGit = import ./qgit/qgit-git.nix {
|
2009-12-11 14:58:23 +01:00
|
|
|
inherit fetchurl sourceFromHead stdenv;
|
2009-01-20 23:15:42 +01:00
|
|
|
inherit (xlibs) libXext libX11;
|
|
|
|
qt = qt4;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
stgit = import ./stgit {
|
|
|
|
inherit fetchurl stdenv python git;
|
|
|
|
};
|
|
|
|
|
2010-01-26 22:26:01 +01:00
|
|
|
topGit = stdenv.mkDerivation rec {
|
|
|
|
name = "topgit-0.8";
|
|
|
|
|
2010-02-10 12:28:22 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "http://repo.or.cz/r/topgit.git";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "14g233hk70xs51h4jqyivjfqnwmjjpc95fjb7wdny64i9ddz03aj";
|
2010-01-26 22:26:01 +01:00
|
|
|
};
|
|
|
|
|
2010-01-26 22:45:07 +01:00
|
|
|
configurePhase = "export prefix=$out";
|
|
|
|
|
|
|
|
postInstall = ''
|
2010-01-26 22:26:01 +01:00
|
|
|
mkdir -p "$out/share/doc/${name}"
|
|
|
|
cp -v README "$out/share/doc/${name}"
|
|
|
|
|
2009-04-27 03:18:07 +02:00
|
|
|
mkdir -p $out/etc/bash_completion.d
|
|
|
|
make prefix=$out \
|
|
|
|
install
|
|
|
|
mv contrib/tg-completion.bash $out/etc/bash_completion.d
|
|
|
|
'';
|
2010-01-26 22:26:01 +01:00
|
|
|
|
2009-04-27 03:18:07 +02:00
|
|
|
meta = {
|
|
|
|
description = "TopGit aims to make handling of large amount of interdependent topic branches easier";
|
2010-01-26 22:26:01 +01:00
|
|
|
maintainers = [ lib.maintainers.marcweber lib.maintainers.ludo ];
|
2009-04-27 03:18:07 +02:00
|
|
|
homepage = http://repo.or.cz/w/topgit.git; # maybe there is also another one, I haven't checked
|
|
|
|
license = "GPLv2";
|
2010-02-10 12:28:22 +01:00
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2009-01-20 23:15:42 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-02-24 23:00:35 +01:00
|
|
|
tig = stdenv.mkDerivation {
|
|
|
|
name = "tig-0.14.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://jonas.nitro.dk/tig/releases/tig-0.14.1.tar.gz";
|
|
|
|
sha256 = "1a8mi1pv36v67n31vs95gcibkifnqq5s1x69lz1cz0218yv9s73r";
|
|
|
|
};
|
|
|
|
buildInputs = [ncurses asciidoc xmlto docbook_xsl];
|
|
|
|
installPhase = ''
|
|
|
|
make install
|
|
|
|
make install-doc
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
description = "console git repository browser that additionally can act as a pager for output from various git commands";
|
|
|
|
homepage = http://jonas.nitro.dk/tig/;
|
|
|
|
license = "GPLv2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-10-27 18:46:37 +01:00
|
|
|
gitFastExport = import ./fast-export {
|
2009-12-11 14:58:23 +01:00
|
|
|
inherit fetchurl sourceFromHead stdenv mercurial coreutils git makeWrapper
|
|
|
|
subversion;
|
2009-01-20 23:15:42 +01:00
|
|
|
};
|
|
|
|
|
2010-05-04 12:06:50 +02:00
|
|
|
git2cl = import ./git2cl {
|
|
|
|
inherit fetchgit stdenv perl;
|
|
|
|
};
|
2010-05-07 16:01:39 +02:00
|
|
|
|
|
|
|
gitSubtree = stdenv.mkDerivation {
|
|
|
|
name = "git-subtree-0.3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://github.com/apenwarr/git-subtree/tarball/v0.3";
|
|
|
|
# sha256 = "0y57lpbcc2142jgrr4lflyb9xgzs9x33r7g4b919ncn3alb95vdr";
|
|
|
|
sha256 = "f2ccac1e9cff4c35d989dc2a5581133c96b72d96c6a5ed89e51b6446dadac03f";
|
|
|
|
};
|
|
|
|
unpackCmd = "gzip -d < $curSrc | tar xvf -";
|
|
|
|
buildInputs = [ git asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt ];
|
|
|
|
configurePhase = "export prefix=$out";
|
|
|
|
buildPhase = "true";
|
|
|
|
installPhase = ''
|
|
|
|
make install prefix=$out gitdir=$out/bin #work around to deal with a wrong makefile
|
|
|
|
'';
|
|
|
|
meta= {
|
|
|
|
description = "An experimental alternative to the git-submodule command";
|
|
|
|
homepage = http://github.com/apenwarr/git-subtree;
|
|
|
|
license = "GPLv2";
|
|
|
|
};
|
|
|
|
};
|
2009-01-20 23:15:42 +01:00
|
|
|
}
|