diff --git a/modules/home/programs/gui/CEmu/default.nix b/modules/home/programs/gui/CEmu/default.nix index 2e7172b..b4a90ed 100644 --- a/modules/home/programs/gui/CEmu/default.nix +++ b/modules/home/programs/gui/CEmu/default.nix @@ -10,7 +10,8 @@ in { config = lib.mkIf cfg.enable { home.packages = with pkgs; [ - cemu-ti + # cemu-ti + marleyos.CEmu-TI-84-Plus-CE ]; }; } diff --git a/packages/CEmu-TI-84-Plus-CE/calc.cemu b/packages/CEmu-TI-84-Plus-CE/calc.cemu new file mode 100644 index 0000000..ff97a84 Binary files /dev/null and b/packages/CEmu-TI-84-Plus-CE/calc.cemu differ diff --git a/packages/CEmu-TI-84-Plus-CE/default.nix b/packages/CEmu-TI-84-Plus-CE/default.nix new file mode 100644 index 0000000..b681c0d --- /dev/null +++ b/packages/CEmu-TI-84-Plus-CE/default.nix @@ -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 +''