anchor.diff:      "--localstatedir=/var"
       "--sysconfdir=/etc"
       "-Dsysconfdir_install=${placeholder "out"}/etc"
  +  ] ++ stdenv.lib.optionals (!haveDell) [
  +    "-Dplugin_dell=false"
  +    "-Dplugin_synaptics=false"
  +  ] ++ stdenv.lib.optionals (!haveRedfish) [
  +    "-Dplugin_redfish=false"
  +  ] ++ stdenv.lib.optionals (!haveFlashrom) [
  +    "-Dplugin_flashrom=false"
     ];
   
     # TODO: We need to be able to override the directory flags from meson setup hook
  
positive.code:     meson ninja gtk-doc pkgconfig gobject-introspection intltool shared-mime-info
      valgrind gcab docbook_xml_dtd_43 docbook_xsl help2man libxslt python wrapGAppsHook vala
    ];
    buildInputs = [
      polkit libxmlb gusb sqlite libarchive libsoup elfutils libsmbios gnu-efi libyaml
      libgudev colord gpgme libuuid gnutls glib-networking efivar json-glib umockdev
      bash-completion cairo freetype fontconfig pango
    ];
  
    patches = [
      ./fix-paths.patch
  
negative.code:   # /etc/os-release not available in sandbox
    # doCheck = true;
  
    preFixup = let
      binPath = [ efibootmgr bubblewrap tpm2-tools ] ++ stdenv.lib.optional haveFlashrom flashrom;
    in
    ''
      gappsWrapperArgs+=(
        --prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
        # See programs reached with fu_common_find_program_in_path in source
        --prefix PATH : "${stdenv.lib.makeBinPath binPath}"
      )
    '';
  
  