3
0
Fork 0
forked from mirrors/nixpkgs

pdf-sign: fix version name, simplify installPhase, move to pkgs/by-name

This commit is contained in:
TomaSajt 2024-02-07 20:11:36 +01:00
parent 4798085581
commit 73f6bc2c4e
No known key found for this signature in database
GPG key ID: F011163C050122A1
2 changed files with 7 additions and 13 deletions

View file

@ -10,12 +10,12 @@
}:
let
python-env = python3.withPackages (ps: with ps; [ tkinter ]);
python = python3.withPackages (ps: with ps; [ tkinter ]);
binPath = lib.makeBinPath [ ghostscript pdftk poppler_utils ];
in
stdenv.mkDerivation {
pname = "pdf-sign";
version = "unstable-2023-08-08";
version = "0-unstable-2023-08-08";
src = fetchFromGitHub {
owner = "svenssonaxel";
@ -26,18 +26,14 @@ stdenv.mkDerivation {
nativeBuildInputs = [ makeBinaryWrapper ];
buildInputs = [ python ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp pdf-sign pdf-create-empty $out
makeWrapper ${python-env}/bin/python $out/bin/pdf-sign \
--add-flags $out/pdf-sign \
--prefix PATH : ${binPath}
makeWrapper ${python-env}/bin/python $out/bin/pdf-create-empty \
--add-flags $out/pdf-create-empty \
--prefix PATH : ${binPath}
install -Dm755 pdf-sign pdf-create-empty -t $out/bin
wrapProgram $out/bin/pdf-sign --prefix PATH : ${binPath}
wrapProgram $out/bin/pdf-create-empty --prefix PATH : ${binPath}
runHook postInstall
'';

View file

@ -11970,8 +11970,6 @@ with pkgs;
pdf-quench = callPackage ../applications/misc/pdf-quench { };
pdf-sign = callPackage ../tools/graphics/pdf-sign { };
pdfarranger = callPackage ../applications/misc/pdfarranger { };
briss = callPackage ../tools/graphics/briss { };