diff options
author | yuuko <yuuko@partyvan.io> | 2024-08-29 21:51:04 -0700 |
---|---|---|
committer | yuuko <yuuko@partyvan.io> | 2024-08-29 21:51:04 -0700 |
commit | 56449e59d7aabd1c06fb67a51a1e129b55cb9270 (patch) | |
tree | 19f3faf805e9b6461a5940d1a050d13e5271ef55 /srcds-pkgs/plugins/socket.nix |
break out of system config
Diffstat (limited to 'srcds-pkgs/plugins/socket.nix')
-rw-r--r-- | srcds-pkgs/plugins/socket.nix | 27 |
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/ + ''; +} |