arrowvortex-wine/flake.nix

54 lines
1.1 KiB
Nix

{
description = "ArrowVortex (Windows release) wrapped with Wine";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ nixpkgs, ... }:
let
lib = nixpkgs.lib;
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: lib.genAttrs systems (system: f system);
in
{
packages = forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
config = { };
};
in
{
default = pkgs.callPackage ./default.nix { };
arrowvortex = pkgs.callPackage ./default.nix { };
}
);
apps = forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
config = { };
};
arrowvortex = pkgs.callPackage ./default.nix { };
in
{
default = {
type = "app";
program = "${lib.getExe arrowvortex}";
meta = {
inherit (arrowvortex.meta) description homepage license;
};
};
}
);
};
}