diff --git a/pkgs/development/libraries/libxmlxx/v3.nix b/pkgs/development/libraries/libxmlxx/v3.nix index e665cfdea6f..0db3870b05a 100644 --- a/pkgs/development/libraries/libxmlxx/v3.nix +++ b/pkgs/development/libraries/libxmlxx/v3.nix @@ -1,20 +1,26 @@ -{ stdenv, fetchurl -, pkgconfig, libxml2, glibmm, perl }: +{ stdenv, fetchurl, pkgconfig, libxml2, glibmm, perl }: + stdenv.mkDerivation rec { - name = "libxml++-3.0.0"; + name = "libxml++-${maj_ver}.${min_ver}"; + maj_ver = "3.0"; + min_ver = "0"; + src = fetchurl { - url = "mirror://gnome/sources/libxml++/3.0/${name}.tar.xz"; + url = "mirror://gnome/sources/libxml++/${maj_ver}/${name}.tar.xz"; sha256 = "0lkrajbdys5f6w6qwfijih3hnbk4c6809qx2mmxkb7bj2w269wrg"; }; - buildInputs = [ pkgconfig glibmm perl ]; + nativeBuildInputs = [ pkgconfig perl ]; + + buildInputs = [ glibmm ]; propagatedBuildInputs = [ libxml2 ]; - meta = { + meta = with stdenv.lib; { homepage = http://libxmlplusplus.sourceforge.net/; description = "C++ wrapper for the libxml2 XML parser library, version 3"; - license = "LGPLv2+"; - maintainers = with stdenv.maintainers; [ ]; + license = licenses.lgpl2Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ ]; }; }