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_INC_DIR=${fontconfig.dev}/include/fontconfig
export FC_LIB_DIR=${fontconfig.lib}/lib export FC_LIB_DIR=${fontconfig.lib}/lib
export PODOFO_INC_DIR=${podofo.dev}/include/podofo 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_DATA_HOME=$out/share
export XDG_UTILS_INSTALL_MODE="user" export XDG_UTILS_INSTALL_MODE="user"
export PIPER_TTS_DIR=${piper-tts}/bin export PIPER_TTS_DIR=${piper-tts}/bin

View File

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