mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
empty-pdf: init
This commit is contained in:
parent
fae2ab3dd7
commit
4ae53d27e5
1 changed files with 39 additions and 0 deletions
39
pkgs/by-name/em/empty-pdf/package.nix
Normal file
39
pkgs/by-name/em/empty-pdf/package.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue