Commit 9df4441b authored by misuzu's avatar misuzu
Browse files

netbird: format using nixpkgs-fmt

parent cafa2f02
Loading
Loading
Loading
Loading
+44 −28
Original line number Diff line number Diff line
{ stdenv, lib, nixosTests, buildGoModule, fetchFromGitHub, installShellFiles
{ stdenv
, lib
, nixosTests
, buildGoModule
, fetchFromGitHub
, installShellFiles
, pkg-config
, gtk3, libayatana-appindicator, libX11, libXcursor, libXxf86vm
, Cocoa, IOKit, Kernel, UserNotifications, WebKit
, ui ? false }:
, gtk3
, libayatana-appindicator
, libX11
, libXcursor
, libXxf86vm
, Cocoa
, IOKit
, Kernel
, UserNotifications
, WebKit
, ui ? false
}:
let
  modules = if ui then {
  modules =
    if ui then {
      "client/ui" = "netbird-ui";
    } else {
      client = "netbird";
@@ -61,7 +76,8 @@ buildGoModule rec {
      --replace 'unix:///var/run/netbird.sock' 'unix:///var/run/netbird/sock'
  '';

  postInstall = lib.concatStringsSep "\n" (lib.mapAttrsToList
  postInstall = lib.concatStringsSep "\n"
    (lib.mapAttrsToList
      (module: binary: ''
        mv $out/bin/${lib.last (lib.splitString "/" module)} $out/bin/${binary}
      '' + lib.optionalString (!ui) ''