aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/SteamWorks.nix
diff options
context:
space:
mode:
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
+ '';
+}