doclifter: 2.19 -> 2.20
* doclifter: 2.19 -> 2.20 (#150219) * doclifter: fix manlifter Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
co-authored by
Jörg Thalheim
parent
44866de4d1
commit
a68e6c3731
@@ -1,13 +1,14 @@
|
||||
{lib, stdenv, fetchurl, python3}:
|
||||
{ lib, stdenv, fetchurl, python3, makeWrapper, libxml2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "doclifter";
|
||||
version = "2.19";
|
||||
version = "2.20";
|
||||
src = fetchurl {
|
||||
url = "http://www.catb.org/~esr/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "1as6z7mdjrrkw2kism41q5ybvyzvwcmj9qzla2fz98v9f4jbj2s2";
|
||||
sha256 = "sha256-BEuMbICJ8TD3+VjUr8rmhss7XlPNjxSy1P0SkmKLPsc=";
|
||||
};
|
||||
buildInputs = [ python3 ];
|
||||
nativeBuildInputs = [ python3 makeWrapper ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
@@ -16,7 +17,12 @@ stdenv.mkDerivation rec {
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/share/man/man1
|
||||
substituteInPlace manlifter \
|
||||
--replace '/usr/bin/env python2' '/usr/bin/env python3'
|
||||
2to3 -w manlifter
|
||||
cp manlifter $out/bin
|
||||
wrapProgram "$out/bin/manlifter" \
|
||||
--prefix PATH : "${libxml2}/bin:$out/bin"
|
||||
cp manlifter.1 $out/share/man/man1
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user