17 stdenv.mkDerivation (finalAttrs: {
18 pname = "xmlcopyeditor";
22 url = "mirror://sourceforge/xml-copy-editor/xmlcopyeditor-${finalAttrs.version}.tar.gz";
23 hash = "sha256-6HHKl7hqyvF3gJ9vmjLjTT49prJ8KhEEV0qPsJfQfJE=";
26 patches = [ ./xmlcopyeditor.patch ];
28 # error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *')
29 # with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
31 substituteInPlace src/wraplibxml.cpp \
32 --replace-fail "xmlErrorPtr err" "const xmlError *err"
51 env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";
53 enableParallelBuilding = true;
56 description = "Fast, free, validating XML editor";
57 homepage = "https://xml-copy-editor.sourceforge.io/";
58 license = lib.licenses.gpl2Plus;
59 platforms = lib.platforms.unix;
60 maintainers = with lib.maintainers; [
64 mainProgram = "xmlcopyeditor";