Skip to content

Commit a78ce1d

Browse files
sigmaMic92
authored andcommittedApr 10, 2017
tig: 2.2 -> 2.2.1 (#24770)
* tig: 2.2 -> 2.2.1 Also move to different project URLs, as requested in https://github.com/jonas/tig/releases/tag/tig-2.2.1 * tig: fix fetching mechanism Rework the dependencies to allow use of fetchFromGitHub.
1 parent 0358bf2 commit a78ce1d

File tree

1 file changed

+20
-11
lines changed
  • pkgs/applications/version-management/git-and-tools/tig

1 file changed

+20
-11
lines changed
 

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

+20-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
1-
{ stdenv, fetchurl, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45
2-
, readline, makeWrapper, git, libiconv
1+
{ stdenv, fetchFromGitHub, ncurses, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45
2+
, readline, makeWrapper, git, libiconv, autoreconfHook, findXMLCatalogs
33
}:
44

55
stdenv.mkDerivation rec {
6-
name = "tig-2.2";
7-
8-
src = fetchurl {
9-
url = "http://jonas.nitro.dk/tig/releases/${name}.tar.gz";
10-
sha256 = "0k3m894vfkgkj7xbr0j6ph91351dl6id5f0hk2ksjp5lmg9i6llg";
6+
pname = "tig";
7+
version = "2.2.1";
8+
name = "${pname}-${version}";
9+
10+
src = fetchFromGitHub {
11+
owner = "jonas";
12+
repo = pname;
13+
rev = name;
14+
sha256 = "09xiwm57df0vzk8r2hx5p1hwy5f9q8frmdf96aba2ia9837zn3av";
1115
};
1216

13-
buildInputs = [ ncurses asciidoc xmlto docbook_xsl readline git makeWrapper ]
17+
nativeBuildInputs = [ makeWrapper autoreconfHook asciidoc xmlto docbook_xsl docbook_xml_dtd_45 findXMLCatalogs ];
18+
19+
autoreconfFlags = "-I tools -v";
20+
21+
buildInputs = [ ncurses readline git ]
1422
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
1523

16-
preConfigure = ''
17-
export XML_CATALOG_FILES='${docbook_xsl}/xml/xsl/docbook/catalog.xml ${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml'
24+
# those files are inherently impure, we'll handle the corresponding dependencies.
25+
postPatch = ''
26+
rm -f contrib/config.make-*
1827
'';
1928

2029
enableParallelBuilding = true;
@@ -30,7 +39,7 @@ stdenv.mkDerivation rec {
3039
'';
3140

3241
meta = with stdenv.lib; {
33-
homepage = "http://jonas.nitro.dk/tig/";
42+
homepage = "https://jonas.github.io/tig/";
3443
description = "Text-mode interface for git";
3544
maintainers = with maintainers; [ garbas bjornfor domenkozar qknight ];
3645
license = licenses.gpl2;

0 commit comments

Comments
 (0)
Please sign in to comment.