Skip to content

Commit 12b7076

Browse files
committed
pdf-sign: Fix program name in help text
1 parent 9dd68d6 commit 12b7076

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkgs/by-name/pd/pdf-sign/package.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ stdenv.mkDerivation {
3838
runHook preInstall
3939
4040
for exe in "pdf-sign" "pdf-create-empty" "pdf-from-text"; do
41-
install -Dm755 $exe -t $out/bin
42-
wrapProgram $out/bin/$exe --prefix PATH : ${binPath}
41+
# Install wrapped programs into $out/lib so that they are not renamed.
42+
# Renaming them, like wrapProgram does, would produce the wrong output
43+
# from `--help`.
44+
install -Dm755 $exe -t $out/lib
45+
makeWrapper $out/lib/$exe $out/bin/$exe --prefix PATH : ${binPath}
4346
done
4447
4548
runHook postInstall

0 commit comments

Comments
 (0)