2021-10-14 21:22:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libxml2, glibmm, perl, gnome }:
|
2016-09-27 05:34:40 +00:00
|
|
|
|
2016-09-26 03:15:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-06-18 01:10:05 +00:00
|
|
|
pname = "libxml++";
|
|
|
|
version = "3.0.1";
|
2016-09-27 05:34:40 +00:00
|
|
|
|
2016-09-26 03:15:32 +00:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/libxml++/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2016-11-20 00:14:09 +00:00
|
|
|
sha256 = "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r";
|
2016-09-26 03:15:32 +00:00
|
|
|
};
|
|
|
|
|
2019-06-18 01:16:05 +00:00
|
|
|
outputs = [ "out" "dev" "doc" "devdoc" ];
|
2017-11-24 01:14:46 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config perl ];
|
2016-09-27 05:34:40 +00:00
|
|
|
|
|
|
|
buildInputs = [ glibmm ];
|
2016-09-26 03:15:32 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ libxml2 ];
|
|
|
|
|
2019-06-18 01:16:05 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $dev/lib/pkgconfig/libxml++-3.0.pc \
|
|
|
|
--replace 'docdir=''${datarootdir}' "docdir=$doc/share"
|
|
|
|
'';
|
|
|
|
|
2021-10-14 21:22:27 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
attrPath = "libxmlxx3";
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "odd-unstable";
|
|
|
|
freeze = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://libxmlplusplus.sourceforge.net/";
|
2016-09-26 03:15:32 +00:00
|
|
|
description = "C++ wrapper for the libxml2 XML parser library, version 3";
|
2016-09-27 05:34:40 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2016-09-27 05:41:01 +00:00
|
|
|
maintainers = with maintainers; [ loskutov ];
|
2016-09-26 03:15:32 +00:00
|
|
|
};
|
|
|
|
}
|