From 958836a059a136118769bc1f0b411548f5e062f0 Mon Sep 17 00:00:00 2001 From: Sven Friedrich Date: Wed, 22 Mar 2023 23:13:19 +0100 Subject: [PATCH] updfparser: init at unstable-2023-01-10 --- maintainers/maintainer-list.nix | 9 ++++++ .../libraries/updfparser/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 42 insertions(+) create mode 100644 pkgs/development/libraries/updfparser/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 18343ccaee4f..e9ecf0a3ea01 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1469,6 +1469,15 @@ githubId = 12958979; name = "Mika Naylor"; }; + autumnal = { + name = "Sven Friedrich"; + email = "sven@autumnal.de"; + github = "sevenautumns"; + githubId = 20627275; + keys = [{ + fingerprint = "6A2E 7FDD 1037 11A8 B996 E28E B051 064E 2FCA B71B"; + }]; + }; avakhrenev = { email = "avakhrenev@gmail.com"; github = "avakhrenev"; diff --git a/pkgs/development/libraries/updfparser/default.nix b/pkgs/development/libraries/updfparser/default.nix new file mode 100644 index 000000000000..1eae1782b77c --- /dev/null +++ b/pkgs/development/libraries/updfparser/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchzip }: + +stdenv.mkDerivation rec { + name = "updfparser"; + version = "unstable-2023-01-10"; + rev = "a421098092ba600fb1686a7df8fc58cd67429f59"; + + src = fetchzip { + url = "https://indefero.soutade.fr/p/updfparser/source/download/${rev}/"; + sha256 = "sha256-Kt1QDj7E0GaT615kJW2MQKF9BeU5U7/95TQKODpxgNI="; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cc1a1c14e145..dd309fddce15 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23904,6 +23904,8 @@ with pkgs; unicon-lang = callPackage ../development/interpreters/unicon-lang { }; + updfparser = callPackage ../development/libraries/updfparser { }; + tsocks = callPackage ../development/libraries/tsocks { }; unixODBC = callPackage ../development/libraries/unixODBC { };