Commit 0994c14c authored by Weijia Wang's avatar Weijia Wang
Browse files

xmlcopyeditor: refactor

parent 106603e4
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -14,13 +14,13 @@
  xercesc,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "xmlcopyeditor";
  version = "1.3.1.0";

  src = fetchurl {
    url = "mirror://sourceforge/xml-copy-editor/${pname}-${version}.tar.gz";
    sha256 = "sha256-6HHKl7hqyvF3gJ9vmjLjTT49prJ8KhEEV0qPsJfQfJE=";
    url = "mirror://sourceforge/xml-copy-editor/xmlcopyeditor-${finalAttrs.version}.tar.gz";
    hash = "sha256-6HHKl7hqyvF3gJ9vmjLjTT49prJ8KhEEV0qPsJfQfJE=";
  };

  patches = [ ./xmlcopyeditor.patch ];
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
  #        with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
  postPatch = ''
    substituteInPlace src/wraplibxml.cpp \
      --replace "xmlErrorPtr err" "const xmlError *err"
      --replace-fail "xmlErrorPtr err" "const xmlError *err"
  '';

  nativeBuildInputs = [
@@ -50,15 +50,15 @@ stdenv.mkDerivation rec {

  enableParallelBuilding = true;

  meta = with lib; {
  meta = {
    description = "Fast, free, validating XML editor";
    homepage = "https://xml-copy-editor.sourceforge.io/";
    license = licenses.gpl2Plus;
    platforms = platforms.unix;
    maintainers = with maintainers; [
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [
      candeira
      wegank
    ];
    mainProgram = "xmlcopyeditor";
  };
}
})