anchor.diff:        )
       '';
   
  -    mesonFlags = [
  -      "-Dgtkdoc=true"
  -      "-Dplugin_dummy=true"
  -      "-Dudevdir=lib/udev"
  -      "-Dsystemd_root_prefix=${placeholder "out"}"
  -      "-Dinstalled_test_prefix=${placeholder "installedTests"}"
  -      "-Defi-libdir=${gnu-efi}/lib"
  -      "-Defi-ldsdir=${gnu-efi}/lib"
  -      "-Defi-includedir=${gnu-efi}/include/efi"
  -      "--localstatedir=/var"
  -      "--sysconfdir=/etc"
  -      "-Dsysconfdir_install=${placeholder "out"}/etc"
  -
  -      # We do not want to place the daemon into lib (cyclic reference)
  -      "--libexecdir=${placeholder "out"}/libexec"
  -      # Our builder only adds $lib/lib to rpath but some things link
  -      # against libfwupdplugin which is in $out/lib.
  -      "-Dc_link_args=-Wl,-rpath,${placeholder "out"}/lib"
  -    ] ++ stdenv.lib.optionals (!haveDell) [
  -      "-Dplugin_dell=false"
  -      "-Dplugin_synaptics=false"
  -    ] ++ stdenv.lib.optionals (!haveRedfish) [
  -      "-Dplugin_redfish=false"
  -    ] ++ stdenv.lib.optionals haveFlashrom [
  -      "-Dplugin_flashrom=true"
  -    ];
  -
  -    FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file
  -
  -    # error: “PolicyKit files are missing”
  -    # https://github.com/NixOS/nixpkgs/pull/67625#issuecomment-525788428
  -    PKG_CONFIG_POLKIT_GOBJECT_1_ACTIONDIR = "/run/current-system/sw/share/polkit-1/actions";
  -
  -    # TODO: wrapGAppsHook wraps efi capsule even though it is not elf
  -    dontWrapGApps = true;
  -
  -    preCheck = ''
  -      addToSearchPath XDG_DATA_DIRS "${shared-mime-info}/share"
  -    '';
  -
  -    # so we need to wrap the executables manually
  +    # Since we had to disable wrapGAppsHook, we need to wrap the executables manually.
       postFixup = ''
         find -L "$out/bin" "$out/libexec" -type f -executable -print0 \
           | while IFS= read -r -d ''' file; do
  
positive.code:         po/test-deps
      '';
  
      # /etc/os-release not available in sandbox
      # doCheck = true;
  
      preFixup = let
        binPath = [
  
negative.code:     pname = "fwupd";
      version = "1.4.5";
  
      # libfwupd goes to lib
      # daemon, plug-ins and libfwupdplugin go to out
      # CLI programs go to out
      outputs = [ "out" "lib" "dev" "devdoc" "man" "installedTests" ];
  
      src = fetchurl {
        url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
        sha256 = "0hpqxwqbbqn440c2swpnc06z8dskisrli4ynsxrzzqyp0dan46xw";
      };
  
      patches = [
        # Do not try to create useless paths in /var.
        ./fix-paths.patch
  
        # Allow installing
        ./add-option-for-installation-sysconfdir.patch
  
        # Install plug-ins and libfwupdplugin to out,
        # they are not really part of the library.
        ./install-fwupdplugin-to-out.patch
  
        # Installed tests are installed to different output
        # we also cannot have fwupd-tests.conf in $out/etc since it would form a cycle.
        (substituteAll {
          src = ./installed-tests-path.patch;
          # Needs a different set of modules than po/make-images.
          inherit installedTestsPython;
        })
  
        (fetchpatch {
          url = "https://github.com/fwupd/fwupd/commit/3e82beeddac31292c50229e59e2404865edee5ad.patch";
          sha256 = "17p9r8qddqkrnhy9bvp9207afh5fcl1whn79nqcp57b4q4c17zgk";
        })
      ];
  
      nativeBuildInputs = [
        meson
        ninja
        gtk-doc
        pkg-config
        gobject-introspection
        intltool
        shared-mime-info
        valgrind
        gcab
        docbook_xml_dtd_43
        docbook-xsl-nons
        help2man
        libxslt
        python
  