2013-11-09 18:03:16 +00:00
|
|
|
{ stdenv, fetchurl, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45 }:
|
2012-08-07 22:49:12 +00:00
|
|
|
|
2012-11-17 01:13:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-06-01 13:39:55 +00:00
|
|
|
name = "tig-2.0.2";
|
2013-11-09 18:06:55 +00:00
|
|
|
|
2012-08-07 22:49:12 +00:00
|
|
|
src = fetchurl {
|
2012-11-17 01:13:25 +00:00
|
|
|
url = "http://jonas.nitro.dk/tig/releases/${name}.tar.gz";
|
2014-06-01 13:39:55 +00:00
|
|
|
sha256 = "0gi7iqiij37b0d3izxymxaw5ns2mv1y7qfic0fhl7xj4s2rz075r";
|
2012-08-07 22:49:12 +00:00
|
|
|
};
|
2013-11-09 18:06:55 +00:00
|
|
|
|
|
|
|
buildInputs = [ ncurses asciidoc xmlto docbook_xsl ];
|
|
|
|
|
2013-11-09 18:03:16 +00: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 18:06:55 +00:00
|
|
|
|
2012-08-07 22:49:12 +00:00
|
|
|
installPhase = ''
|
|
|
|
make install
|
|
|
|
make install-doc
|
2013-04-01 16:37:52 +00:00
|
|
|
mkdir -p $out/etc/bash_completion.d/
|
|
|
|
cp contrib/tig-completion.bash $out/etc/bash_completion.d/
|
2012-08-07 22:49:12 +00:00
|
|
|
'';
|
2013-11-09 18:06:55 +00:00
|
|
|
|
2013-05-20 17:33:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-08-07 22:49:12 +00:00
|
|
|
homepage = "http://jonas.nitro.dk/tig/";
|
2013-11-09 18:06:55 +00:00
|
|
|
description = "Text-mode interface for git";
|
|
|
|
maintainers = with maintainers; [ garbas bjornfor iElectric ];
|
2013-05-20 17:33:18 +00:00
|
|
|
license = licenses.gpl2;
|
2014-04-12 16:37:45 +00:00
|
|
|
platforms = platforms.unix;
|
2012-08-07 22:49:12 +00:00
|
|
|
};
|
|
|
|
}
|