podofo010: init at 0.10.0

https://github.com/podofo/podofo/releases/tag/0.10.0
This commit is contained in:
kilianar 2023-05-30 13:17:26 +02:00 committed by Anderson Torres
parent bf17cbe1a9
commit e1ed166090
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,67 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, expat
, fontconfig
, freetype
, libidn
, libjpeg
, libpng
, libtiff
, libxml2
, lua5
, openssl
, pkg-config
, zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "podofo";
version = "0.10.0";
src = fetchFromGitHub {
owner = "podofo";
repo = "podofo";
rev = finalAttrs.version;
hash = "sha256-Z9mVAo2dITEtTdqA2sftaLZSCiTbGS02RYxfNcEwd1c=";
};
outputs = [ "out" "dev" "lib" ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
expat
fontconfig
freetype
libidn
libjpeg
libpng
libtiff
libxml2
lua5
openssl
zlib
];
cmakeFlags = [
"-DPODOFO_BUILD_STATIC=${if stdenv.hostPlatform.isStatic then "ON" else "OFF"}"
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
];
postInstall = ''
moveToOutput lib "$lib"
'';
meta = {
homepage = "https://github.com/podofo/podofo";
description = "A library to work with the PDF file format";
platforms = lib.platforms.all;
license = with lib.licenses; [ gpl2Plus lgpl2Plus ];
maintainers = [];
};
})

View file

@ -23578,6 +23578,8 @@ with pkgs;
podofo = callPackage ../development/libraries/podofo { };
podofo010 = callPackage ../development/libraries/podofo/0.10.x.nix { };
polkit = callPackage ../development/libraries/polkit { };
poppler = callPackage ../development/libraries/poppler { lcms = lcms2; };