diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libxmlxx')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libxmlxx/default.nix | 31 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libxmlxx/v3.nix | 32 |
2 files changed, 63 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libxmlxx/default.nix b/nixpkgs/pkgs/development/libraries/libxmlxx/default.nix new file mode 100644 index 000000000000..19282ddc822d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libxmlxx/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchurl, pkg-config, libxml2, glibmm, perl, gnome3 }: + +stdenv.mkDerivation rec { + pname = "libxml++"; + version = "2.40.1"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"; + }; + + outputs = [ "out" "devdoc" ]; + + nativeBuildInputs = [ pkg-config perl ]; + + propagatedBuildInputs = [ libxml2 glibmm ]; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + }; + }; + + meta = with lib; { + homepage = "http://libxmlplusplus.sourceforge.net/"; + description = "C++ wrapper for the libxml2 XML parser library"; + license = licenses.lgpl2Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ phreedom ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/libxmlxx/v3.nix b/nixpkgs/pkgs/development/libraries/libxmlxx/v3.nix new file mode 100644 index 000000000000..41c842220c7d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libxmlxx/v3.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchurl, pkg-config, libxml2, glibmm, perl }: + +stdenv.mkDerivation rec { + pname = "libxml++"; + version = "3.0.1"; + + src = fetchurl { + url = "mirror://gnome/sources/libxml++/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"; + }; + + outputs = [ "out" "dev" "doc" "devdoc" ]; + + nativeBuildInputs = [ pkg-config perl ]; + + buildInputs = [ glibmm ]; + + propagatedBuildInputs = [ libxml2 ]; + + postFixup = '' + substituteInPlace $dev/lib/pkgconfig/libxml++-3.0.pc \ + --replace 'docdir=''${datarootdir}' "docdir=$doc/share" + ''; + + meta = with lib; { + homepage = "http://libxmlplusplus.sourceforge.net/"; + description = "C++ wrapper for the libxml2 XML parser library, version 3"; + license = licenses.lgpl2Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ loskutov ]; + }; +} |