feat(polymita-picta): experiment with emudeck packaging for the deck

This commit is contained in:
Malte Tammena 2023-11-21 00:06:35 +01:00
parent 64bd1426a3
commit fbdf5e0fbd
3 changed files with 33 additions and 0 deletions

View file

@ -32,4 +32,8 @@
hash = "sha256-NVlK2lA0TBtCdR1Yjq2cV+ML+bJjBKk/oCEIaBzZDOE="; hash = "sha256-NVlK2lA0TBtCdR1Yjq2cV+ML+bJjBKk/oCEIaBzZDOE=";
vendorHash = "sha256-xEPmNnaDwFU4l2G4cMvtNeQ9KneF5g9ViQSFrDkrafY="; vendorHash = "sha256-xEPmNnaDwFU4l2G4cMvtNeQ9KneF5g9ViQSFrDkrafY=";
}; };
emudeck = {
version = "2.1.4";
hash = "sha256-tpJap4Kg+GxB5vAA8qAcBPUl6GZgMYrVWv4KwKue2VY=";
};
} }

View file

@ -53,6 +53,7 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
inputs.self.packages.x86_64-linux.emudeck
steam-rom-manager steam-rom-manager
boilr boilr
electron electron

28
pkgs/emudeck.nix Normal file
View file

@ -0,0 +1,28 @@
{
appimageTools,
fetchurl,
...
}: let
hashes = (builtins.import ../hashes.nix).emudeck;
in
appimageTools.wrapType2 {
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
gnome.zenity
unzip
bash
fuse
git
rsync
newt
];
}