flake reorg

This commit is contained in:
Robin Appelman 2025-06-19 23:08:16 +02:00
commit 67537a38e0
15 changed files with 70 additions and 96 deletions

View file

@ -12,11 +12,11 @@ The following is currently packaged:
- `sourcemod`
- [`sourcemod-include-library`](https://github.com/JoinedSenses/SourceMod-IncludeLibrary)
## 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.
The SDKs are packaged under the `hl2sdk` package and can be enabled like in the
following example.
```nix
pkgs.sourcemod.override {sdks = {inherit (pkgs.hl2sdk) tf2;};};
@ -26,7 +26,8 @@ pkgs.sourcemod.override {sdks = {inherit (pkgs.hl2sdk) tf2;};};
#### i686-linux
`episode1`, `ep2`, `css`, `hl2dm`, `dods`, `sdk2013`, `tf2`, `l4d`, `l4d2`, `nucleardawn`, `csgo`, `insurgency`, `bms` and `doi`
`episode1`, `ep2`, `css`, `hl2dm`, `dods`, `sdk2013`, `tf2`, `l4d`, `l4d2`,
`nucleardawn`, `csgo`, `insurgency`, `bms` and `doi`
#### x86_64-linux
@ -43,9 +44,10 @@ buildSourcePawnScript {
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.
A helper is provided to create include packages:
Additional includes can be added by setting the `includes` argument to an array
of packages containing an `include` folder containing the `.inc` files. A helper
is provided to create include packages:
```nix
sourcepawn.buildInclude [./cURL.inc ./cURL_header.inc]
```
```