podofo_0_9: rename attr and alias, adopt, top-level, remove 'with lib', switch source from sourceforge to github, remove unused dep expat

This commit is contained in:
kuflierl 2025-05-31 21:13:35 +02:00
parent e6ce7fc686
commit d9e684a371
No known key found for this signature in database
GPG Key ID: 0B3842DA5392223D
3 changed files with 14 additions and 12 deletions

View File

@ -157,7 +157,7 @@ stdenv.mkDerivation (finalAttrs: {
export FC_INC_DIR=${fontconfig.dev}/include/fontconfig
export FC_LIB_DIR=${fontconfig.lib}/lib
export PODOFO_INC_DIR=${podofo.dev}/include/podofo
export PODOFO_LIB_DIR=${podofo.lib}/lib
export PODOFO_LIB_DIR=${podofo}/lib
export XDG_DATA_HOME=$out/share
export XDG_UTILS_INSTALL_MODE="user"
export PIPER_TTS_DIR=${piper-tts}/bin

View File

@ -1,7 +1,7 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
cmake,
zlib,
freetype,
@ -13,16 +13,17 @@
lua5,
pkg-config,
libidn,
expat,
}:
stdenv.mkDerivation rec {
version = "0.9.8";
pname = "podofo";
src = fetchurl {
url = "mirror://sourceforge/podofo/${pname}-${version}.tar.gz";
sha256 = "sha256-XeYH4V8ZK4rZBzgwB1nYjeoPXM3OO/AASKDJMrxkUVQ=";
src = fetchFromGitHub {
owner = "podofo";
repo = "podofo";
rev = version;
hash = "sha256-VGsACeCC8xKC1n/ackT576ZU3ZR1LAw8H0l/Q9cH27s=";
};
outputs = [
@ -45,7 +46,6 @@ stdenv.mkDerivation rec {
openssl
libpng
libidn
expat
lua5
];
@ -64,13 +64,16 @@ stdenv.mkDerivation rec {
-e 's/^libdir=.*/libdir=@CMAKE_INSTALL_LIBDIR@/' -e "$failNoMatches"
'';
meta = with lib; {
meta = {
homepage = "https://podofo.sourceforge.net";
description = "Library to work with the PDF file format";
platforms = platforms.all;
license = with licenses; [
platforms = lib.platforms.all;
license = with lib.licenses; [
gpl2Plus
lgpl2Plus
];
maintainers = with lib.maintainers; [
kuflierl
];
};
}

View File

@ -9291,9 +9291,8 @@ with pkgs;
place-cursor-at = haskell.lib.compose.justStaticExecutables haskellPackages.place-cursor-at;
podofo = callPackage ../development/libraries/podofo { };
podofo010 = callPackage ../development/libraries/podofo/0.10.x.nix { };
podofo = podofo_0_9;
poppler = callPackage ../development/libraries/poppler { lcms = lcms2; };