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

33 lines
879 B
Nix
Raw Normal View History

{ stdenv, fetchgit, cmake, SDL2, qtbase, qtmultimedia, boost }:
2017-07-27 14:57:12 +02:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "citra";
2019-06-03 17:51:05 +02:00
version = "2019-05-25";
2017-07-27 14:57:12 +02:00
# Submodules
src = fetchgit {
url = "https://github.com/citra-emu/citra";
2019-06-03 17:51:05 +02:00
rev = "186ffc235f744dad315a603a98cce4597ef0f65f";
sha256 = "0w24an80yjmkfcxjzdvsbpahx46bmd90liq5m6qva5pgnpmxx7pn";
2017-07-27 14:57:12 +02:00
};
2018-06-16 03:31:53 +02:00
enableParallelBuilding = true;
2017-07-27 14:57:12 +02:00
nativeBuildInputs = [ cmake ];
2019-06-03 17:51:05 +02:00
buildInputs = [ SDL2 qtbase qtmultimedia boost ];
2017-07-27 14:57:12 +02: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 03:31:53 +02:00
homepage = "https://citra-emu.org";
description = "An open-source emulator for the Nintendo 3DS";
2017-07-27 16:28:13 +02:00
license = licenses.gpl2;
2017-07-27 14:57:12 +02:00
maintainers = with maintainers; [ abbradar ];
2018-06-16 03:31:53 +02:00
platforms = platforms.linux;
2017-07-27 14:57:12 +02:00
};
}