2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-12-09 23:58:10 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkDerivation
|
|
|
|
, cmake
|
2021-11-11 05:35:34 +01:00
|
|
|
, libepoxy
|
2021-09-13 21:23:30 +02:00
|
|
|
, libarchive
|
2020-12-09 23:58:10 +01:00
|
|
|
, libpcap
|
|
|
|
, libslirp
|
2021-09-13 21:23:30 +02:00
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
|
|
|
, SDL2
|
2020-12-09 23:58:10 +01:00
|
|
|
}:
|
2019-10-28 23:13:45 +01:00
|
|
|
|
2020-12-09 23:58:10 +01:00
|
|
|
mkDerivation rec {
|
2019-10-28 23:13:45 +01:00
|
|
|
pname = "melonDS";
|
2022-03-10 22:12:16 +01:00
|
|
|
version = "0.9.4";
|
2019-10-28 23:13:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arisotura";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-10 22:12:16 +01:00
|
|
|
sha256 = "sha256-FSacau7DixU6R4eKNIYVRZiMb/GhijTzHbcGlZ6WG/I=";
|
2019-10-28 23:13:45 +01:00
|
|
|
};
|
|
|
|
|
2021-09-13 21:23:30 +02:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-12-09 23:58:10 +01:00
|
|
|
buildInputs = [
|
2021-11-11 05:35:34 +01:00
|
|
|
libepoxy
|
2021-09-13 21:23:30 +02:00
|
|
|
libarchive
|
2020-12-09 23:58:10 +01:00
|
|
|
libslirp
|
2021-09-13 21:23:30 +02:00
|
|
|
qtbase
|
|
|
|
SDL2
|
2020-12-09 23:58:10 +01:00
|
|
|
];
|
2019-10-28 23:13:45 +01:00
|
|
|
|
2021-09-29 00:45:21 +02:00
|
|
|
qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-28 23:13:45 +01:00
|
|
|
homepage = "http://melonds.kuribo64.net/";
|
|
|
|
description = "Work in progress Nintendo DS emulator";
|
2020-06-16 22:53:20 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2021-09-13 21:23:30 +02:00
|
|
|
maintainers = with maintainers; [ artemist benley shamilton xfix ];
|
2019-10-28 23:13:45 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|