Unverified Commit 0b3e980d authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

termscp: nixfmt

parent 18e6680c
Loading
Loading
Loading
Loading
+31 −25
Original line number Diff line number Diff line
{ lib
, stdenv
, dbus
, fetchFromGitHub
, openssl
, pkg-config
, rustPlatform
, AppKit
, Cocoa
, Foundation
, Security
, samba
{
  lib,
  stdenv,
  dbus,
  fetchFromGitHub,
  openssl,
  pkg-config,
  rustPlatform,
  AppKit,
  Cocoa,
  Foundation,
  Security,
  samba,
}:

rustPlatform.buildRustPackage rec {
@@ -29,11 +30,13 @@ rustPlatform.buildRustPackage rec {
    pkg-config
  ];

  buildInputs = [
  buildInputs =
    [
      dbus
      openssl
      samba
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      AppKit
      Cocoa
      Foundation
@@ -43,9 +46,12 @@ rustPlatform.buildRustPackage rec {
  # Needed to get openssl-sys to use pkg-config.
  OPENSSL_NO_VENDOR = 1;

  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isDarwin [
    "-framework" "AppKit"
  ]);
  env.NIX_CFLAGS_COMPILE = toString (
    lib.optionals stdenv.hostPlatform.isDarwin [
      "-framework"
      "AppKit"
    ]
  );

  # Requires network access
  doCheck = false;