anchor.diff:    configurePhase = ''
       runHook preConfigure
       for opt in ${lib.escapeShellArgs enabledOptions}; do echo "#define $opt" >> src/config/general.h; done
  -    sed -i '/cp \''${ISOLINUX_BIN}/s/$/ --no-preserve=mode/' src/util/geniso
       substituteInPlace src/Makefile.housekeeping --replace '/bin/echo' echo
  +  '' + lib.optionalString stdenv.hostPlatform.isx86 ''
  +    substituteInPlace src/util/genfsimg --replace /usr/lib/syslinux ${syslinux}/share/syslinux
  +  '' + ''
       runHook postConfigure
     '';
   
  
positive.code: 
    makeFlags =
      [ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here.
      ] ++ lib.optionals stdenv.hostPlatform.isx86 [
        "ISOLINUX_BIN_LIST=${syslinux}/share/syslinux/isolinux.bin"
        "LDLINUX_C32=${syslinux}/share/syslinux/ldlinux.c32"
      ] ++ lib.optional (embedScript != null) "EMBED=${embedScript}";
  
  
  
negative.code: { stdenv, lib, fetchFromGitHub, unstableGitUpdater
  , gnu-efi, mtools, openssl, perl, xorriso, xz
  , syslinux ? null
  , embedScript ? null
  , additionalTargets ? {}
  