2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ninja, go, protobuf, openssl }:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "GameNetworkingSockets";
|
|
|
|
version = "1.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValveSoftware";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1zghyc4liml8gzxflyh5gp6zi11ny6ng5hv9wyqvp32rfx221gc6";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja go ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-G Ninja" ];
|
|
|
|
|
|
|
|
# tmp home for go
|
|
|
|
preBuild = "export HOME=\"$TMPDIR\"";
|
|
|
|
|
|
|
|
buildInputs = [ protobuf openssl ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
# build failure is resolved on master, remove at next release
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
description = "GameNetworkingSockets is a basic transport layer for games";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|