mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
42 lines
614 B
Nix
42 lines
614 B
Nix
{
|
|
stdenvNoCC,
|
|
imagemagick,
|
|
lib,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
name = "empty-pdf";
|
|
|
|
__structuredAttrs = true;
|
|
strictDeps = 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;
|
|
};
|
|
}
|