feat(home/CEmu): Wrap CEmu to include my config; write desktop entry

This commit is contained in:
punkfairie 2025-03-05 21:15:49 -08:00
parent c2c4fa613f
commit 77a29650d8
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
3 changed files with 31 additions and 1 deletions

View file

@ -10,7 +10,8 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
cemu-ti # cemu-ti
marleyos.CEmu-TI-84-Plus-CE
]; ];
}; };
} }

Binary file not shown.

View file

@ -0,0 +1,29 @@
{
runCommand,
makeWrapper,
cemu-ti,
writeText,
}:
runCommand "CEmu-TI-84-Plus-CE-${cemu-ti.version}"
{
nativeBuildInputs = [makeWrapper];
} ''
mkdir -p $out/{bin,share/applications}
makeWrapper ${cemu-ti}/bin/CEmu $out/bin/CEmu
# Copy config
cp ${./calc.cemu} $out/bin/calc.cemu
# Write desktop entry
cp ${writeText "$out/share/applications/CEmu.desktop"
# desktop
''
[Desktop Entry]
Type=Application
Name=CEmu
Exec=CEmu
Icon=CEmu
Keywords=cemu;math;calc;
NoDisplay=false
''} $out/share/applications/CEmu.desktop
''