2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ninja, go, protobuf, openssl }:
|
2020-12-17 03:19:25 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "GameNetworkingSockets";
|
2021-05-31 14:37:42 +02:00
|
|
|
version = "1.3.0";
|
2020-12-17 03:19:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValveSoftware";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-31 14:37:42 +02:00
|
|
|
sha256 = "1d3k1ciw8c8rznxsr4bfmw0f0srblpflv8xqavhcxx2zwvaya78c";
|
2020-12-17 03:19:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja go ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-G Ninja" ];
|
|
|
|
|
|
|
|
# tmp home for go
|
|
|
|
preBuild = "export HOME=\"$TMPDIR\"";
|
|
|
|
|
2021-10-17 14:07:55 +02:00
|
|
|
buildInputs = [ protobuf ];
|
|
|
|
propagatedBuildInputs = [ openssl ];
|
2020-12-17 03:19:25 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-12-17 03:19:25 +01:00
|
|
|
description = "GameNetworkingSockets is a basic transport layer for games";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|