push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
{
lib,
stdenv,
fetchurl,
aspell,
boost,
expat,
intltool,
pkg-config,
libxml2,
libxslt,
pcre2,
wxGTK32,
xercesc,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xmlcopyeditor";
version = "1.3.1.0";
src = fetchurl {
url = "mirror://sourceforge/xml-copy-editor/xmlcopyeditor-${finalAttrs.version}.tar.gz";
hash = "sha256-6HHKl7hqyvF3gJ9vmjLjTT49prJ8KhEEV0qPsJfQfJE=";
};
patches = [ ./xmlcopyeditor.patch ];
# error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *')
# with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
postPatch = ''
substituteInPlace src/wraplibxml.cpp \
--replace-fail "xmlErrorPtr err" "const xmlError *err"
''
# error: invalid type argument of unary '*' (have 'long int')
+ ''
substituteInPlace src/wraplibxml.cpp \
--replace-fail "initGenericErrorDefaultFunc ( NULL )" "xmlSetGenericErrorFunc( nullptr , nullptr )"
'';
nativeBuildInputs = [
intltool
pkg-config
];
buildInputs = [
aspell
boost
expat
libxml2
libxslt
pcre2
wxGTK32
xercesc
];
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";
enableParallelBuilding = true;
meta = {
description = "Fast, free, validating XML editor";
homepage = "https://xml-copy-editor.sourceforge.io/";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
candeira
wegank
];
mainProgram = "xmlcopyeditor";
};
})

View File

@@ -0,0 +1,15 @@
diff --git a/src/Makefile.in b/src/Makefile.in
index e2b01fc..7f3a21e 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -427,8 +427,8 @@ top_srcdir = @top_srcdir@
# these are the headers for your project
noinst_HEADERS = $(srcdir)/*.h
xmlcopyeditordir = ${prefix}/share/xmlcopyeditor
-pixmapdir = /usr/share/pixmaps
-applicationsdir = /usr/share/applications
+pixmapdir = ${prefix}/share/pixmaps
+applicationsdir = ${prefix}/share/applications
# the application source, library search path, and link libraries
xmlcopyeditor_SOURCES = aboutdialog.cpp \