1 { lib, stdenv, fetchzip
4 stdenv.mkDerivation rec {
9 url = "https://github.com/w3c/epubcheck/releases/download/v${version}/epubcheck-${version}.zip";
10 sha256 = "sha256-gskQ02lGka3nBHSDXO3TpKSQzaoaJUQY9AvWG7L+1YM=";
13 nativeBuildInputs = [ makeWrapper ];
21 mkdir -p $out/libexec/epubcheck
22 cp epubcheck.jar $out/libexec/epubcheck
24 classpath=$out/libexec/epubcheck/epubcheck.jar
25 for jar in $out/lib/*.jar; do
26 classpath="$classpath:$jar"
30 makeWrapper ${jre}/bin/java $out/bin/epubcheck \
31 --add-flags "-classpath $classpath com.adobe.epubcheck.tool.Checker"
35 homepage = "https://github.com/w3c/epubcheck";
36 description = "Validation tool for EPUB";
37 mainProgram = "epubcheck";
38 sourceProvenance = with sourceTypes; [ binaryBytecode ];
39 license = with licenses; [ asl20 bsd3 mpl10 w3c ];
40 platforms = platforms.all;
41 maintainers = with maintainers; [ eadwu ];