1 { stdenv, lib, fetchurl, jre, makeWrapper }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/tabulapdf/tabula-java/releases/download/v${version}/tabula-${version}-jar-with-dependencies.jar";
9 sha256 = "sha256-IWHj//ZZOdfOCBJHnPnKNoYNtWl/f8H6ARYe1AkqB0U=";
12 nativeBuildInputs = [ makeWrapper ];
18 mkdir -pv $out/share/tabula-java
19 cp -v $src $out/share/tabula-java/tabula-java.jar
21 makeWrapper ${jre}/bin/java $out/bin/tabula-java --add-flags "-jar $out/share/tabula-java/tabula-java.jar"
25 description = "A library for extracting tables from PDF files.";
27 tabula-java is the table extraction engine that powers
28 Tabula. You can use tabula-java as a command-line tool to
29 programmatically extract tables from PDFs.
31 homepage = "https://tabula.technology/";
32 sourceProvenance = with sourceTypes; [ binaryBytecode ];
33 license = licenses.mit;
34 maintainers = [ maintainers.jakewaksbaum ];
35 platforms = platforms.all;