nixpkgs/pkgs/development/libraries/updfparser/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

32 lines
855 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 = "Very simple PDF parser";
homepage = "https://indefero.soutade.fr/p/updfparser";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ autumnal ];
platforms = platforms.all;
};
}