mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
64 lines
1.0 KiB
Nix
64 lines
1.0 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 = [];
|
|
};
|
|
})
|