aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/smlib.nix
diff options
context:
space:
mode:
authoryuuko <yuuko@partyvan.io>2024-08-29 21:51:04 -0700
committeryuuko <yuuko@partyvan.io>2024-08-29 21:51:04 -0700
commit56449e59d7aabd1c06fb67a51a1e129b55cb9270 (patch)
tree19f3faf805e9b6461a5940d1a050d13e5271ef55 /srcds-pkgs/plugins/smlib.nix
break out of system config
Diffstat (limited to 'srcds-pkgs/plugins/smlib.nix')
-rw-r--r--srcds-pkgs/plugins/smlib.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/srcds-pkgs/plugins/smlib.nix b/srcds-pkgs/plugins/smlib.nix
new file mode 100644
index 0000000..5f283c9
--- /dev/null
+++ b/srcds-pkgs/plugins/smlib.nix
@@ -0,0 +1,22 @@
+{ fetchFromGitHub, buildSMPlugin }:
+buildSMPlugin rec {
+ pname = "smlib";
+ version = "2022-01-11";
+
+ src = fetchFromGitHub {
+ owner = "bcserv";
+ repo = pname;
+ # transitional_syntax branch
+ rev = "2c14acb85314e25007f5a61789833b243e7d0cab";
+ hash = "sha256-yonYBCaEZGjbxhKvQ2NNVBpiUqyMxuchEgL+bsWomuo=";
+ };
+
+ postPatch = ''
+ sed -i \
+ '/#include <sdktools_entinput>/a #include <sdktools_variant_t>' \
+ scripting/include/smlib/entities.inc
+ '';
+
+ # technically unnecessary as buildPhase simply won't find anything to build
+ dontBuild = true;
+}