anchor.diff:        "pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service"
         "pki/fwupd-metadata/LVFS-CA.pem"
       ];
  +
  +    tests = {
  +      installedTests = nixosTests.fwupd;
  +    };
     };
   
     meta = with stdenv.lib; {
       homepage = https://fwupd.org/;
  -    maintainers = with maintainers; [];
  +    maintainers = with maintainers; [ jtojnar ];
       license = [ licenses.gpl2 ];
       platforms = platforms.linux;
     };
  
positive.code:   ];
  
    postPatch = ''
      patchShebangs .
  
      # we cannot use placeholder in substituteAll
      # https://github.com/NixOS/nix/issues/1846
  
negative.code:   # only redfish for x86_64
    haveRedfish = stdenv.isx86_64;
  
    # # Currently broken on Aarch64
    # haveFlashrom = isx86;
    # Experimental in 1.2.10
    haveFlashrom = false;
  
  in
  
  stdenv.mkDerivation rec {
    pname = "fwupd";
    version = "1.2.10";
  
    src = fetchurl {
      url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
      sha256 = "0inngs7i48akm9c7fmdsf9zjif595rkaba69rl76jfwfv8r21vjb";
    };
  
    outputs = [ "out" "lib" "dev" "devdoc" "man" "installedTests" ];
  