init nix flake for running arrowvortex via wine

This commit is contained in:
pleb
2026-05-11 22:46:07 -07:00
commit c5acd887a0
5 changed files with 198 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
{
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;
};
};
}
);
};
}