aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/SteamWorks.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/SteamWorks.nix
break out of system config
Diffstat (limited to 'srcds-pkgs/plugins/SteamWorks.nix')
-rw-r--r--srcds-pkgs/plugins/SteamWorks.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/srcds-pkgs/plugins/SteamWorks.nix b/srcds-pkgs/plugins/SteamWorks.nix
new file mode 100644
index 0000000..169f6d0
--- /dev/null
+++ b/srcds-pkgs/plugins/SteamWorks.nix
@@ -0,0 +1,19 @@
+{ buildSMPlugin, fetchFromGitHub, runCommand }:
+let
+ src' = fetchFromGitHub {
+ owner = "KyleSanderson";
+ repo = "SteamWorks";
+ rev = "f0c1b62dff615511b27824aaa2815c7dc58d2716";
+ hash = "sha256-ugjaM04Jm1MKGmdtTAYVRD+ONOevc0PHAWqxBFSeu4o=";
+ };
+in
+buildSMPlugin rec {
+ pname = "SteamWorks";
+ version = "2023-04-02";
+
+ src = runCommand "source" {} ''
+ odir=$out/scripting/
+ mkdir -p $odir
+ cp -r ${src'}/Pawn/includes $odir/include
+ '';
+}