2020-03-23 08:41:42 +00:00
|
|
|
{ stdenv, mkDerivation, lib, fetchgit, cmake, SDL2, qtbase, qtmultimedia, boost }:
|
2017-07-27 13:57:12 +01:00
|
|
|
|
2020-03-23 08:41:42 +00:00
|
|
|
mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "citra";
|
2020-03-23 08:41:42 +00:00
|
|
|
version = "2020-03-21";
|
2017-07-27 13:57:12 +01:00
|
|
|
|
|
|
|
# Submodules
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/citra-emu/citra";
|
2020-03-23 08:41:42 +00:00
|
|
|
rev = "8722b970c52f2c0d8e82561477edb62a53ae9dbb";
|
|
|
|
sha256 = "0c1zn1f84h4f6n6p0aqz905yvv5qpdmkj2z58yla6bfgbzabfyrj";
|
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
|
|
|
};
|
|
|
|
}
|