pdftag: init at 1.0.3 (#45666)

This commit is contained in:
leenaars 2018-09-11 15:52:46 +02:00 committed by xeji
parent 66f6105978
commit 28ef51244a
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, pkgconfig, meson, vala, ninja
, gtk3, poppler, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "pdftag";
name = "${pname}-${version}";
version = "1.0.4";
src = fetchFromGitHub {
owner = "arrufat";
repo = pname;
rev = version;
sha256 = "17zk42h0n33b4p8fqlq2riqwcdi8y9m5n0ccydnk6a4x8rli97b3";
};
nativeBuildInputs = [ pkgconfig meson ninja wrapGAppsHook ];
buildInputs = [ gtk3 poppler vala ];
patchPhase = ''substituteInPlace meson.build \
--replace "install_dir: '/usr" "install_dir: '$out"
'';
preInstall = "mkdir -p $out/share/licenses/${pname}";
meta = with stdenv.lib; {
description = "Edit metadata found in PDFs";
license = licenses.gpl3;
maintainers = with maintainers; [ leenaars ];
platforms = platforms.unix;
};
}

View File

@ -4594,6 +4594,8 @@ with pkgs;
pdfcrack = callPackage ../tools/security/pdfcrack { };
pdftag = callPackage ../tools/graphics/pdftag { };
pdf2svg = callPackage ../tools/graphics/pdf2svg { };
fmodex = callPackage ../games/zandronum/fmod.nix { };