10 stdenv.mkDerivation (finalAttrs: {
15 url = "http://www.catb.org/~esr/doclifter/doclifter-${finalAttrs.version}.tar.gz";
16 hash = "sha256-3zb+H/rRmU87LWh0+kQtiRMZ4JwJ3tVrt8vQ/EeKx8Q=";
20 substituteInPlace manlifter \
21 --replace-fail '/usr/bin/env python2' '/usr/bin/env python3'
30 buildInputs = [ python3 ];
34 makeFlags = [ "PREFIX=$(out)" ];
38 mkdir -p $out/share/man/man1
40 wrapProgram "$out/bin/manlifter" \
41 --prefix PATH : "${lib.getBin libxml2}/bin:$out/bin"
42 gzip < manlifter.1 > $out/share/man/man1/manlifter.1.gz
46 changelog = "https://gitlab.com/esr/doclifter/-/blob/2.21/NEWS";
47 description = "Lift documents in nroff markups to XML-DocBook";
48 homepage = "http://www.catb.org/esr/doclifter";
49 license = lib.licenses.bsd2;
50 mainProgram = "doclifter";
51 platforms = lib.platforms.unix;