2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-12-09 22:58:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkDerivation
|
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
, SDL2
|
|
|
|
, qtbase
|
|
|
|
, libpcap
|
|
|
|
, libslirp
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2019-10-28 22:13:45 +00:00
|
|
|
|
2020-12-09 22:58:10 +00:00
|
|
|
mkDerivation rec {
|
2019-10-28 22:13:45 +00:00
|
|
|
pname = "melonDS";
|
2020-12-09 22:58:10 +00:00
|
|
|
version = "0.9";
|
2019-10-28 22:13:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arisotura";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-09 22:58:10 +00:00
|
|
|
sha256 = "0m45m1ch0az8l3d3grjbqvi5vvydbffxwka9w3k3qiia50m7fnph";
|
2019-10-28 22:13:45 +00:00
|
|
|
};
|
|
|
|
|
2020-06-16 21:53:20 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook ];
|
2020-12-09 22:58:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
qtbase
|
|
|
|
libpcap
|
|
|
|
libslirp
|
|
|
|
];
|
2019-10-28 22:13:45 +00:00
|
|
|
|
2020-12-09 22:58:10 +00:00
|
|
|
cmakeFlags = [ "-UUNIX_PORTABLE" ];
|
2019-10-28 22:13:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-28 22:13:45 +00:00
|
|
|
homepage = "http://melonds.kuribo64.net/";
|
|
|
|
description = "Work in progress Nintendo DS emulator";
|
2020-06-16 21:53:20 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-12-09 22:58:10 +00:00
|
|
|
maintainers = with maintainers; [ artemist benley shamilton ];
|
2019-10-28 22:13:45 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|