aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/smlib.nix
diff options
context:
space:
mode:
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;
+}