summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarek Mahut <marek.mahut@gmail.com>2019-08-27 10:35:45 +0200
committerGitHub <noreply@github.com>2019-08-27 10:35:45 +0200
commit9760593a5206ad1773498c954d57ae5380ff6810 (patch)
tree22744048a0d7a7a6fa18138e5da5559c2a98e1b1
parentb222ee44f2bc636fa8561e127d73462ca4c69764 (diff)
parent38f810ea330753d2052f27e0ddb829b4bf137ebb (diff)
downloadnixpkgs-9760593a5206ad1773498c954d57ae5380ff6810.tar
nixpkgs-9760593a5206ad1773498c954d57ae5380ff6810.tar.gz
nixpkgs-9760593a5206ad1773498c954d57ae5380ff6810.tar.bz2
nixpkgs-9760593a5206ad1773498c954d57ae5380ff6810.tar.lz
nixpkgs-9760593a5206ad1773498c954d57ae5380ff6810.tar.xz
nixpkgs-9760593a5206ad1773498c954d57ae5380ff6810.tar.zst
nixpkgs-9760593a5206ad1773498c954d57ae5380ff6810.zip
Merge pull request #67531 from jonringer/bump-texi2html
texi2html: 1.82 -> 5.0
-rw-r--r--pkgs/development/tools/misc/texi2html/default.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/development/tools/misc/texi2html/default.nix b/pkgs/development/tools/misc/texi2html/default.nix
index b094f05e951..247733b81ba 100644
--- a/pkgs/development/tools/misc/texi2html/default.nix
+++ b/pkgs/development/tools/misc/texi2html/default.nix
@@ -1,20 +1,27 @@
-{ stdenv, fetchurl, perl }:
+{ stdenv, fetchurl, perl, gettext }:
 
 stdenv.mkDerivation rec {
-  name = "texi2html-1.82";
+  pname = "texi2html";
+  version = "5.0";
 
   src = fetchurl {
-    url = "mirror://savannah/texi2html/${name}.tar.bz2";
-    sha256 = "1wdli2szkgm3l0vx8rf6lylw0b0m47dlz9iy004n928nqkzix76n";
+    url = "mirror://savannah/texi2html/${pname}-${version}.tar.bz2";
+    sha256 = "1yprv64vrlcbksqv25asplnjg07mbq38lfclp1m5lj8cw878pag8";
   };
 
-  buildInputs = [perl];
+  nativeBuildInputs = [ gettext ];
+  buildInputs = [ perl ];
 
-  meta = { 
+  preBuild = ''
+    substituteInPlace separated_to_hash.pl \
+      --replace "/usr/bin/perl" "${perl}/bin/perl"
+  '';
+
+  meta = with stdenv.lib; {
     description = "Perl script which converts Texinfo source files to HTML output";
     homepage = https://www.nongnu.org/texi2html/;
-    license = stdenv.lib.licenses.gpl2;
-    maintainers = [stdenv.lib.maintainers.marcweber];
-    platforms = stdenv.lib.platforms.unix;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.marcweber ];
+    platforms = platforms.unix;
   };
 }