diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 06:24:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 06:24:00 -0500 |
commit | d77fc69768c7b96311a20d2edffe187ebe97dc68 (patch) | |
tree | d861d2f64f1649f174b7c039067e00aeadc9116d | |
parent | 428bb7d2b8bb7e22e3f41be2b0c05c42a0581669 (diff) | |
download | nixlib-d77fc69768c7b96311a20d2edffe187ebe97dc68.tar nixlib-d77fc69768c7b96311a20d2edffe187ebe97dc68.tar.gz nixlib-d77fc69768c7b96311a20d2edffe187ebe97dc68.tar.bz2 nixlib-d77fc69768c7b96311a20d2edffe187ebe97dc68.tar.lz nixlib-d77fc69768c7b96311a20d2edffe187ebe97dc68.tar.xz nixlib-d77fc69768c7b96311a20d2edffe187ebe97dc68.tar.zst nixlib-d77fc69768c7b96311a20d2edffe187ebe97dc68.zip |
syncthing: fix build on darwin
-rw-r--r-- | pkgs/applications/networking/syncthing/default.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/networking/syncthing/default.nix b/pkgs/applications/networking/syncthing/default.nix index 516acab10f8b..0fd3a5ca2801 100644 --- a/pkgs/applications/networking/syncthing/default.nix +++ b/pkgs/applications/networking/syncthing/default.nix @@ -1,4 +1,4 @@ -{ buildGoModule, stdenv, lib, procps, fetchFromGitHub }: +{ buildGoModule, stdenv, lib, procps, fetchFromGitHub, libobjc, CoreServices, Foundation }: let common = { stname, target, postInstall ? "" }: @@ -15,6 +15,8 @@ let modSha256 = "1qq0979cm42wd3scy3blyi0hg67mkghis9r5rn2x1lqi2b982wfh"; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libobjc CoreServices Foundation ]; + patches = [ ./add-stcli-target.patch ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 03bb393a8707..aa5a3ad048c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22069,7 +22069,10 @@ in syncplay = python3.pkgs.callPackage ../applications/networking/syncplay { }; - inherit (callPackages ../applications/networking/syncthing { }) + inherit (callPackages ../applications/networking/syncthing { + inherit (darwin) libobjc; + inherit (darwin.apple_sdk.frameworks) CoreServices Foundation; + }) syncthing syncthing-cli syncthing-discovery |