2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-12-25 13:55:36 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkDerivation
|
|
|
|
, cmake
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-12-25 13:55:36 +00:00
|
|
|
, SDL2
|
|
|
|
, qtbase
|
|
|
|
, libpcap
|
|
|
|
, libslirp
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
mkDerivation rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "melonDS";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "0.9.1";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arisotura";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-bvi0Y+zwfEcsZMNxoH85hxwIGn0UIYlg/ZaE6yJ7vlo=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
|
2020-12-25 13:55:36 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
qtbase
|
|
|
|
libpcap
|
|
|
|
libslirp
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
cmakeFlags = [ "-UUNIX_PORTABLE" ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
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;
|
2020-12-25 13:55:36 +00:00
|
|
|
maintainers = with maintainers; [ artemist benley shamilton ];
|
2020-06-18 07:06:33 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|