Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.0 KiB
Nix
67 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
fontconfig,
|
|
freetype,
|
|
libjpeg,
|
|
libpng,
|
|
libtiff,
|
|
libxml2,
|
|
openssl,
|
|
pkg-config,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "podofo";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "podofo";
|
|
repo = "podofo";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-mWomK+efiq2oLnYdLSWpqwtSd0WNVU1DsYmDHierQ64=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
fontconfig
|
|
freetype
|
|
libjpeg
|
|
libpng
|
|
libtiff
|
|
libxml2
|
|
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 = with lib.maintainers; [
|
|
kuflierl
|
|
];
|
|
};
|
|
})
|