summaryrefslogtreecommitdiff
path: root/pkgs/misc/emulators/mgba/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/misc/emulators/mgba/default.nix')
-rw-r--r--pkgs/misc/emulators/mgba/default.nix65
1 files changed, 46 insertions, 19 deletions
diff --git a/pkgs/misc/emulators/mgba/default.nix b/pkgs/misc/emulators/mgba/default.nix
index be097c311856..fa25609dcdb8 100644
--- a/pkgs/misc/emulators/mgba/default.nix
+++ b/pkgs/misc/emulators/mgba/default.nix
@@ -1,6 +1,22 @@
-{ lib, stdenv, fetchFromGitHub, makeDesktopItem, wrapQtAppsHook, pkg-config
-, cmake, epoxy, libzip, libelf, libedit, ffmpeg_3, SDL2, imagemagick
-, qtbase, qtmultimedia, qttools, minizip }:
+{ lib
+, stdenv
+, fetchFromGitHub
+, SDL2
+, cmake
+, epoxy
+, ffmpeg
+, imagemagick
+, libedit
+, libelf
+, libzip
+, makeDesktopItem
+, minizip
+, pkg-config
+, qtbase
+, qtmultimedia
+, qttools
+, wrapQtAppsHook
+}:
let
desktopItem = makeDesktopItem {
@@ -21,14 +37,26 @@ in stdenv.mkDerivation rec {
owner = "mgba-emu";
repo = "mgba";
rev = version;
- sha256 = "sha256-JVauGyHJVfiXVG4Z+Ydh1lRypy5rk9SKeTbeHFNFYJs=";
+ hash = "sha256-JVauGyHJVfiXVG4Z+Ydh1lRypy5rk9SKeTbeHFNFYJs=";
};
- nativeBuildInputs = [ wrapQtAppsHook pkg-config cmake ];
-
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ wrapQtAppsHook
+ ];
buildInputs = [
- epoxy libzip libelf libedit ffmpeg_3 SDL2 imagemagick
- qtbase qtmultimedia qttools minizip
+ SDL2
+ epoxy
+ ffmpeg
+ imagemagick
+ libedit
+ libelf
+ libzip
+ minizip
+ qtbase
+ qtmultimedia
+ qttools
];
postInstall = ''
@@ -38,21 +66,19 @@ in stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://mgba.io";
description = "A modern GBA emulator with a focus on accuracy";
-
longDescription = ''
mGBA is a new Game Boy Advance emulator written in C.
- The project started in April 2013 with the goal of being fast
- enough to run on lower end hardware than other emulators
- support, without sacrificing accuracy or portability. Even in
- the initial version, games generally play without problems. It
- is loosely based on the previous GBA.js emulator, although very
- little of GBA.js can still be seen in mGBA.
+ The project started in April 2013 with the goal of being fast enough to
+ run on lower end hardware than other emulators support, without
+ sacrificing accuracy or portability. Even in the initial version, games
+ generally play without problems. It is loosely based on the previous
+ GBA.js emulator, although very little of GBA.js can still be seen in mGBA.
- Other goals include accurate enough emulation to provide a
- development environment for homebrew software, a good workflow
- for tool-assist runners, and a modern feature set for emulators
- that older emulators may not support.
+ Other goals include accurate enough emulation to provide a development
+ environment for homebrew software, a good workflow for tool-assist
+ runners, and a modern feature set for emulators that older emulators may
+ not support.
'';
license = licenses.mpl20;
@@ -60,3 +86,4 @@ in stdenv.mkDerivation rec {
platforms = platforms.linux;
};
}
+# TODO [ AndersonTorres ]: use desktopItem functions