depot/third_party/nixpkgs/pkgs/development/libraries/gamenetworkingsockets/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

31 lines
786 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, ninja, go, protobuf, openssl }:
stdenv.mkDerivation rec {
pname = "GameNetworkingSockets";
version = "1.3.0";
src = fetchFromGitHub {
owner = "ValveSoftware";
repo = pname;
rev = "v${version}";
sha256 = "1d3k1ciw8c8rznxsr4bfmw0f0srblpflv8xqavhcxx2zwvaya78c";
};
nativeBuildInputs = [ cmake ninja go ];
cmakeFlags = [ "-G Ninja" ];
# tmp home for go
preBuild = "export HOME=\"$TMPDIR\"";
buildInputs = [ protobuf ];
propagatedBuildInputs = [ openssl ];
meta = with lib; {
description = "GameNetworkingSockets is a basic transport layer for games";
license = licenses.bsd3;
platforms = platforms.unix;
inherit (src.meta) homepage;
maintainers = [ maintainers.sternenseemann ];
};
}