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

34 lines
995 B
Nix
Raw Normal View History

2017-07-27 12:57:12 +00:00
{ stdenv, fetchgit, cmake, SDL2, qtbase, boost, curl, gtest }:
stdenv.mkDerivation rec {
2018-02-25 17:17:13 +00:00
name = "citra-2018-02-23";
2017-07-27 12:57:12 +00:00
# Submodules
src = fetchgit {
url = "https://github.com/citra-emu/citra";
2018-02-25 17:17:13 +00:00
rev = "e51a642a13b9c2eda43d875fe318f627e11d480f";
sha256 = "0cw9cqbljc87rjyr2alfryp04mxpvd5mdlyrmnp9yis3xr8g9sa1";
2017-07-27 12:57:12 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 qtbase boost curl gtest ];
cmakeFlags = [ "-DUSE_SYSTEM_CURL=ON" "-DUSE_SYSTEM_GTEST=ON" ];
preConfigure = ''
# Trick configure system.
sed -n 's,^ *path = \(.*\),\1,p' .gitmodules | while read path; do
mkdir "$path/.git"
done
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = https://citra-emu.org/;
2017-07-27 12:57:12 +00:00
description = "An open-source emulator for the Nintendo 3DS capable of playing many of your favorite games.";
platforms = [ "x86_64-linux" "i686-linux" ];
2017-07-27 14:28:13 +00:00
license = licenses.gpl2;
2017-07-27 12:57:12 +00:00
maintainers = with maintainers; [ abbradar ];
};
}