mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
fix[work]: fix aws,cdr commands, easier git switch in emacs
Some checks failed
Flake check / Check flake (push) Has been cancelled
Some checks failed
Flake check / Check flake (push) Has been cancelled
This commit is contained in:
parent
46f2ec8b96
commit
ec6ae25e9b
52 changed files with 4610 additions and 1364 deletions
20
pkgs/flake/swarsel-mgba/default.nix
Normal file
20
pkgs/flake/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