init nix flake for running arrowvortex via wine
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user