A set of tf2 related nix packages
Find a file
2023-07-08 23:29:15 +02:00
.github/workflows no separate sdk fetch now we know they are all good hashes 2023-07-08 23:29:15 +02:00
pkgs build sourcemod with clang 2023-07-08 23:27:47 +02:00
.envrc init 2023-07-08 17:23:51 +02:00
.gitignore init 2023-07-08 17:23:51 +02:00
flake.lock init 2023-07-08 17:23:51 +02:00
flake.nix init 2023-07-08 17:23:51 +02:00
README.md init 2023-07-08 17:23:51 +02:00

Spire nix packages

A set of tf2 related nix packages

Packages

The following is currently packaged:

  • ambuild
  • sourcepawn
  • metamod-source
  • sourcemod

Sourcemod SDKs

For the sourcemod package, you need to enable one or more SDKs at build time. The SDKs are packaged under the hl2sdk package and can be enabled like in the following example.

pkgs.sourcemod.override {sdks = {inherit (pkgs.hl2sdk) tf2;};};

Building sourcepawn script

buildSourcePawnScript {
  name = "test";
  src = ./test.sp;
};

By default the sourcemod includes are available. Additional includes can be added by setting the includes argument to an array of packages containing an include folder containing the .inc files.