mirror of
https://github.com/kittywitch/katgba.git
synced 2025-12-22 08:19:15 -08:00
feat: add app for automatic running with an emulator
This commit is contained in:
parent
a84087c06f
commit
5897ef4e08
1 changed files with 11 additions and 2 deletions
13
flake.nix
13
flake.nix
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
rust-overlay,
|
rust-overlay,
|
||||||
|
|
@ -62,7 +63,15 @@
|
||||||
|
|
||||||
myPackage = pkgs.callPackage ./package.nix { inherit craneLib rustToolchain rustTriple; };
|
myPackage = pkgs.callPackage ./package.nix { inherit craneLib rustToolchain rustTriple; };
|
||||||
in {
|
in {
|
||||||
inherit pkgsCross;
|
packages = {
|
||||||
packages.default = myPackage;
|
default = myPackage;
|
||||||
|
katgba = myPackage;
|
||||||
|
};
|
||||||
|
apps = rec {
|
||||||
|
katgba-emu = flake-utils.lib.mkApp { drv = pkgs.writeShellScriptBin "katgba-emu" ''
|
||||||
|
${pkgs.mgba}/bin/mgba-qt ${lib.getExe self.packages.${system}.default}
|
||||||
|
''; };
|
||||||
|
default = katgba-emu;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue