Compare commits
2 commits
dd259191d9
...
77a29650d8
Author | SHA1 | Date | |
---|---|---|---|
77a29650d8 | |||
c2c4fa613f |
4 changed files with 47 additions and 0 deletions
17
modules/home/programs/gui/CEmu/default.nix
Normal file
17
modules/home/programs/gui/CEmu/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.marleyos.programs.CEmu;
|
||||
in {
|
||||
options.marleyos.programs.CEmu.enable = lib.mkEnableOption "CEmu";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
# cemu-ti
|
||||
marleyos.CEmu-TI-84-Plus-CE
|
||||
];
|
||||
};
|
||||
}
|
|
@ -11,6 +11,7 @@ in {
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
marleyos.programs = {
|
||||
CEmu = enabled;
|
||||
calibre = enabled;
|
||||
discord = enabled;
|
||||
floorp = enabled;
|
||||
|
|
BIN
packages/CEmu-TI-84-Plus-CE/calc.cemu
Normal file
BIN
packages/CEmu-TI-84-Plus-CE/calc.cemu
Normal file
Binary file not shown.
29
packages/CEmu-TI-84-Plus-CE/default.nix
Normal file
29
packages/CEmu-TI-84-Plus-CE/default.nix
Normal 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
|
||||
''
|
Loading…
Reference in a new issue