2023-01-22 14:59:45 -03:00
|
|
|
{
|
|
|
|
description = "DayZ TUI/GUI server browser";
|
|
|
|
inputs = {
|
2023-05-17 22:43:20 -03:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-22.11";
|
2023-01-22 14:59:45 -03:00
|
|
|
dzgui = {
|
|
|
|
url = "github:aclist/dztui";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, dzgui, ... }:
|
|
|
|
let
|
|
|
|
# DayZ only runs on x86_64 systems
|
|
|
|
system = "x86_64-linux";
|
2023-05-17 23:33:56 -03:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ self.overlays.default ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
with pkgs; {
|
|
|
|
packages.${system} = rec {
|
|
|
|
default = dzgui;
|
|
|
|
inherit (pkgs) dzgui;
|
|
|
|
};
|
|
|
|
|
|
|
|
overlays = {
|
|
|
|
default = (final: _: {
|
|
|
|
dzgui = (final.callPackage ./. { }).overrideAttrs (_: { src = dzgui; });
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosModules = rec {
|
|
|
|
default = dzgui;
|
2023-05-18 08:25:02 -03:00
|
|
|
dzgui = import ./module.nix { inherit self; };
|
2023-01-22 14:59:45 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
devShells.${system}.default =
|
|
|
|
mkShell { buildInputs = self.packages.${system}.default.runtimeDeps; };
|
|
|
|
};
|
|
|
|
}
|