aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/SteamTools.nix
diff options
context:
space:
mode:
Diffstat (limited to 'srcds-pkgs/plugins/SteamTools.nix')
-rw-r--r--srcds-pkgs/plugins/SteamTools.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/srcds-pkgs/plugins/SteamTools.nix b/srcds-pkgs/plugins/SteamTools.nix
new file mode 100644
index 0000000..2755fa5
--- /dev/null
+++ b/srcds-pkgs/plugins/SteamTools.nix
@@ -0,0 +1,21 @@
+{ lib, buildSMPlugin, fetchFromGitHub, runCommand }:
+let
+ pname = "SteamTools";
+ src' = fetchFromGitHub {
+ # transitional syntax fork that's been sitting in PRs for 4 years ww
+ owner = "JoinedSenses";
+ repo = pname;
+ rev = "0ce8122e5d2a453c5b4b23fb2871bc24b35e27fe";
+ hash = "sha256-Vq60/GxwlyfYgQKjnMR8CaeyfMApJIvvZWD94o4LwYc=";
+ };
+in
+buildSMPlugin /* rec */ {
+ inherit pname;
+ version = "2020-05-01";
+
+ src = runCommand "source" {} ''
+ odir=$out/scripting/include
+ mkdir -p $odir
+ cp ${src'}/plugin/steamtools.inc $odir/
+ '';
+}