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

40 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45
2015-11-07 12:50:25 +00:00
, readline, makeWrapper, git, libiconv
}:
2012-08-07 23:49:12 +01:00
2012-11-17 01:13:25 +00:00
stdenv.mkDerivation rec {
2015-04-29 22:57:31 +01:00
name = "tig-2.1.1";
2012-08-07 23:49:12 +01:00
src = fetchurl {
2012-11-17 01:13:25 +00:00
url = "http://jonas.nitro.dk/tig/releases/${name}.tar.gz";
2015-04-29 22:57:31 +01:00
sha256 = "0bw5wivswwh7vx897q8xc2cqgkqhdzk8gh6fnav2kf34sngigiah";
2012-08-07 23:49:12 +01:00
};
2015-11-07 12:50:25 +00:00
buildInputs = [ ncurses asciidoc xmlto docbook_xsl readline git makeWrapper ]
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
preConfigure = ''
export XML_CATALOG_FILES='${docbook_xsl}/xml/xsl/docbook/catalog.xml ${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml'
'';
enableParallelBuilding = true;
2012-08-07 23:49:12 +01:00
installPhase = ''
make install
make install-doc
mkdir -p $out/etc/bash_completion.d/
cp contrib/tig-completion.bash $out/etc/bash_completion.d/
wrapProgram $out/bin/tig \
--prefix PATH ':' "${git}/bin"
2012-08-07 23:49:12 +01:00
'';
meta = with stdenv.lib; {
2012-08-07 23:49:12 +01:00
homepage = "http://jonas.nitro.dk/tig/";
description = "Text-mode interface for git";
maintainers = with maintainers; [ garbas bjornfor domenkozar qknight ];
license = licenses.gpl2;
platforms = platforms.unix;
2012-08-07 23:49:12 +01:00
};
}