Files
nixpkgs/pkgs/by-name/yo/yojimbo/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
premake5,
doxygen,
libsodium,
mbedtls_2,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "yojimbo";
version = "1.2.3";
src = fetchFromGitHub {
owner = "mas-bandwidth";
repo = "yojimbo";
tag = "v${finalAttrs.version}";
sha256 = "sha256-GMYkWQTwHm7fGRSTIt2phv01CjEcw0l4iPQD4uTQ5yM=";
};
nativeBuildInputs = [
premake5
doxygen
];
propagatedBuildInputs = [
libsodium
mbedtls_2
];
patches = [
# https://github.com/mas-bandwidth/serialize/pull/6
./silence-uninitialized-warning.patch
];
postBuild = ''
doxygen doxygen.config
'';
installPhase = ''
install -Dm755 -t $out/lib bin/libyojimbo.a
cp -r -t $out include
mkdir -p $out/share/doc/yojimbo
cp -r docs/html $out/share/doc/yojimbo
'';
doCheck = true;
enableParallelBuilding = true;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Network library for client/server games with dedicated servers";
longDescription = ''
yojimbo is a network library for client/server games with dedicated servers.
It's designed around the networking requirements of competitive multiplayer games like first person shooters.
As such it provides a time critical networking layer on top of UDP, with a client/server architecture supporting up to 64 players per-dedicated server instance.
'';
homepage = "https://github.com/mas-bandwidth/yojimbo";
license = licenses.bsd3;
platforms = platforms.x86_64;
maintainers = [ ];
};
})