blob: 040e13025904e0258f50f8f2b8079ff406d58220 (
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
28
|
{ requireFile, unzip, buildSMPlugin, ed
, SM-neocurl-ext, SteamTools, SteamWorks, socket
}:
buildSMPlugin rec {
pname = "Updater";
version = "1.2.1";
src = requireFile {
url = "https://forums.alliedmods.net/attachment.php?attachmentid=183438";
name = "updater.zip";
hash = "sha256-eELedPMz7Em9LmTrNyJOt/v4Azdqap8h/bDhn0Bf19U=";
};
nativeBuildInputs = [ unzip ed ];
unpackCmd = "mkdir src; pushd src; unzip ${src}; popd";
buildInputs = [ SM-neocurl-ext SteamTools SteamWorks socket ];
postPatch = ''
ed scripting/updater.sp <<EOF
/"sm_updater"/s/2/1/
w
EOF
ed scripting/updater/plugins.sp <<EOF
/64] /s//64], /
w
EOF
'';
}
|