depot/pkgs/development/libraries/gamenetworkingsockets/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

31 lines
786 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, ninja, go, protobuf, openssl }:
stdenv.mkDerivation rec {
pname = "GameNetworkingSockets";
version = "1.4.1";
src = fetchFromGitHub {
owner = "ValveSoftware";
repo = pname;
rev = "v${version}";
sha256 = "12741wmpvy7mcvqqmjg4a7ph75rwliwgclhk4imjijqf2qkvsphd";
};
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 ];
};
}