You can change the game fron "hl2" to what you need. There is also "--disable-warns" in the flags because I couldn't build the engine without it.
Also note that I pinned a commit from 2023-06-03, you might want to update that too.
To build run nix-build -E 'with import <nixpkgs> {}; callPackage ./source-engine.nix {}'
The wiki isn't publicly editable, so I will put it here.
You need to put the following Nix expression in a file, say
source-engine.nix
You can change the game fron "hl2" to what you need. There is also "--disable-warns" in the flags because I couldn't build the engine without it. Also note that I pinned a commit from 2023-06-03, you might want to update that too.
To build run
nix-build -E 'with import <nixpkgs> {}; callPackage ./source-engine.nix {}'