2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
53 lines
1.6 KiB
Nix
53 lines
1.6 KiB
Nix
{ stdenv, fetchFromGitHub, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45
|
|
, readline, makeWrapper, git, libiconv, autoreconfHook, findXMLCatalogs, pkgconfig
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tig";
|
|
version = "2.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jonas";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
sha256 = "0i26yfn2vjgsg1kdvhhv55jwzds7ih7cnad1xqvilqm83zh47ksd";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper autoreconfHook asciidoc xmlto docbook_xsl docbook_xml_dtd_45 findXMLCatalogs pkgconfig ];
|
|
|
|
autoreconfFlags = "-I tools -v";
|
|
|
|
buildInputs = [ ncurses readline git ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
|
|
|
|
# those files are inherently impure, we'll handle the corresponding dependencies.
|
|
postPatch = ''
|
|
rm -f contrib/config.make-*
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
make install
|
|
make install-doc
|
|
|
|
substituteInPlace contrib/tig-completion.zsh \
|
|
--replace 'e=$(dirname ''${funcsourcetrace[1]%:*})/tig-completion.bash' "e=$out/etc/bash_completion.d/tig-completion.bash"
|
|
|
|
install -D contrib/tig-completion.bash $out/etc/bash_completion.d/tig-completion.bash
|
|
install -D contrib/tig-completion.zsh $out/share/zsh/site-functions/_tig
|
|
cp contrib/vim.tigrc $out/etc/
|
|
|
|
wrapProgram $out/bin/tig \
|
|
--prefix PATH ':' "${git}/bin"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://jonas.github.io/tig/;
|
|
description = "Text-mode interface for git";
|
|
maintainers = with maintainers; [ bjornfor domenkozar qknight globin ];
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|