txt2man: minor cleanups, don't overwrite patchPhase, use makeFlags directly
This commit is contained in:
parent
1d86420916
commit
9bd158f461
|
@ -11,19 +11,19 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-Aqi5PNNaaM/tr9A/7vKeafYKYIs/kHbwHzE7+R/9r9s=";
|
hash = "sha256-Aqi5PNNaaM/tr9A/7vKeafYKYIs/kHbwHzE7+R/9r9s=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
makeFlags = [
|
||||||
makeFlags=prefix="$out"
|
"prefix=${placeholder "out"}"
|
||||||
'';
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
for f in bookman src2man txt2man; do
|
for f in bookman src2man txt2man; do
|
||||||
substituteInPlace $f --replace "gawk" "${gawk}/bin/gawk"
|
substituteInPlace $f \
|
||||||
|
--replace "gawk" "${gawk}/bin/gawk" \
|
||||||
substituteInPlace $f --replace "(date" "(${coreutils}/bin/date"
|
--replace "(date" "(${coreutils}/bin/date" \
|
||||||
substituteInPlace $f --replace "=cat" "=${coreutils}/bin/cat"
|
--replace "=cat" "=${coreutils}/bin/cat" \
|
||||||
substituteInPlace $f --replace "cat <<" "${coreutils}/bin/cat <<"
|
--replace "cat <<" "${coreutils}/bin/cat <<" \
|
||||||
substituteInPlace $f --replace "expand" "${coreutils}/bin/expand"
|
--replace "expand" "${coreutils}/bin/expand" \
|
||||||
substituteInPlace $f --replace "(uname" "(${coreutils}/bin/uname"
|
--replace "(uname" "(${coreutils}/bin/uname"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -35,11 +35,11 @@ stdenv.mkDerivation rec {
|
||||||
sh -c 'unset PATH; printf hello | ./txt2man'
|
sh -c 'unset PATH; printf hello | ./txt2man'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Convert flat ASCII text to man page format";
|
description = "Convert flat ASCII text to man page format";
|
||||||
homepage = "http://mvertes.free.fr/";
|
homepage = "http://mvertes.free.fr/";
|
||||||
license = lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = with lib.platforms; linux ++ darwin;
|
platforms = platforms.unix;
|
||||||
maintainers = with lib.maintainers; [ bjornfor ];
|
maintainers = with maintainers; [ bjornfor ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue