ba048baaff
Since version 2.0, tig can use readline for history/completion support, so add readline as a build input. Increases closure size from 53 MiB to 54 MiB.
33 lines
942 B
Nix
33 lines
942 B
Nix
{ stdenv, fetchurl, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45
|
|
, readline
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tig-2.0.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://jonas.nitro.dk/tig/releases/${name}.tar.gz";
|
|
sha256 = "0gi7iqiij37b0d3izxymxaw5ns2mv1y7qfic0fhl7xj4s2rz075r";
|
|
};
|
|
|
|
buildInputs = [ ncurses asciidoc xmlto docbook_xsl readline ];
|
|
|
|
preConfigure = ''
|
|
export XML_CATALOG_FILES='${docbook_xsl}/xml/xsl/docbook/catalog.xml ${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml'
|
|
'';
|
|
|
|
installPhase = ''
|
|
make install
|
|
make install-doc
|
|
mkdir -p $out/etc/bash_completion.d/
|
|
cp contrib/tig-completion.bash $out/etc/bash_completion.d/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://jonas.nitro.dk/tig/";
|
|
description = "Text-mode interface for git";
|
|
maintainers = with maintainers; [ garbas bjornfor iElectric ];
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|