2023-01-22 14:59:45 -03:00
|
|
|
{
|
|
|
|
description = "DayZ TUI/GUI server browser";
|
|
|
|
inputs = {
|
2023-12-17 18:58:21 -03:00
|
|
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
2023-01-22 14:59:45 -03:00
|
|
|
};
|
2024-10-01 12:10:35 -03:00
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs, ... }:
|
2023-01-22 14:59:45 -03:00
|
|
|
let
|
|
|
|
# DayZ only runs on x86_64 systems
|
|
|
|
system = "x86_64-linux";
|
2024-10-01 12:15:41 -03:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2023-05-17 23:33:56 -03:00
|
|
|
in
|
2024-10-01 12:10:35 -03:00
|
|
|
{
|
2023-05-17 23:33:56 -03:00
|
|
|
packages.${system} = rec {
|
|
|
|
default = dzgui;
|
2024-10-01 12:15:41 -03:00
|
|
|
dzgui = pkgs.callPackage ./package { };
|
2023-05-17 23:33:56 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
overlays = {
|
2024-10-01 12:22:18 -03:00
|
|
|
default = import ./overlay.nix;
|
2023-05-17 23:33:56 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
nixosModules = rec {
|
|
|
|
default = dzgui;
|
2024-10-01 12:15:41 -03:00
|
|
|
dzgui = import ./module.nix;
|
2023-01-22 14:59:45 -03:00
|
|
|
};
|
|
|
|
|
2024-10-01 12:15:41 -03:00
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
2024-10-01 12:10:35 -03:00
|
|
|
buildInputs = self.packages.${system}.default.runtimeDeps;
|
|
|
|
};
|
2024-10-01 12:07:49 -03:00
|
|
|
|
2024-10-01 12:10:35 -03:00
|
|
|
checks.${system}.nixosCheck =
|
|
|
|
(nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-10-01 12:22:18 -03:00
|
|
|
modules = [ ./nixos-test/configuration.nix ];
|
2024-10-01 12:10:35 -03:00
|
|
|
}).config.system.build.toplevel;
|
2023-01-22 14:59:45 -03:00
|
|
|
};
|
|
|
|
}
|