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

34 lines
868 B
Nix
Raw Normal View History

{ mkDerivation, lib, fetchgit, cmake, SDL2, qtbase, qtmultimedia, boost }:
2017-07-27 12:57:12 +00:00
mkDerivation {
pname = "citra";
version = "2020-12-07";
2017-07-27 12:57:12 +00:00
# Submodules
src = fetchgit {
url = "https://github.com/citra-emu/citra";
rev = "3f13e1cc2419fac837952c44d7be9db78b054a2f";
sha256 = "1bbg8cwrgncmcavqpj3yp4dbfkip1i491krp6dcpgvsd5yfr7f0v";
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
dontWrapQtApps = true;
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 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
};
}