ddnet: format

This commit is contained in:
Austin Horstman 2024-11-13 08:27:46 -06:00
parent 2408c7f62d
commit b761a3a403
No known key found for this signature in database

View File

@ -1,36 +1,37 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, cargo fetchFromGitHub,
, cmake cargo,
, ninja cmake,
, pkg-config ninja,
, rustPlatform pkg-config,
, rustc rustPlatform,
, curl rustc,
, freetype curl,
, libGLU freetype,
, libnotify libGLU,
, libogg libnotify,
, libX11 libogg,
, opusfile libX11,
, pcre opusfile,
, python3 pcre,
, SDL2 python3,
, sqlite SDL2,
, wavpack sqlite,
, ffmpeg wavpack,
, x264 ffmpeg,
, vulkan-headers x264,
, vulkan-loader vulkan-headers,
, glslang vulkan-loader,
, spirv-tools glslang,
, gtest spirv-tools,
, Carbon gtest,
, Cocoa Carbon,
, OpenGL Cocoa,
, Security OpenGL,
, buildClient ? true Security,
buildClient ? true,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -63,33 +64,39 @@ stdenv.mkDerivation rec {
gtest gtest
]; ];
buildInputs = [ buildInputs =
curl [
libnotify curl
pcre libnotify
python3 pcre
sqlite python3
] ++ lib.optionals buildClient ([ sqlite
freetype ]
libGLU ++ lib.optionals buildClient (
libogg [
opusfile freetype
SDL2 libGLU
wavpack libogg
ffmpeg opusfile
x264 SDL2
vulkan-loader wavpack
vulkan-headers ffmpeg
glslang x264
spirv-tools vulkan-loader
] ++ lib.optionals stdenv.hostPlatform.isLinux [ vulkan-headers
libX11 glslang
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ spirv-tools
Carbon ]
Cocoa ++ lib.optionals stdenv.hostPlatform.isLinux [
OpenGL libX11
Security ]
]); ++ lib.optionals stdenv.hostPlatform.isDarwin [
Carbon
Cocoa
OpenGL
Security
]
);
postPatch = '' postPatch = ''
substituteInPlace src/engine/shared/storage.cpp \ substituteInPlace src/engine/shared/storage.cpp \
@ -130,7 +137,11 @@ stdenv.mkDerivation rec {
''; '';
homepage = "https://ddnet.org"; homepage = "https://ddnet.org";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ sirseruju lom ncfavier ]; maintainers = with maintainers; [
sirseruju
lom
ncfavier
];
mainProgram = "DDNet"; mainProgram = "DDNet";
}; };
} }