summary refs log tree commit diff
path: root/pkgs/applications/emulators/melonDS/default.nix
blob: 06ef3d99088eeddcef4d4c98dcfca516388338eb (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
43
44
45
46
47
48
49
50
51
52
53
{ lib
, fetchFromGitHub
, stdenv
, cmake
, extra-cmake-modules
, libarchive
, libpcap
, libslirp
, pkg-config
, qtbase
, qtmultimedia
, SDL2
, wayland
, wrapQtAppsHook
}:

stdenv.mkDerivation rec {
  pname = "melonDS";
  version = "0.9.5";

  src = fetchFromGitHub {
    owner = "Arisotura";
    repo = pname;
    rev = version;
    sha256 = "sha256-n4Vkxb/7fr214PgB6VFNgH1tMDgTBS/UHUQ6V4uGkDA=";
  };

  nativeBuildInputs = [
    cmake
    extra-cmake-modules
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [
    libarchive
    libslirp
    qtbase
    qtmultimedia
    SDL2
    wayland
  ];

  qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" ];

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