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/SteamTools.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcds-pkgs/plugins/SteamTools.nix (limited to 'srcds-pkgs/plugins/SteamTools.nix') 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/ + ''; +} -- cgit v1.2.3