pdfid: init at 0.2.8
This commit is contained in:
parent
73270c64ae
commit
8ac914904e
1 changed files with 40 additions and 0 deletions
40
pkgs/by-name/pd/pdfid/package.nix
Normal file
40
pkgs/by-name/pd/pdfid/package.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, fetchzip
|
||||
, python3
|
||||
, python3Packages
|
||||
, makeBinaryWrapper
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "pdfid";
|
||||
version = "0.2.8";
|
||||
format = "other";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://didierstevens.com/files/software/pdfid_v0_2_8.zip";
|
||||
hash = "sha256-ZLyhBMF2KMX0c1oCvuSCjEjHTnm2gFhJtasaTD9Q1BI=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{bin,share/pdfid}
|
||||
cp -a * $out/share/pdfid/
|
||||
makeBinaryWrapper ${lib.getExe python3} $out/bin/${meta.mainProgram} \
|
||||
--add-flags "$out/share/pdfid/pdfid.py"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Scan a file to look for certain PDF keywords";
|
||||
homepage = "https://blog.didierstevens.com/programs/pdf-tools/";
|
||||
license = with licenses; [ free ];
|
||||
mainProgram = "pdfid";
|
||||
maintainers = with maintainers; [ d3vil0p3r ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue