1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 11:10:03 +00:00

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