Unverified Commit b761a3a4 authored by Austin Horstman's avatar Austin Horstman
Browse files

ddnet: format

parent 2408c7f6
Loading
Loading
Loading
Loading
+72 −61
Original line number Diff line number Diff line
{ 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,13 +64,16 @@ stdenv.mkDerivation rec {
    gtest
  ];

  buildInputs = [
  buildInputs =
    [
      curl
      libnotify
      pcre
      python3
      sqlite
  ] ++ lib.optionals buildClient ([
    ]
    ++ lib.optionals buildClient (
      [
        freetype
        libGLU
        libogg
@@ -82,14 +86,17 @@ stdenv.mkDerivation rec {
        vulkan-headers
        glslang
        spirv-tools
  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
      ]
      ++ lib.optionals stdenv.hostPlatform.isLinux [
        libX11
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
      ]
      ++ 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";
  };
}