mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, aspell
|
|
, boost
|
|
, expat
|
|
, intltool
|
|
, pkg-config
|
|
, libxml2
|
|
, libxslt
|
|
, pcre2
|
|
, wxGTK32
|
|
, xercesc
|
|
, Cocoa
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xmlcopyeditor";
|
|
version = "1.3.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/xml-copy-editor/${pname}-${version}.tar.gz";
|
|
sha256 = "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 "xmlErrorPtr err" "const xmlError *err"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
intltool
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
aspell
|
|
boost
|
|
expat
|
|
libxml2
|
|
libxslt
|
|
pcre2
|
|
wxGTK32
|
|
xercesc
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Cocoa
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Fast, free, validating XML editor";
|
|
homepage = "https://xml-copy-editor.sourceforge.io/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ candeira wegank ];
|
|
mainProgram = "xmlcopyeditor";
|
|
};
|
|
}
|