aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/SteamTools.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/SteamTools.nix
break out of system config
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/
+ '';
+}