From 56449e59d7aabd1c06fb67a51a1e129b55cb9270 Mon Sep 17 00:00:00 2001 From: yuuko Date: Thu, 29 Aug 2024 21:51:04 -0700 Subject: break out of system config --- srcds-pkgs/plugins/smlib.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcds-pkgs/plugins/smlib.nix (limited to 'srcds-pkgs/plugins/smlib.nix') 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 /a #include ' \ + scripting/include/smlib/entities.inc + ''; + + # technically unnecessary as buildPhase simply won't find anything to build + dontBuild = true; +} -- cgit v1.2.3