empty-pdf: init

This commit is contained in:
Pratham Patel 2026-06-11 12:45:27 +05:30
commit 4ae53d27e5
No known key found for this signature in database

View file

@ -0,0 +1,39 @@
{
stdenvNoCC,
imagemagick,
lib,
}:
stdenvNoCC.mkDerivation {
name = "empty-pdf";
__structuredAttrs = true;
dontUnpack = true;
nativeBuildInputs = [ imagemagick ];
buildPhase = ''
runHook preBuild
magick xc:none -page Letter empty.pdf
runHook postBuild
'';
installPhase = ''
runHook preInstall
mv empty.pdf $out
runHook postInstall
'';
meta = {
description = "Empty PDF file intended for testing";
maintainers = with lib.maintainers; [
pandapip1
thefossguy
];
platforms = imagemagick.meta.platforms;
};
}