2014-05-25 04:28:06 -07:00
|
|
|
{ stdenv, fetchurl, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45
|
2015-01-13 13:51:04 -08:00
|
|
|
, readline, makeWrapper, git
|
2014-05-25 04:28:06 -07:00
|
|
|
}:
|
2012-08-07 15:49:12 -07:00
|
|
|
|
2012-11-16 17:13:25 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2015-04-29 14:57:31 -07:00
|
|
|
name = "tig-2.1.1";
|
2013-11-09 10:06:55 -08:00
|
|
|
|
2012-08-07 15:49:12 -07:00
|
|
|
src = fetchurl {
|
2012-11-16 17:13:25 -08:00
|
|
|
url = "http://jonas.nitro.dk/tig/releases/${name}.tar.gz";
|
2015-04-29 14:57:31 -07:00
|
|
|
sha256 = "0bw5wivswwh7vx897q8xc2cqgkqhdzk8gh6fnav2kf34sngigiah";
|
2012-08-07 15:49:12 -07:00
|
|
|
};
|
2013-11-09 10:06:55 -08:00
|
|
|
|
2015-01-13 13:51:04 -08:00
|
|
|
buildInputs = [ ncurses asciidoc xmlto docbook_xsl readline git makeWrapper ];
|
2013-11-09 10:06:55 -08:00
|
|
|
|
2013-11-09 10:03:16 -08:00
|
|
|
preConfigure = ''
|
|
|
|
export XML_CATALOG_FILES='${docbook_xsl}/xml/xsl/docbook/catalog.xml ${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml'
|
|
|
|
'';
|
2013-11-09 10:06:55 -08:00
|
|
|
|
2015-01-13 13:51:04 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-08-07 15:49:12 -07:00
|
|
|
installPhase = ''
|
|
|
|
make install
|
|
|
|
make install-doc
|
2013-04-01 09:37:52 -07:00
|
|
|
mkdir -p $out/etc/bash_completion.d/
|
|
|
|
cp contrib/tig-completion.bash $out/etc/bash_completion.d/
|
2015-01-13 13:51:04 -08:00
|
|
|
|
|
|
|
wrapProgram $out/bin/tig \
|
|
|
|
--prefix PATH ':' "${git}/bin"
|
2012-08-07 15:49:12 -07:00
|
|
|
'';
|
2013-11-09 10:06:55 -08:00
|
|
|
|
2013-05-20 10:33:18 -07:00
|
|
|
meta = with stdenv.lib; {
|
2012-08-07 15:49:12 -07:00
|
|
|
homepage = "http://jonas.nitro.dk/tig/";
|
2013-11-09 10:06:55 -08:00
|
|
|
description = "Text-mode interface for git";
|
2015-04-29 14:57:31 -07:00
|
|
|
maintainers = with maintainers; [ garbas bjornfor iElectric qknight ];
|
2013-05-20 10:33:18 -07:00
|
|
|
license = licenses.gpl2;
|
2014-04-12 09:37:45 -07:00
|
|
|
platforms = platforms.unix;
|
2012-08-07 15:49:12 -07:00
|
|
|
};
|
|
|
|
}
|