Open TheBrainScrambler opened 1 year ago
Thanks! By the way, is there a way to run this derivation with a smaller command?
I don't know, this is the best command I could find. There is a newer nix build
interface, but it is still experimental so I didn't research into that, and besides Nix documentation is a mess
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 {}'