Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libxml2, 7 glibmm, 8 perl, 9 gnome, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "libxml++"; 14 version = "2.40.1"; 15 16 src = fetchurl { 17 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 18 sha256 = "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"; 19 }; 20 21 configureFlags = [ 22 # remove if library is updated 23 "CXXFLAGS=-std=c++11" 24 ]; 25 26 outputs = [ 27 "out" 28 "devdoc" 29 ]; 30 31 nativeBuildInputs = [ 32 pkg-config 33 perl 34 ]; 35 36 propagatedBuildInputs = [ 37 libxml2 38 glibmm 39 ]; 40 41 passthru = { 42 updateScript = gnome.updateScript { 43 attrPath = "libxmlxx"; 44 packageName = pname; 45 versionPolicy = "odd-unstable"; 46 freeze = true; 47 }; 48 }; 49 50 meta = with lib; { 51 homepage = "https://libxmlplusplus.sourceforge.net/"; 52 description = "C++ wrapper for the libxml2 XML parser library"; 53 license = licenses.lgpl2Plus; 54 platforms = platforms.unix; 55 maintainers = [ ]; 56 }; 57}