summary refs log tree commit diff
path: root/pkgs/misc/emulators/mednafen/default.nix
blob: 337d19804fc4a42ca0760e450e548cedfc2d1090 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv, fetchurl, pkgconfig, freeglut, libGLU, libGL, libcdio, libjack2
, libsamplerate, libsndfile, libX11, SDL, SDL_net, zlib }:

stdenv.mkDerivation rec {
  pname = "mednafen";
  version = "0.9.48";

  src = fetchurl {
    url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
    sha256 = "00i12mywhp43274aq466fwavglk5b7d8z8bfdna12ra9iy1hrk6k";
  };

  nativeBuildInputs = [ pkgconfig ];

  buildInputs = [
    freeglut
    libGLU libGL
    libcdio
    libjack2
    libsamplerate
    libsndfile
    libX11
    SDL
    SDL_net
    zlib
  ];

  hardeningDisable = [ "pic" ];

  postInstall = ''
    mkdir -p $out/share/doc
    mv Documentation $out/share/doc/mednafen
  '';

  meta = with stdenv.lib; {
    description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
    homepage = https://mednafen.github.io/;
    license = licenses.gpl2;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.linux;
  };
}