feat(home/CEmu): Wrap CEmu to include my config; write desktop entry
This commit is contained in:
parent
c2c4fa613f
commit
77a29650d8
3 changed files with 31 additions and 1 deletions
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
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