anchor.diff:  { lib
  -, stdenv
  +, gcc9Stdenv
   , fetchurl
  -, meson
  -, ninja
   , pkg-config
   , libftdi1
   , libusb1
  
positive.code:       --replace "plugdev" "flashrom"
    '';
  
    # Meson build doesn't build and install manpage. Only Makefile can.
    # Build manpage from source directory. Here we're inside the ./build subdirectory
    postInstall = ''
      make flashrom.8 -C ..
      installManPage ../flashrom.8
      install -Dm644 ../util/z60_flashrom.rules $out/etc/udev/rules.d/flashrom.rules
    '';
  
    mesonFlags = lib.optionals stdenv.isAarch64 [ "-Dpciutils=false" ];
    nativeBuildInputs = [ meson pkg-config ninja installShellFiles ];
    buildInputs = [ libftdi1 libusb1 pciutils ];
  
    meta = with lib; {
      homepage = "http://www.flashrom.org";
  
negative.code: , installShellFiles
  }:
  
  gcc9Stdenv.mkDerivation rec {
    pname = "flashrom";
    version = "1.2";
  
  