Ryujinx/flake.nix
Naxdy d8a728c735
Some checks failed
Release job / Release for linux-arm64 (push) Failing after 1s
Release job / Release for linux-x64 (push) Failing after 1s
Release job / Release MacOS universal (push) Failing after 1s
Release job / Create tag (push) Has been cancelled
Release job / Release for win-x64 (push) Has been cancelled
Release job / flatpak_release (push) Has been cancelled
flake: make module & overlay arch-agnostic
2024-10-02 14:52:31 +02:00

38 lines
861 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.default
];
};
in
pkgs.ryujinx;
})) // {
nixosModules.default = { config, lib, pkgs, ... }: {
nixpkgs.overlays = [
self.overlays.default
];
};
overlays.default = final: prev: {
ryujinx = final.callPackage ./package.nix {
src = self;
};
};
};
}