41 lines
810 B
Nix
41 lines
810 B
Nix
{
|
|
appimageTools,
|
|
fetchurl,
|
|
...
|
|
}: let
|
|
hashes = (builtins.import ../hashes.nix).emudeck;
|
|
in
|
|
appimageTools.wrapType1 {
|
|
name = "emudeck";
|
|
inherit (hashes) version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/EmuDeck/emudeck-electron/releases/download/v${hashes.version}/EmuDeck-${hashes.version}.AppImage";
|
|
inherit (hashes) hash;
|
|
};
|
|
|
|
extraPkgs = pkgs:
|
|
with pkgs; [
|
|
jq
|
|
zenity
|
|
unzip
|
|
bash
|
|
fuse
|
|
git
|
|
rsync
|
|
newt
|
|
];
|
|
|
|
extraInstallCommands = ''
|
|
mkdir -p $out/share/applications
|
|
cat > $out/share/applications/EmuDeck-Nix.desktop << EOF
|
|
[Desktop Entry]
|
|
Name=EmuDeck-Nix
|
|
Exec=emudeck
|
|
Terminal=false
|
|
Type=Application
|
|
Categories=Game;
|
|
EOF
|
|
'';
|
|
}
|