2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-12-09 22:58:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkDerivation
|
|
|
|
, cmake
|
2021-11-11 04:35:34 +00:00
|
|
|
, libepoxy
|
2021-09-13 19:23:30 +00:00
|
|
|
, libarchive
|
2020-12-09 22:58:10 +00:00
|
|
|
, libpcap
|
|
|
|
, libslirp
|
2021-09-13 19:23:30 +00:00
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
|
|
|
, SDL2
|
2020-12-09 22:58:10 +00:00
|
|
|
}:
|
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";
|
2021-09-13 19:23:30 +00:00
|
|
|
version = "0.9.3";
|
2019-10-28 22:13:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arisotura";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-13 19:23:30 +00:00
|
|
|
sha256 = "1v8a060gbpx7rdkk2w4hym361l2wip7yjjn8wny1gfsa273k3zy5";
|
2019-10-28 22:13:45 +00:00
|
|
|
};
|
|
|
|
|
2021-09-13 19:23:30 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-12-09 22:58:10 +00:00
|
|
|
buildInputs = [
|
2021-11-11 04:35:34 +00:00
|
|
|
libepoxy
|
2021-09-13 19:23:30 +00:00
|
|
|
libarchive
|
2020-12-09 22:58:10 +00:00
|
|
|
libslirp
|
2021-09-13 19:23:30 +00:00
|
|
|
qtbase
|
|
|
|
SDL2
|
2020-12-09 22:58:10 +00:00
|
|
|
];
|
2019-10-28 22:13:45 +00:00
|
|
|
|
2021-09-28 22:45:21 +00:00
|
|
|
qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" ];
|
|
|
|
|
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 20:53:20 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-09-13 19:23:30 +00:00
|
|
|
maintainers = with maintainers; [ artemist benley shamilton xfix ];
|
2019-10-28 22:13:45 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|