Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, pkg-config, libxml2, glibmm, perl, gnome }: 2 3stdenv.mkDerivation rec { 4 pname = "libxml++"; 5 version = "2.40.1"; 6 7 src = fetchurl { 8 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 9 sha256 = "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"; 10 }; 11 12 outputs = [ "out" "devdoc" ]; 13 14 nativeBuildInputs = [ pkg-config perl ]; 15 16 propagatedBuildInputs = [ libxml2 glibmm ]; 17 18 passthru = { 19 updateScript = gnome.updateScript { 20 attrPath = "libxmlxx"; 21 packageName = pname; 22 versionPolicy = "odd-unstable"; 23 freeze = true; 24 }; 25 }; 26 27 meta = with lib; { 28 homepage = "https://libxmlplusplus.sourceforge.net/"; 29 description = "C++ wrapper for the libxml2 XML parser library"; 30 license = licenses.lgpl2Plus; 31 platforms = platforms.unix; 32 maintainers = with maintainers; [ ]; 33 }; 34}