aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/socket.nix
blob: 5a7cdc20a2f6e31c5a27fa274606c63df198c75b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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/
  '';
}