summary refs log tree commit diff
path: root/pkgs/development/libraries/updfparser
diff options
context:
space:
mode:
authorSven Friedrich <sven@autumnal.de>2023-03-22 23:13:19 +0100
committerSven Friedrich <sven@autumnal.de>2023-03-22 23:32:50 +0100
commit958836a059a136118769bc1f0b411548f5e062f0 (patch)
tree6c6b2a68ece143ad427c2e061fb20a7cd541baeb /pkgs/development/libraries/updfparser
parent78cd6d98336a57526850d976ae8caf1e459de30c (diff)
downloadnixpkgs-958836a059a136118769bc1f0b411548f5e062f0.tar
nixpkgs-958836a059a136118769bc1f0b411548f5e062f0.tar.gz
nixpkgs-958836a059a136118769bc1f0b411548f5e062f0.tar.bz2
nixpkgs-958836a059a136118769bc1f0b411548f5e062f0.tar.lz
nixpkgs-958836a059a136118769bc1f0b411548f5e062f0.tar.xz
nixpkgs-958836a059a136118769bc1f0b411548f5e062f0.tar.zst
nixpkgs-958836a059a136118769bc1f0b411548f5e062f0.zip
updfparser: init at unstable-2023-01-10
Diffstat (limited to 'pkgs/development/libraries/updfparser')
-rw-r--r--pkgs/development/libraries/updfparser/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/updfparser/default.nix b/pkgs/development/libraries/updfparser/default.nix
new file mode 100644
index 00000000000..1eae1782b77
--- /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;
+  };
+}