dzgui-nix/flake.nix

36 lines
827 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-05-07 21:29:59 -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";
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 ./package { });
2023-05-17 23:33:56 -03:00
});
};
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; };
};
}