anchor.diff:        - Sega Saturn (experimental, x86_64 only)
         - Sony PlayStation
       '';
  -    homepage = "https://mednafen.github.io/";
  -    license = licenses.gpl2;
  +    license = licenses.gpl2Plus;
       maintainers = with maintainers; [ AndersonTorres ];
       platforms = platforms.linux;
     };
  
positive.code:   '';
  
    meta = with lib; {
      description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
      longDescription = ''
        Mednafen is a portable, utilizing OpenGL and SDL,
  
negative.code: { lib
  , stdenv
  , fetchurl
  , SDL2
  , SDL2_net
  , alsa-lib
  , flac
  , freeglut
  , libGL
  , libGLU
  , libX11
  , libcdio
  , libjack2
  , libsamplerate
  , libsndfile
  , pkg-config
  , zlib
  }:
  
  stdenv.mkDerivation rec {
    pname = "mednafen";
    version = "1.29.0";
  
    src = fetchurl {
      url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
      hash = "sha256-2j+88Ch3+b4PAov6XRy1npU6QEm5D+fjk4ijOG2fNi4=";
    };
  
    nativeBuildInputs = [ pkg-config ];
  
    buildInputs = [
      SDL2
      SDL2_net
      alsa-lib
      flac
      freeglut
      libGL
      libGLU
      libX11
      libcdio
      libjack2
      libsamplerate
      libsndfile
      zlib
    ];
  
  