dzgui-nix/flake.nix

39 lines
910 B
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;
dzgui = 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
};
}