Ryujinx/flake.nix
Naxdy f1f0154b4a
Some checks failed
Release job / Create tag (push) Waiting to run
Release job / flatpak_release (push) Blocked by required conditions
Release job / Release for win-x64 (push) Waiting to run
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
add flake
2024-10-02 13:57:39 +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;
};
};
});
}