xxe-pe: init at 9.4.0

Add a proprietary DocBook editor free for personal use.

https://www.xmlmind.com/xmleditor/

+79
+77
pkgs/applications/editors/xxe-pe/default.nix
··· 1 + { stdenv 2 + , fetchurl 3 + , lib 4 + , unzip 5 + , makeWrapper 6 + , openjdk11 7 + , makeDesktopItem 8 + , icoutils 9 + , config 10 + , acceptLicense ? config.xxe-pe.acceptLicense or false 11 + }: 12 + 13 + let 14 + pkg_path = "$out/lib/xxe"; 15 + 16 + desktopItem = makeDesktopItem { 17 + name = "XMLmind XML Editor Personal Edition"; 18 + exec = "xxe"; 19 + icon = "xxe"; 20 + desktopName = "xxe"; 21 + genericName = "XML Editor"; 22 + categories = "Development;IDE;TextEditor;Java"; 23 + }; 24 + in 25 + stdenv.mkDerivation rec { 26 + pname = "xxe-pe"; 27 + version = "9.4.0"; 28 + 29 + src = 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. 35 + ''; 36 + fetchurl { 37 + url = "https://www.xmlmind.com/xmleditor/_download/xxe-perso-${builtins.replaceStrings [ "." ] [ "_" ] version}.zip"; 38 + sha256 = "FKPdf9cOpgm/WG2i8bFnR6MmEifpiq5ykw2zHA8HnT8="; 39 + }; 40 + 41 + nativeBuildInputs = [ 42 + unzip 43 + makeWrapper 44 + icoutils 45 + ]; 46 + 47 + dontStrip = true; 48 + 49 + installPhase = '' 50 + mkdir -p "${pkg_path}" 51 + mkdir -p "${pkg_path}" "$out/share/applications" 52 + cp -a * "${pkg_path}" 53 + ln -s ${desktopItem}/share/applications/* $out/share/applications 54 + 55 + icotool -x "${pkg_path}/bin/icon/xxe.ico" 56 + ls 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" 61 + done; 62 + ''; 63 + 64 + postFixup = '' 65 + mkdir -p "$out/bin" 66 + makeWrapper "${pkg_path}/bin/xxe" "$out/bin/xxe" \ 67 + --prefix PATH : ${lib.makeBinPath [ openjdk11 ]} 68 + ''; 69 + 70 + meta = with lib; { 71 + description = "Strictly validating, near WYSIWYG, XML editor with DocBook support"; 72 + homepage = "https://www.xmlmind.com/xmleditor/"; 73 + license = licenses.unfree; 74 + maintainers = [ maintainers.jtojnar ]; 75 + platforms = [ "x86_64-linux" ]; 76 + }; 77 + }
+2
pkgs/top-level/all-packages.nix
··· 11433 11433 11434 11434 xxdiff = libsForQt5.callPackage ../development/tools/misc/xxdiff { }; 11435 11435 11436 + xxe-pe = callPackage ../applications/editors/xxe-pe { }; 11437 + 11436 11438 xxdiff-tip = xxdiff; 11437 11439 11438 11440 yaml2json = callPackage ../development/tools/yaml2json { };