nixpkgs/pkgs/development/libraries/libxmlxx/v3.nix

33 lines
917 B
Nix
Raw Normal View History

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