Ryujinx/flake.nix

39 lines
861 B
Nix
Raw Permalink Normal View History

2024-10-02 12:09:36 +00:00
{
description = "Experimental Nintendo Switch Emulator written in C#";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
}: (flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: {
2024-10-02 12:09:36 +00:00
packages.default =
let
pkgs = import nixpkgs {
inherit system;
overlays = [
self.overlays.default
2024-10-02 12:09:36 +00:00
];
};
in
pkgs.ryujinx;
})) // {
2024-10-02 12:09:36 +00:00
nixosModules.default = { config, lib, pkgs, ... }: {
nixpkgs.overlays = [
self.overlays.default
2024-10-02 12:09:36 +00:00
];
};
overlays.default = final: prev: {
ryujinx = final.callPackage ./package.nix {
src = self;
};
};
};
2024-10-02 12:09:36 +00:00
}