about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/emulators/melonDS/default.nix
blob: a53d2bfc339ea2fc60d02457dca2dc6c728e55b9 (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
{ lib
, fetchFromGitHub
, mkDerivation
, cmake
, pkg-config
, SDL2
, qtbase
, libpcap
, libslirp
, wrapGAppsHook
}:

mkDerivation rec {
  pname = "melonDS";
  version = "0.9.1";

  src = fetchFromGitHub {
    owner = "Arisotura";
    repo = pname;
    rev = version;
    sha256 = "sha256-bvi0Y+zwfEcsZMNxoH85hxwIGn0UIYlg/ZaE6yJ7vlo=";
  };

  nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
  buildInputs = [
    SDL2
    qtbase
    libpcap
    libslirp
  ];

  cmakeFlags = [ "-UUNIX_PORTABLE" ];

  meta = with lib; {
    homepage = "http://melonds.kuribo64.net/";
    description = "Work in progress Nintendo DS emulator";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ artemist benley shamilton ];
    platforms = platforms.linux;
  };
}