nixpkgs/pkgs/misc/emulators/citra/default.nix

33 lines
878 B
Nix
Raw Normal View History

{ stdenv, fetchgit, cmake, SDL2, qtbase, qtmultimedia, boost }:
2017-07-27 12:57:12 +00:00
2019-11-03 12:00:10 +00:00
stdenv.mkDerivation {
pname = "citra";
2019-11-03 12:00:10 +00:00
version = "2019-10-05";
2017-07-27 12:57:12 +00: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 12:57:12 +00:00
};
2018-06-16 01:31:53 +00:00
enableParallelBuilding = true;
2017-07-27 12:57:12 +00:00
nativeBuildInputs = [ cmake ];
2019-06-03 15:51:05 +00:00
buildInputs = [ SDL2 qtbase qtmultimedia boost ];
2017-07-27 12:57:12 +00: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 01:31:53 +00:00
homepage = "https://citra-emu.org";
description = "An open-source emulator for the Nintendo 3DS";
2017-07-27 14:28:13 +00:00
license = licenses.gpl2;
2017-07-27 12:57:12 +00:00
maintainers = with maintainers; [ abbradar ];
2018-06-16 01:31:53 +00:00
platforms = platforms.linux;
2017-07-27 12:57:12 +00:00
};
}