mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
xmlcopyeditor: refactor
This commit is contained in:
parent
106603e4e9
commit
0994c14cca
@ -14,13 +14,13 @@
|
|||||||
xercesc,
|
xercesc,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "xmlcopyeditor";
|
pname = "xmlcopyeditor";
|
||||||
version = "1.3.1.0";
|
version = "1.3.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/xml-copy-editor/${pname}-${version}.tar.gz";
|
url = "mirror://sourceforge/xml-copy-editor/xmlcopyeditor-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-6HHKl7hqyvF3gJ9vmjLjTT49prJ8KhEEV0qPsJfQfJE=";
|
hash = "sha256-6HHKl7hqyvF3gJ9vmjLjTT49prJ8KhEEV0qPsJfQfJE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./xmlcopyeditor.patch ];
|
patches = [ ./xmlcopyeditor.patch ];
|
||||||
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
# with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
|
# with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/wraplibxml.cpp \
|
substituteInPlace src/wraplibxml.cpp \
|
||||||
--replace "xmlErrorPtr err" "const xmlError *err"
|
--replace-fail "xmlErrorPtr err" "const xmlError *err"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -50,15 +50,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Fast, free, validating XML editor";
|
description = "Fast, free, validating XML editor";
|
||||||
homepage = "https://xml-copy-editor.sourceforge.io/";
|
homepage = "https://xml-copy-editor.sourceforge.io/";
|
||||||
license = licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
maintainers = with maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
candeira
|
candeira
|
||||||
wegank
|
wegank
|
||||||
];
|
];
|
||||||
mainProgram = "xmlcopyeditor";
|
mainProgram = "xmlcopyeditor";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user