diff options
author | kilianar <mail@kilianar.de> | 2023-05-30 13:17:26 +0200 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-06-01 14:01:11 +0000 |
commit | e1ed166090781ea737c2ee583aeea46c8428c88f (patch) | |
tree | f788950ed0bb75c0c1323cd841fc3e5ecdbba787 /pkgs/development/libraries/podofo | |
parent | bf17cbe1a9ef4f4450334425bb4cc66e0d2f2b2f (diff) |
podofo010: init at 0.10.0
https://github.com/podofo/podofo/releases/tag/0.10.0
Diffstat (limited to 'pkgs/development/libraries/podofo')
-rw-r--r-- | pkgs/development/libraries/podofo/0.10.x.nix | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/pkgs/development/libraries/podofo/0.10.x.nix b/pkgs/development/libraries/podofo/0.10.x.nix new file mode 100644 index 0000000000000..92231718c2615 --- /dev/null +++ b/pkgs/development/libraries/podofo/0.10.x.nix @@ -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 = []; + }; +}) |