package srcds wip

This commit is contained in:
Robin Appelman 2025-06-20 18:06:41 +02:00
commit 8e26d5f7ba
6 changed files with 189 additions and 13 deletions

View file

@ -1,9 +1,21 @@
{
inputs = {
flakelight.url = "github:nix-community/flakelight";
nixpkgs.url = "nixpkgs/nixos-25.05";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs";
};
steam-fetcher = {
url = "github:nix-community/steam-fetcher";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {flakelight, ...}: let
outputs = {
flakelight,
steam-fetcher,
...
}: let
inherit (builtins) listToAttrs map;
inheritPkgs = names:
listToAttrs (map (name: {
@ -13,8 +25,13 @@
names);
in
flakelight ./. {
nixpkgs.config = {allowUnfree = true;};
systems = ["x86_64-linux" "i686-linux"];
withOverlays = [(import ./nix/overlay.nix)];
withOverlays = [
steam-fetcher.overlays.default
(import ./nix/overlay.nix)
];
formatters = pkgs:
with pkgs; {
@ -26,7 +43,7 @@
metamods = pkgs.lib.mapAttrs (name: sdk: pkgs.metamod-source.override {sdks = {${name} = sdk;};}) pkgs.hl2sdk;
};
packages = inheritPkgs ["ambuild" "sourcepawn" "sourcemod-includes" "sourcemod-include-library"];
packages = inheritPkgs ["ambuild" "sourcepawn" "sourcemod-includes" "sourcemod-include-library" "srcds-tf2"];
checks = {
buildTestScript = {pkgs, ...}: