diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-11-04 17:39:01 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-11-04 17:39:01 +0100 |
commit | b9efaafce142169ae72210deb48534d4ed2af294 (patch) | |
tree | 77852386d4261e6e400baf5336401f20f4524b8b | |
parent | bb5a69de8803f58c7a472bb14c4018ad6333fd28 (diff) |
xmlcopyeditor: 1.2.1.3 -> 1.3.1.0
-rw-r--r-- | pkgs/applications/editors/xmlcopyeditor/default.nix | 47 | ||||
-rw-r--r-- | pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch | 27 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
3 files changed, 43 insertions, 35 deletions
diff --git a/pkgs/applications/editors/xmlcopyeditor/default.nix b/pkgs/applications/editors/xmlcopyeditor/default.nix index d9bf7f52b2c49..bd7c237e8c133 100644 --- a/pkgs/applications/editors/xmlcopyeditor/default.nix +++ b/pkgs/applications/editors/xmlcopyeditor/default.nix @@ -1,28 +1,55 @@ -{ lib, stdenv, fetchurl, aspell, boost, expat, intltool, libxml2, libxslt, pcre, wxGTK, xercesc }: +{ lib +, stdenv +, fetchurl +, aspell +, boost +, expat +, intltool +, pkg-config +, libxml2 +, libxslt +, pcre2 +, wxGTK32 +, xercesc +, Cocoa +}: stdenv.mkDerivation rec { pname = "xmlcopyeditor"; - version = "1.2.1.3"; + version = "1.3.1.0"; src = fetchurl { - name = "${pname}-${version}.tar.gz"; url = "mirror://sourceforge/xml-copy-editor/${pname}-${version}.tar.gz"; - sha256 = "0bwxn89600jbrkvlwyawgc0c0qqxpl453mbgcb9qbbxl8984ns4v"; + sha256 = "sha256-6HHKl7hqyvF3gJ9vmjLjTT49prJ8KhEEV0qPsJfQfJE="; }; patches = [ ./xmlcopyeditor.patch ]; - CPLUS_INCLUDE_PATH = "${libxml2.dev}/include/libxml2"; - nativeBuildInputs = [ intltool ]; - buildInputs = [ aspell boost expat libxml2 libxslt pcre wxGTK xercesc ]; + nativeBuildInputs = [ + intltool + pkg-config + ]; + + buildInputs = [ + aspell + boost + expat + libxml2 + libxslt + pcre2 + wxGTK32 + xercesc + ] ++ lib.optionals stdenv.isDarwin [ + Cocoa + ]; enableParallelBuilding = true; meta = with lib; { description = "A fast, free, validating XML editor"; - homepage = "http://xml-copy-editor.sourceforge.net/"; + homepage = "https://xml-copy-editor.sourceforge.io/"; license = licenses.gpl2Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ candeira ]; + platforms = platforms.unix; + maintainers = with maintainers; [ candeira wegank ]; }; } diff --git a/pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch b/pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch index 253b9ce49ba8c..1f35663bdad30 100644 --- a/pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch +++ b/pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch @@ -1,17 +1,8 @@ -From 626c385ba141c6abcff01bef4451fcad062d232c Mon Sep 17 00:00:00 2001 -From: Javier Candeira <javier@candeira.com> -Date: Sat, 7 Apr 2018 20:21:45 +1000 -Subject: [PATCH] nixpckgs patches - ---- - src/Makefile.in | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - diff --git a/src/Makefile.in b/src/Makefile.in -index e75918f..e04703b 100644 +index e2b01fc..7f3a21e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in -@@ -283,8 +283,8 @@ top_srcdir = @top_srcdir@ +@@ -427,8 +427,8 @@ top_srcdir = @top_srcdir@ # these are the headers for your project noinst_HEADERS = $(srcdir)/*.h xmlcopyeditordir = ${prefix}/share/xmlcopyeditor @@ -21,16 +12,4 @@ index e75918f..e04703b 100644 +applicationsdir = ${prefix}/share/applications # the application source, library search path, and link libraries - xmlcopyeditor_SOURCES = aboutdialog.cpp associatedialog.cpp binaryfile.cpp \ -@@ -357,7 +357,7 @@ EXTRA_DIST = \ - $(srcdir)/xmlcopyeditor.rc \ - $(srcdir)/xmlschemaparser.cpp - --AM_CPPFLAGS = -I/usr/include/libxml2 $(ENCHANT_CFLAGS) $(GTK_CFLAGS) -+AM_CPPFLAGS = -I$(CPLUS_INCLUDE_PATH) $(ENCHANT_CFLAGS) $(GTK_CFLAGS) - all: all-am - - .SUFFIXES: --- -2.16.2 - + xmlcopyeditor_SOURCES = aboutdialog.cpp \ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bff29234e4104..51ea23e1e0b76 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33157,7 +33157,9 @@ with pkgs; xmenu = callPackage ../applications/misc/xmenu { }; - xmlcopyeditor = callPackage ../applications/editors/xmlcopyeditor { }; + xmlcopyeditor = callPackage ../applications/editors/xmlcopyeditor { + inherit (darwin.apple_sdk.frameworks) Cocoa; + }; xmp = callPackage ../applications/audio/xmp { }; |