nixpkgs/pkgs/applications/version-management/git-and-tools/tig/default.nix

27 lines
1,012 B
Nix
Raw Normal View History

{ stdenv, fetchurl, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45 }:
2012-08-08 00:49:12 +02:00
2012-11-17 02:13:25 +01:00
stdenv.mkDerivation rec {
name = "tig-1.2.1";
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";
sha256 = "0i19lc6dd3vdpkdd8q07xii2c4mcpiwmg55av81jyhx0y82x425p";
2012-08-08 00:49:12 +02:00
};
buildInputs = [ncurses asciidoc xmlto docbook_xsl];
preConfigure = ''
export XML_CATALOG_FILES='${docbook_xsl}/xml/xsl/docbook/catalog.xml ${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml'
'';
2012-08-08 00:49:12 +02:00
installPhase = ''
make install
make install-doc
mkdir -p $out/etc/bash_completion.d/
cp contrib/tig-completion.bash $out/etc/bash_completion.d/
2012-08-08 00:49:12 +02:00
'';
meta = with stdenv.lib; {
2012-08-08 00:49:12 +02:00
homepage = "http://jonas.nitro.dk/tig/";
2012-11-17 02:13:25 +01:00
description = "Tig is a git repository browser that additionally can act as a pager for output from various git commands";
2013-06-18 22:42:02 +02:00
maintainers = [ maintainers.garbas maintainers.bjornfor maintainers.iElectric ];
license = licenses.gpl2;
2013-06-18 22:42:02 +02:00
platforms = platforms.linux;
2012-08-08 00:49:12 +02:00
};
}