anchor.diff:      makefile = "Makefile.libretro";
     };
   
  -  mame2000 = mkLibRetroCore rec {
  +  mame2000 = mkLibRetroCore {
       core = "mame2000";
  -    src = getCoreSrc core;
       description = "Port of MAME ~2000 to libretro";
       license = gpl2Plus;
       makefile = "Makefile";
       makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "IS_X86=0";
     };
   
  -  mame2003 = mkLibRetroCore rec {
  +  mame2003 = mkLibRetroCore {
       core = "mame2003";
  -    src = getCoreSrc core;
       description = "Port of MAME ~2003 to libretro";
       license = gpl2Plus;
       makefile = "Makefile";
     };
   
  -  mame2003-plus = mkLibRetroCore rec {
  +  mame2003-plus = mkLibRetroCore {
       core = "mame2003-plus";
  -    src = getCoreSrc core;
       description = "Port of MAME ~2003+ to libretro";
       license = gpl2Plus;
       makefile = "Makefile";
     };
   
  -  mame2010 = mkLibRetroCore rec {
  +  mame2010 = mkLibRetroCore {
       core = "mame2010";
  -    src = getCoreSrc core;
       description = "Port of MAME ~2010 to libretro";
       license = gpl2Plus;
       makefile = "Makefile";
       makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "PTR64=1" "ARM_ENABLED=1" "X86_SH2DRC=0" "FORCE_DRC_C_BACKEND=1" ];
     };
   
  -  mame2015 = mkLibRetroCore rec {
  +  mame2015 = mkLibRetroCore {
       core = "mame2015";
  -    src = getCoreSrc core;
       description = "Port of MAME ~2015 to libretro";
       license = gpl2Plus;
       extraNativeBuildInputs = [ python27 ];
  
positive.code:     postBuild = "cd src/citra_libretro";
    };
  
    desmume = mkLibRetroCore rec {
      core = "desmume";
      src = getCoreSrc core;
      description = "libretro wrapper for desmume NDS emulator";
      license = gpl2;
      extraBuildInputs = [ libpcap libGLU libGL xorg.libX11 ];
  
negative.code:     makeFlags = [ "PROFILE=accuracy" ];
    };
  
    citra = mkLibRetroCore {
      core = "citra";
      # `nix-prefetch-github` doesn't support `deepClone`, necessary for citra
      # https://github.com/seppeljordan/nix-prefetch-github/issues/41
  