mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2024-11-09 17:31:40 -03:00
36 lines
827 B
Nix
36 lines
827 B
Nix
{
|
|
description = "DayZ TUI/GUI server browser";
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
|
};
|
|
outputs = { self, nixpkgs, ... }:
|
|
let
|
|
# DayZ only runs on x86_64 systems
|
|
system = "x86_64-linux";
|
|
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 { });
|
|
});
|
|
};
|
|
|
|
nixosModules = rec {
|
|
default = dzgui;
|
|
dzgui = import ./module.nix { inherit self; };
|
|
};
|
|
|
|
devShells.${system}.default =
|
|
mkShell { buildInputs = self.packages.${system}.default.runtimeDeps; };
|
|
};
|
|
}
|