mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
parent
2fdbababe1
commit
9c0e68d9a8
@ -30,6 +30,7 @@
|
||||
, Cocoa
|
||||
, OpenGL
|
||||
, Security
|
||||
, buildClient ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -64,16 +65,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
curl
|
||||
freetype
|
||||
libGLU
|
||||
libnotify
|
||||
libogg
|
||||
libX11
|
||||
opusfile
|
||||
pcre
|
||||
python3
|
||||
SDL2
|
||||
sqlite
|
||||
] ++ lib.optionals buildClient ([
|
||||
freetype
|
||||
libGLU
|
||||
libogg
|
||||
opusfile
|
||||
SDL2
|
||||
wavpack
|
||||
ffmpeg
|
||||
x264
|
||||
@ -81,7 +82,14 @@ stdenv.mkDerivation rec {
|
||||
vulkan-headers
|
||||
glslang
|
||||
spirv-tools
|
||||
] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa OpenGL Security ];
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
libX11
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Carbon
|
||||
Cocoa
|
||||
OpenGL
|
||||
Security
|
||||
]);
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/engine/shared/storage.cpp \
|
||||
@ -90,11 +98,21 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cmakeFlags = [
|
||||
"-DAUTOUPDATE=OFF"
|
||||
"-DCLIENT=${if buildClient then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "run_tests";
|
||||
|
||||
postInstall = lib.optionalString (!buildClient) ''
|
||||
# DDNet's CMakeLists.txt automatically installs .desktop
|
||||
# shortcuts and icons for the client, even if the client
|
||||
# is not supposed to be built
|
||||
rm -rf $out/share/applications
|
||||
rm -rf $out/share/icons
|
||||
rm -rf $out/share/metainfo
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Teeworlds modification with a unique cooperative gameplay.";
|
||||
longDescription = ''
|
||||
|
@ -37681,6 +37681,7 @@ with pkgs;
|
||||
ddnet = callPackage ../games/ddnet {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa OpenGL Security;
|
||||
};
|
||||
ddnet-server = ddnet.override { buildClient = false; };
|
||||
|
||||
ddns-go = callPackage ../tools/networking/ddns-go { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user