Skip to content

Commit

Permalink
pkgs: add emudeck (#177)
Browse files Browse the repository at this point in the history
* pkgs: add emudeck

* overlays/default: add emudeck

* github: add emudeck
  • Loading branch information
alyraffauf committed Nov 25, 2024
1 parent ccb70cb commit 0c81d34
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
name: alyraffauf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build default package
- name: Build adjustor package
run: nix build --accept-flake-config .#packages.x86_64-linux.adjustor
clean-install-build:
runs-on: ubuntu-latest
Expand All @@ -33,8 +33,22 @@ jobs:
with:
name: alyraffauf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build default package
- name: Build clean-install package
run: nix build --accept-flake-config .#packages.x86_64-linux.clean-install
emudeck-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@master
with:
name: alyraffauf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build emudeck package
run: nix build --accept-flake-config .#packages.x86_64-linux.emudeck
hhd-ui-build:
runs-on: ubuntu-latest
steps:
Expand All @@ -47,7 +61,7 @@ jobs:
with:
name: alyraffauf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build default package
- name: Build hhd-ui package
run: nix build --accept-flake-config .#packages.x86_64-linux.hhd-ui
rofi-bluetooth-build:
runs-on: ubuntu-latest
Expand All @@ -61,7 +75,7 @@ jobs:
with:
name: alyraffauf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build default package
- name: Build rofi-bluetooth package
run: nix build --accept-flake-config .#packages.x86_64-linux.rofi-bluetooth
fallarbor-build:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
text = ./flake/clean-install.sh;
};

emudeck = pkgs.callPackage ./pkgs/emudeck.nix {};
hhd-ui = pkgs.callPackage ./pkgs/hhd-ui.nix {};
rofi-bluetooth = pkgs.callPackage ./pkgs/rofi-bluetooth.nix {};
});
Expand Down
1 change: 1 addition & 0 deletions overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
{self}: final: prev: {
adjustor = self.packages.${prev.system}.adjustor;
hhd-ui = self.packages.${prev.system}.hhd-ui;
emudeck = self.packages.${prev.system}.emudeck;
rofi-bluetooth = self.packages.${prev.system}.rofi-bluetooth;
}
35 changes: 35 additions & 0 deletions pkgs/emudeck.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
appimageTools,
fetchurl,
lib,
}:
appimageTools.wrapType2 rec {
pname = "emudeck";
version = "2.3.0";

src = fetchurl {
hash = "sha256-BVlATLKbE9wwMs4844UpXCTZsLW1oRFWf9hujVUpa4k=";
url = "https://github.com/EmuDeck/emudeck-electron/releases/download/v${version}/EmuDeck-${version}.AppImage";
};

extraPkgs = pkgs:
with pkgs; [
bash
flatpak
fuse2
git
jq
newt
rsync
unzip
zenity
];

meta = with lib; {
description = "EmuDeck utility to manage ROMs on handheld PCs";
homepage = "https://github.com/EmuDeck/emudeck-electron";
license = licenses.mit;
mainProgram = "emudeck";
platforms = platforms.linux;
};
}

0 comments on commit 0c81d34

Please sign in to comment.