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

34 lines
984 B
Nix
Raw Normal View History

2018-06-16 02:31:53 +01:00
{ stdenv, fetchgit, cmake, SDL2, qtbase, qtmultimedia, boost, curl, gtest }:
2017-07-27 13:57:12 +01:00
stdenv.mkDerivation rec {
2018-06-16 02:31:53 +01:00
name = "citra-${version}";
version = "2018-06-09";
2017-07-27 13:57:12 +01:00
# Submodules
src = fetchgit {
url = "https://github.com/citra-emu/citra";
2018-06-16 02:31:53 +01:00
rev = "cf9bfe0690f1934847500cc5079b1aaf3299a507";
sha256 = "1ryc5d3fnhzlrzh1yljbq9x5n79dsb5hgqdba8z4x56iccx0kd0p";
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 ];
2018-06-16 02:31:53 +01:00
buildInputs = [ SDL2 qtbase qtmultimedia boost curl gtest ];
2017-07-27 13:57:12 +01:00
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
'';
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
};
}