2014-05-25 13:28:06 +02:00
|
|
|
{ stdenv, fetchurl, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45
|
2015-11-07 13:50:25 +01:00
|
|
|
, readline, makeWrapper, git, libiconv
|
2014-05-25 13:28:06 +02:00
|
|
|
}:
|
2012-08-08 00:49:12 +02:00
|
|
|
|
2012-11-17 02:13:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-08-18 16:02:58 +02:00
|
|
|
name = "tig-2.2";
|
2013-11-09 19:06:55 +01:00
|
|
|
|
2012-08-08 00:49:12 +02:00
|
|
|
src = fetchurl {
|
2012-11-17 02:13:25 +01:00
|
|
|
url = "http://jonas.nitro.dk/tig/releases/${name}.tar.gz";
|
2016-08-18 16:02:58 +02:00
|
|
|
sha256 = "0k3m894vfkgkj7xbr0j6ph91351dl6id5f0hk2ksjp5lmg9i6llg";
|
2012-08-08 00:49:12 +02:00
|
|
|
};
|
2013-11-09 19:06:55 +01:00
|
|
|
|
2015-11-07 13:50:25 +01:00
|
|
|
buildInputs = [ ncurses asciidoc xmlto docbook_xsl readline git makeWrapper ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
|
2013-11-09 19:06:55 +01:00
|
|
|
|
2013-11-09 19:03:16 +01: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 19:06:55 +01:00
|
|
|
|
2015-01-13 22:51:04 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-08-08 00:49:12 +02:00
|
|
|
installPhase = ''
|
|
|
|
make install
|
|
|
|
make install-doc
|
2013-04-01 18:37:52 +02:00
|
|
|
mkdir -p $out/etc/bash_completion.d/
|
|
|
|
cp contrib/tig-completion.bash $out/etc/bash_completion.d/
|
2015-01-13 22:51:04 +01:00
|
|
|
|
|
|
|
wrapProgram $out/bin/tig \
|
|
|
|
--prefix PATH ':' "${git}/bin"
|
2012-08-08 00:49:12 +02:00
|
|
|
'';
|
2013-11-09 19:06:55 +01:00
|
|
|
|
2013-05-20 19:33:18 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-08-08 00:49:12 +02:00
|
|
|
homepage = "http://jonas.nitro.dk/tig/";
|
2013-11-09 19:06:55 +01:00
|
|
|
description = "Text-mode interface for git";
|
2016-05-17 13:57:28 +02:00
|
|
|
maintainers = with maintainers; [ garbas bjornfor domenkozar qknight ];
|
2013-05-20 19:33:18 +02:00
|
|
|
license = licenses.gpl2;
|
2014-04-12 18:37:45 +02:00
|
|
|
platforms = platforms.unix;
|
2012-08-08 00:49:12 +02:00
|
|
|
};
|
|
|
|
}
|