dzgui-nix/flake.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

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";
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;
dzgui = pkgs.callPackage ./package { };
2023-05-17 23:33:56 -03:00
};
overlays = {
default = import ./overlay.nix;
2023-05-17 23:33:56 -03:00
};
nixosModules = rec {
default = dzgui;
2024-12-09 12:14:55 -03:00
dzgui = pkgs.lib.warn (
"The dzgui NixOs module is deprecated and will be removed in the future, "
+ "check https://github.com/lelgenio/dzgui-nix/blob/main/README.md "
+ "for instructions on how to install dzgui as a regular package"
) (import ./module.nix);
2023-01-22 14:59:45 -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;
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
};
}