aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/socket.nix
diff options
context:
space:
mode:
Diffstat (limited to 'srcds-pkgs/plugins/socket.nix')
-rw-r--r--srcds-pkgs/plugins/socket.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/srcds-pkgs/plugins/socket.nix b/srcds-pkgs/plugins/socket.nix
new file mode 100644
index 0000000..5a7cdc2
--- /dev/null
+++ b/srcds-pkgs/plugins/socket.nix
@@ -0,0 +1,27 @@
+{ buildSMPlugin, fetchFromGitHub, runCommand }:
+let
+ src' = fetchFromGitHub {
+ owner = "nefarius";
+ repo = "sm-ext-socket";
+ rev = "ed6bf7a12bd3f801610592301e12062b367fa27b";
+ hash = "sha256-M13Nt58tlXXBO1fB2Y3vQLyD4Wlzrwd6mHWSf5JTUwY=";
+ };
+ /*
+ socket.src = fetchzip {
+ url = "http://forums.alliedmods.net/attachment.php?attachmentid=83286";
+ extension = "zip";
+ stripRoot = false;
+ hash = "sha256-EDCEyzSynz8Uotgx6xVmEiGgXf1FBtOzW1YNfsOad+U=";
+ };
+ */
+in
+buildSMPlugin rec {
+ pname = "socket";
+ version = "2018-11-14";
+
+ src = runCommand "source" {} ''
+ odir=$out/scripting/include
+ mkdir -p $odir
+ cp ${src'}/socket.inc $odir/
+ '';
+}