anchor.diff: -{ stdenv, fetchurl, gtk_doc, pkgconfig, gobjectIntrospection, intltool
  +{ stdenv, fetchurl, fetchpatch, gtk_doc, pkgconfig, gobjectIntrospection, intltool
   , libgudev, polkit, appstream-glib, gusb, sqlite, libarchive, glib_networking
   , libsoup, docbook2x, gpgme, libxslt, elfutils, libsmbios, efivar, glibcLocales
   , fwupdate, libyaml, valgrind, meson, libuuid, pygobject3, colord
   , pillow, ninja, gcab, gnutls, python3Packages, wrapGAppsHook, json_glib
  -, shared_mime_info
  +, shared_mime_info, umockdev
   }:
   let
     version = "1.0.4";
  
positive.code:     sha256 = "1n4d6fw3ffg051072hbxn106s52x2wlh5dh2kxwdfjsb5kh03ra3";
    };
  
    nativeBuildInputs = [
      meson ninja gtk_doc pkgconfig gobjectIntrospection intltool glibcLocales
      valgrind gcab docbook2x libxslt pygobject3 python3Packages.pycairo wrapGAppsHook
    ];
    buildInputs = [
      polkit appstream-glib gusb sqlite libarchive libsoup elfutils libsmbios fwupdate libyaml
      libgudev colord gpgme libuuid pillow gnutls glib_networking efivar json_glib
    ];
  
    LC_ALL = "en_US.UTF-8"; # For po/make-images
  
    patches = [
      ./fix-missing-deps.patch
    ];
    postPatch = ''
      patchShebangs .
    '';
  
    preFixup = ''
      gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared_mime_info}/share")
  
negative.code:     "--localstatedir=/var"
    ];
  
    postInstall = ''
      moveToOutput share/installed-tests "$installedTests"
    '';
  
    enableParallelBuilding = true;
    meta = with stdenv.lib; {
      homepage = https://fwupd.org/;
      maintainers = with maintainers; [];
      license = [ licenses.gpl2 ];
      platforms = platforms.linux;
    };
  }
  