10 , acceptLicense ? config.xxe-pe.acceptLicense or false
14 pkg_path = "$out/lib/xxe";
16 desktopItem = makeDesktopItem {
17 name = "XMLmind XML Editor Personal Edition";
21 genericName = "XML Editor";
22 categories = [ "Development" "IDE" "TextEditor" "Java" ];
25 stdenv.mkDerivation rec {
30 assert !acceptLicense -> throw ''
31 You must accept the XMLmind XML Editor Personal Edition License at
32 https://www.xmlmind.com/xmleditor/license_xxe_perso.html
33 by setting nixpkgs config option `xxe-pe.acceptLicense = true;`
34 or by using `xxe-pe.override { acceptLicense = true; }` package.
37 url = "https://www.xmlmind.com/xmleditor/_download/xxe-perso-${builtins.replaceStrings [ "." ] [ "_" ] version}.zip";
38 sha256 = "sha256-JZ9nQwMrQL/1HKGwvXoWlnTx55ZK/UYjMJAddCtm0rw=";
50 mkdir -p "${pkg_path}"
51 mkdir -p "${pkg_path}" "$out/share/applications"
53 ln -s ${desktopItem}/share/applications/* $out/share/applications
55 icotool -x "${pkg_path}/bin/icon/xxe.ico"
57 for f in xxe_*.png; do
58 res=$(basename "$f" ".png" | cut -d"_" -f3 | cut -d"x" -f1-2)
59 mkdir -pv "$out/share/icons/hicolor/$res/apps"
60 mv "$f" "$out/share/icons/hicolor/$res/apps/xxe.png"
66 makeWrapper "${pkg_path}/bin/xxe" "$out/bin/xxe" \
67 --prefix PATH : ${lib.makeBinPath [ openjdk11 ]}
71 description = "Strictly validating, near WYSIWYG, XML editor with DocBook support";
72 homepage = "https://www.xmlmind.com/xmleditor/";
73 license = licenses.unfree;
75 platforms = [ "x86_64-linux" ];