anchor.diff:  , fetchurl
   , fetchpatch
   , pkgconfig
  +, meson
  +, ninja
   , gettext
   , gobject-introspection
   , gtk-doc
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "libosinfo";
    version = "1.6.0";
  
    src = fetchurl {
      url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.gz";
      sha256 = "1iwh35mahch1ls3sgq7wz8kamxrxisrff5ciqzyh2qxlrqf5qf1w";
    };
  
    outputs = [ "out" "dev" "devdoc" ];
  
    nativeBuildInputs = [
      pkgconfig
      vala
      gettext
      gobject-introspection
      gtk-doc
      docbook_xsl
    ];
    buildInputs = [
      glib
  
negative.code:     })
    ];
  
    mesonFlags = [
      "-Dwith-usb-ids-path=${hwdata}/share/hwdata/usb.ids"
      "-Dwith-pci-ids-path=${hwdata}/share/hwdata/pci.ids"
      "-Denable-gtk-doc=true"
    ];
  
    # FIXME: fails two new tests added in 1.7.1:
    # libosinfo:symbols / check-symfile
    # 3/24 libosinfo:symbols / check-symsorting
    doCheck = false;
  
    meta = with stdenv.lib; {
      description = "GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support";
  