Ryujinx/flake.nix
2024-10-02 14:09:36 +02:00

39 lines
870 B
Nix

{
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: {
packages.default =
let
pkgs = import nixpkgs {
inherit system;
overlays = [
self.overlays.${system}.default
];
};
in
pkgs.ryujinx;
nixosModules.default = { config, lib, pkgs, ... }: {
nixpkgs.overlays = [
self.overlays.${system}.default
];
};
overlays.default = final: prev: {
ryujinx = final.callPackage ./package.nix {
src = self;
};
};
});
}