10 stdenv.mkDerivation (finalAttrs: {
14 nativeBuildInputs = [ makeWrapper ];
15 buildInputs = [ openjdk17 ];
18 url = "https://github.com/dita-ot/dita-ot/releases/download/${finalAttrs.version}/dita-ot-${finalAttrs.version}.zip";
19 hash = "sha256-siHz81OuKVF77NsDpldAhq7YxzBFvo9RwGPe/mqkquQ=";
25 mkdir -p $out/bin $out/share/dita-ot/
26 cp -r $src/* $out/share/dita-ot/
28 makeWrapper "$out/share/dita-ot/bin/dita" "$out/bin/dita" \
29 --prefix PATH : "${lib.makeBinPath [ openjdk17 ]}" \
30 --set-default JDK_HOME "${openjdk17.home}" \
31 --set-default JAVA_HOME "${openjdk17.home}"
36 passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
39 homepage = "https://dita-ot.org";
40 changelog = "https://www.dita-ot.org/dev/release-notes/#v${finalAttrs.version}";
41 description = "The open-source publishing engine for content authored in the Darwin Information Typing Architecture";
42 license = lib.licenses.asl20;
44 platforms = openjdk17.meta.platforms;
45 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
46 maintainers = with lib.maintainers; [ robertrichter ];