mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
fix: add own mgba version with working lua scripts
This commit is contained in:
parent
d293d74410
commit
0c1077e59e
3 changed files with 58 additions and 2 deletions
|
|
@ -3634,6 +3634,38 @@ A crude script to power on all displays that might be attached. Needed because s
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
**** swarsel-mgba
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: h:799579f3-ddd3-4f76-928a-a8c665980476
|
||||||
|
:END:
|
||||||
|
|
||||||
|
AppImage version of mgba in which the lua scripting works.
|
||||||
|
|
||||||
|
|
||||||
|
#+begin_src nix :tangle pkgs/swarsel-mgba/default.nix
|
||||||
|
{ appimageTools, fetchurl, ... }:
|
||||||
|
let
|
||||||
|
pname = "mgba";
|
||||||
|
version = "0.10.4";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/mgba-emu/mgba/releases/download/${version}/mGBA-${version}-appimage-x64.appimage";
|
||||||
|
hash = "sha256-rDihDfuA8DqxvCe6UeavCzpjeU+fSqUbFnyTNC2dc1I=";
|
||||||
|
};
|
||||||
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
extraInstallCommands = ''
|
||||||
|
install -Dm444 ${appimageContents}/io.mgba.mGBA.desktop -t $out/share/applications
|
||||||
|
substituteInPlace $out/share/applications/io.mgba.mGBA.desktop \
|
||||||
|
--replace-fail 'Exec=mgba-qt %f' 'Exec=mgba'
|
||||||
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Overlays (additions, overrides, nixpkgs-stable)
|
*** Overlays (additions, overrides, nixpkgs-stable)
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h:5e3e21e0-57af-4dad-b32f-6400af9b7aab
|
:CUSTOM_ID: h:5e3e21e0-57af-4dad-b32f-6400af9b7aab
|
||||||
|
|
@ -3649,7 +3681,7 @@ When adding a new entry here, do not forget to add it in the default output of t
|
||||||
let
|
let
|
||||||
additions = final: _: import "${self}/pkgs" { pkgs = final; inherit lib; };
|
additions = final: _: import "${self}/pkgs" { pkgs = final; inherit lib; };
|
||||||
|
|
||||||
modifications = _: prev: {
|
modifications = final: prev: {
|
||||||
vesktop = prev.vesktop.override {
|
vesktop = prev.vesktop.override {
|
||||||
withSystemVencord = true;
|
withSystemVencord = true;
|
||||||
};
|
};
|
||||||
|
|
@ -3662,6 +3694,8 @@ When adding a new entry here, do not forget to add it in the default output of t
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mgba = final.swarsel-mgba;
|
||||||
|
|
||||||
retroarch = prev.retroarch.withCores (cores: with cores; [
|
retroarch = prev.retroarch.withCores (cores: with cores; [
|
||||||
snes9x # snes
|
snes9x # snes
|
||||||
nestopia # nes
|
nestopia # nes
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
let
|
let
|
||||||
additions = final: _: import "${self}/pkgs" { pkgs = final; inherit lib; };
|
additions = final: _: import "${self}/pkgs" { pkgs = final; inherit lib; };
|
||||||
|
|
||||||
modifications = _: prev: {
|
modifications = final: prev: {
|
||||||
vesktop = prev.vesktop.override {
|
vesktop = prev.vesktop.override {
|
||||||
withSystemVencord = true;
|
withSystemVencord = true;
|
||||||
};
|
};
|
||||||
|
|
@ -16,6 +16,8 @@ let
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mgba = final.swarsel-mgba;
|
||||||
|
|
||||||
retroarch = prev.retroarch.withCores (cores: with cores; [
|
retroarch = prev.retroarch.withCores (cores: with cores; [
|
||||||
snes9x # snes
|
snes9x # snes
|
||||||
nestopia # nes
|
nestopia # nes
|
||||||
|
|
|
||||||
20
pkgs/swarsel-mgba/default.nix
Normal file
20
pkgs/swarsel-mgba/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ appimageTools, fetchurl, ... }:
|
||||||
|
let
|
||||||
|
pname = "mgba";
|
||||||
|
version = "0.10.4";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/mgba-emu/mgba/releases/download/${version}/mGBA-${version}-appimage-x64.appimage";
|
||||||
|
hash = "sha256-rDihDfuA8DqxvCe6UeavCzpjeU+fSqUbFnyTNC2dc1I=";
|
||||||
|
};
|
||||||
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
extraInstallCommands = ''
|
||||||
|
install -Dm444 ${appimageContents}/io.mgba.mGBA.desktop -t $out/share/applications
|
||||||
|
substituteInPlace $out/share/applications/io.mgba.mGBA.desktop \
|
||||||
|
--replace-fail 'Exec=mgba-qt %f' 'Exec=mgba'
|
||||||
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue