mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #42214 from Chiiruno/dev/mgba
mgba: Add desktop file
This commit is contained in:
commit
56b867ca99
1 changed files with 22 additions and 4 deletions
|
@ -1,7 +1,19 @@
|
||||||
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, cmake, libzip, epoxy, ffmpeg
|
{ stdenv, fetchFromGitHub, fetchpatch, makeDesktopItem, makeWrapper, pkgconfig
|
||||||
, imagemagick, SDL2, qtbase, qtmultimedia, qttools, libedit, minizip }:
|
, cmake, epoxy, libzip, ffmpeg, imagemagick, SDL2, qtbase, qtmultimedia, libedit
|
||||||
|
, qttools, minizip }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = "mgba";
|
||||||
|
exec = "mgba-qt";
|
||||||
|
icon = "mgba";
|
||||||
|
comment = "A Game Boy Advance Emulator";
|
||||||
|
desktopName = "mgba";
|
||||||
|
genericName = "Game Boy Advance Emulator";
|
||||||
|
categories = "Game;Emulator;";
|
||||||
|
startupNotify = "false";
|
||||||
|
};
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
name = "mgba-${version}";
|
name = "mgba-${version}";
|
||||||
version = "0.6.3";
|
version = "0.6.3";
|
||||||
|
|
||||||
|
@ -13,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
nativeBuildInputs = [ pkgconfig cmake ];
|
nativeBuildInputs = [ makeWrapper pkgconfig cmake ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libzip epoxy ffmpeg imagemagick SDL2 qtbase qtmultimedia libedit minizip
|
libzip epoxy ffmpeg imagemagick SDL2 qtbase qtmultimedia libedit minizip
|
||||||
|
@ -25,6 +37,12 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0j334v8wf594kg8s1hngmh58wv1pi003z8avy6fjhj5qpjmbbavh";
|
sha256 = "0j334v8wf594kg8s1hngmh58wv1pi003z8avy6fjhj5qpjmbbavh";
|
||||||
})];
|
})];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
cp -r ${desktopItem}/share/applications $out/share
|
||||||
|
wrapProgram $out/bin/mgba-qt --suffix QT_PLUGIN_PATH : \
|
||||||
|
${qtbase.bin}/${qtbase.qtPluginPrefix}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.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";
|
||||||
|
|
Loading…
Reference in a new issue