2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2020-12-09 14:58:10 -08:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkDerivation
|
|
|
|
, cmake
|
2021-01-16 18:30:45 -08:00
|
|
|
, pkg-config
|
2020-12-09 14:58:10 -08:00
|
|
|
, SDL2
|
|
|
|
, qtbase
|
|
|
|
, libpcap
|
|
|
|
, libslirp
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2019-10-28 15:13:45 -07:00
|
|
|
|
2020-12-09 14:58:10 -08:00
|
|
|
mkDerivation rec {
|
2019-10-28 15:13:45 -07:00
|
|
|
pname = "melonDS";
|
2021-01-19 21:07:49 -08:00
|
|
|
version = "0.9.1";
|
2019-10-28 15:13:45 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arisotura";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-19 21:07:49 -08:00
|
|
|
sha256 = "sha256-bvi0Y+zwfEcsZMNxoH85hxwIGn0UIYlg/ZaE6yJ7vlo=";
|
2019-10-28 15:13:45 -07:00
|
|
|
};
|
|
|
|
|
2021-01-16 18:30:45 -08:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
|
2020-12-09 14:58:10 -08:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
qtbase
|
|
|
|
libpcap
|
|
|
|
libslirp
|
|
|
|
];
|
2019-10-28 15:13:45 -07:00
|
|
|
|
2020-12-09 14:58:10 -08:00
|
|
|
cmakeFlags = [ "-UUNIX_PORTABLE" ];
|
2019-10-28 15:13:45 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2019-10-28 15:13:45 -07:00
|
|
|
homepage = "http://melonds.kuribo64.net/";
|
|
|
|
description = "Work in progress Nintendo DS emulator";
|
2020-06-16 13:53:20 -07:00
|
|
|
license = licenses.gpl3Plus;
|
2020-12-09 14:58:10 -08:00
|
|
|
maintainers = with maintainers; [ artemist benley shamilton ];
|
2019-10-28 15:13:45 -07:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|