blob: 5f283c95344d698a413aac41e0b0c1d2693b2716 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ fetchFromGitHub, buildSMPlugin }:
buildSMPlugin rec {
pname = "smlib";
version = "2022-01-11";
src = fetchFromGitHub {
owner = "bcserv";
repo = pname;
# transitional_syntax branch
rev = "2c14acb85314e25007f5a61789833b243e7d0cab";
hash = "sha256-yonYBCaEZGjbxhKvQ2NNVBpiUqyMxuchEgL+bsWomuo=";
};
postPatch = ''
sed -i \
'/#include <sdktools_entinput>/a #include <sdktools_variant_t>' \
scripting/include/smlib/entities.inc
'';
# technically unnecessary as buildPhase simply won't find anything to build
dontBuild = true;
}
|