depot/third_party/nixpkgs/pkgs/development/libraries/podofo/0.10.x.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

63 lines
1 KiB
Nix

{ 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.3";
src = fetchFromGitHub {
owner = "podofo";
repo = "podofo";
rev = finalAttrs.version;
hash = "sha256-B+YNTo2rZAL4PqDo+lFOQiWM9bl/TIn8xrJyefrIAYE=";
};
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"
];
meta = {
homepage = "https://github.com/podofo/podofo";
description = "Library to work with the PDF file format";
platforms = lib.platforms.all;
license = with lib.licenses; [ gpl2Plus lgpl2Plus ];
maintainers = [];
};
})