2023-03-24 00:07:29 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "updfparser";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "unstable-2023-08-08";
|
|
|
|
rev = "c5ce75b9eea8ebb2746b13eeb0f335813c615115";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://indefero.soutade.fr/p/updfparser/source/download/${rev}/";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-RT7mvu43Izp0rHhKq4wR4kt0TDfzHvB2NGMR+fxO5UM=";
|
2023-03-24 00:07:29 +00:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "BUILD_STATIC=1" "BUILD_SHARED=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dt $out/include include/*.h
|
|
|
|
install -Dt $out/lib libupdfparser.so
|
|
|
|
install -Dt $out/lib libupdfparser.a
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Very simple PDF parser";
|
2023-03-24 00:07:29 +00:00
|
|
|
homepage = "https://indefero.soutade.fr/p/updfparser";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ autumnal ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|