2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchgit, cmake, SDL2, qtbase, qtmultimedia, boost }:
|
2017-07-27 13:57:12 +01:00
|
|
|
|
2019-11-03 12:00:10 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "citra";
|
2019-11-03 12:00:10 +00:00
|
|
|
version = "2019-10-05";
|
2017-07-27 13:57:12 +01:00
|
|
|
|
|
|
|
# Submodules
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/citra-emu/citra";
|
2019-11-03 12:00:10 +00:00
|
|
|
rev = "35690e3ac7a340d941d3bf56080cf5aa6187c5c3";
|
|
|
|
sha256 = "11a4mdjabn3qrh0nn4pjl5fxs9nhf1k27wd486csfx88q2q9jvq8";
|
2017-07-27 13:57:12 +01:00
|
|
|
};
|
|
|
|
|
2018-06-16 02:31:53 +01:00
|
|
|
enableParallelBuilding = true;
|
2017-07-27 13:57:12 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-06-03 16:51:05 +01:00
|
|
|
buildInputs = [ SDL2 qtbase qtmultimedia boost ];
|
2017-07-27 13:57:12 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Trick configure system.
|
|
|
|
sed -n 's,^ *path = \(.*\),\1,p' .gitmodules | while read path; do
|
|
|
|
mkdir "$path/.git"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-06-16 02:31:53 +01:00
|
|
|
homepage = "https://citra-emu.org";
|
|
|
|
description = "An open-source emulator for the Nintendo 3DS";
|
2017-07-27 15:28:13 +01:00
|
|
|
license = licenses.gpl2;
|
2017-07-27 13:57:12 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2018-06-16 02:31:53 +01:00
|
|
|
platforms = platforms.linux;
|
2017-07-27 13:57:12 +01:00
|
|
|
};
|
|
|
|
}
|