anchor.diff:      makefile = "Makefile";
     };
   
  -  mame2016 = mkLibRetroCore rec {
  +  mame2016 = mkLibRetroCore {
       core = "mame2016";
  -    src = getCoreSrc core;
       patches = [
         (fetchpatch {
           name = "fix_mame_build_on_make-4.3.patch";
  
positive.code:     preConfigure = "cd backends/platform/libretro/build";
    };
  
    smsplus-gx = mkLibRetroCore rec {
      core = "smsplus";
      src = getCoreSrc "smsplus-gx";
      description = "SMS Plus GX libretro port";
      license = gpl2Plus;
    };
  
    snes9x = mkLibRetroCore rec {
      core = "snes9x";
      src = getCoreSrc core;
      description = "Port of SNES9x git to libretro";
      license = "Non-commercial";
      makefile = "Makefile";
      preBuild = "cd libretro";
    };
  
    snes9x2002 = mkLibRetroCore rec {
      core = "snes9x2002";
      src = getCoreSrc core;
      description = "Optimized port/rewrite of SNES9x 1.39 to Libretro";
      license = "Non-commercial";
      makefile = "Makefile";
    };
  
    snes9x2005 = mkLibRetroCore rec {
      core = "snes9x2005";
      src = getCoreSrc core;
      description = "Optimized port/rewrite of SNES9x 1.43 to Libretro";
      license = "Non-commercial";
      makefile = "Makefile";
  
negative.code:     meta.platforms = [ "aarch64-linux" "x86_64-linux" ];
    };
  
    fmsx = mkLibRetroCore {
      core = "fmsx";
      description = "FMSX libretro port";
      license = "Non-commercial";
      makefile = "Makefile";
    };
  
    freeintv = mkLibRetroCore {
      core = "freeintv";
      description = "FreeIntv libretro port";
      license = gpl3;
      makefile = "Makefile";
    };
  
    gambatte = mkLibRetroCore {
      core = "gambatte";
      description = "Gambatte libretro port";
      license = gpl2;
    };
  
    genesis-plus-gx = mkLibRetroCore {
      core = "genesis-plus-gx";
      description = "Enhanced Genesis Plus libretro port";
      license = "Non-commercial";
    };
  
    gpsp = mkLibRetroCore {
      core = "gpsp";
      description = "Port of gpSP to libretro";
      license = gpl2;
      makefile = "Makefile";
    };
  
    gw = mkLibRetroCore {
      core = "gw";
      description = "Port of Game and Watch to libretro";
      license = lib.licenses.zlib;
      makefile = "Makefile";
    };
  
    handy = mkLibRetroCore {
      core = "handy";
      description = "Port of Handy to libretro";
      license = "Handy-License";
      makefile = "Makefile";
    };
  
    hatari = mkLibRetroCore {
      core = "hatari";
      description = "Port of Hatari to libretro";
      license = gpl2;
      extraBuildInputs = [ SDL zlib ];
  