mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
Merge pull request #132279 from AndersonTorres/new-mgba
mgba: 0.9.0 -> 0.9.2
This commit is contained in:
commit
a5c39a78b8
|
@ -18,26 +18,15 @@
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
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 {
|
|
||||||
pname = "mgba";
|
pname = "mgba";
|
||||||
version = "0.9.0";
|
version = "0.9.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mgba-emu";
|
owner = "mgba-emu";
|
||||||
repo = "mgba";
|
repo = "mgba";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-JVauGyHJVfiXVG4Z+Ydh1lRypy5rk9SKeTbeHFNFYJs=";
|
hash = "sha256-A48PVUCekdRYel/BddPCeIcEDllOvcU7pk4i4P58dpo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -59,9 +48,21 @@ in stdenv.mkDerivation rec {
|
||||||
qttools
|
qttools
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = let
|
||||||
cp -r ${desktopItem}/share/applications $out/share
|
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
|
||||||
|
''
|
||||||
|
cp -r ${desktopItem}/share/applications $out/share
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://mgba.io";
|
homepage = "https://mgba.io";
|
||||||
|
|
Loading…
Reference in a new issue