mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
ddnet: format
This commit is contained in:
parent
2408c7f62d
commit
b761a3a403
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user