pdf-sign: Fix program name in help text

This commit is contained in:
Axel Svensson 2024-08-14 18:20:41 +02:00
parent 9dd68d6bc6
commit 12b70760b7

View File

@ -38,8 +38,11 @@ stdenv.mkDerivation {
runHook preInstall
for exe in "pdf-sign" "pdf-create-empty" "pdf-from-text"; do
install -Dm755 $exe -t $out/bin
wrapProgram $out/bin/$exe --prefix PATH : ${binPath}
# Install wrapped programs into $out/lib so that they are not renamed.
# Renaming them, like wrapProgram does, would produce the wrong output
# from `--help`.
install -Dm755 $exe -t $out/lib
makeWrapper $out/lib/$exe $out/bin/$exe --prefix PATH : ${binPath}
done
runHook postInstall