forked from mirrors/nixpkgs
pdf-sign: fix version name, simplify installPhase, move to pkgs/by-name
This commit is contained in:
parent
4798085581
commit
73f6bc2c4e
|
@ -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
|
||||
'';
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue