mgba: ffmpeg_3 -> ffmpeg

And refactor.
This commit is contained in:
AndersonTorres 2021-04-26 21:13:14 -03:00
parent 27525f6c4d
commit 41c71047c0
1 changed files with 46 additions and 19 deletions

View File

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