2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-12-25 13:55:36 +00:00
|
|
|
, fetchFromGitHub
|
2023-01-11 07:51:40 +00:00
|
|
|
, stdenv
|
2020-12-25 13:55:36 +00:00
|
|
|
, cmake
|
2023-01-11 07:51:40 +00:00
|
|
|
, extra-cmake-modules
|
2021-09-18 10:52:07 +00:00
|
|
|
, libarchive
|
2020-12-25 13:55:36 +00:00
|
|
|
, libpcap
|
|
|
|
, libslirp
|
2021-09-18 10:52:07 +00:00
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
2023-01-11 07:51:40 +00:00
|
|
|
, qtmultimedia
|
2021-09-18 10:52:07 +00:00
|
|
|
, SDL2
|
2023-01-11 07:51:40 +00:00
|
|
|
, wayland
|
|
|
|
, wrapQtAppsHook
|
2020-12-25 13:55:36 +00:00
|
|
|
}:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "melonDS";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.9.5";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arisotura";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-n4Vkxb/7fr214PgB6VFNgH1tMDgTBS/UHUQ6V4uGkDA=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
buildInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
libarchive
|
2020-12-25 13:55:36 +00:00
|
|
|
libslirp
|
2021-09-18 10:52:07 +00:00
|
|
|
qtbase
|
2023-01-11 07:51:40 +00:00
|
|
|
qtmultimedia
|
2021-09-18 10:52:07 +00:00
|
|
|
SDL2
|
2023-01-11 07:51:40 +00:00
|
|
|
wayland
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "http://melonds.kuribo64.net/";
|
|
|
|
description = "Work in progress Nintendo DS emulator";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ artemist benley shamilton xfix ];
|
2020-06-18 07:06:33 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|