b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
31 lines
857 B
Nix
31 lines
857 B
Nix
{ lib, stdenv, fetchzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "updfparser";
|
|
version = "unstable-2023-08-08";
|
|
rev = "c5ce75b9eea8ebb2746b13eeb0f335813c615115";
|
|
|
|
src = fetchzip {
|
|
url = "https://indefero.soutade.fr/p/updfparser/source/download/${rev}/";
|
|
hash = "sha256-RT7mvu43Izp0rHhKq4wR4kt0TDfzHvB2NGMR+fxO5UM=";
|
|
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; {
|
|
description = "A very simple PDF parser";
|
|
homepage = "https://indefero.soutade.fr/p/updfparser";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ autumnal ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|