From 3575b82e679c0e1f466c2f721c00432a7e694dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kemetm=C3=BCller?= Date: Sun, 20 May 2018 04:03:09 +0200 Subject: [PATCH] gitAndTools.git-dit: Fix darwin build --- .../version-management/git-and-tools/default.nix | 4 +++- .../version-management/git-and-tools/git-dit/default.nix | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 13b861d0a9ed..99b6b5313709 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -67,7 +67,9 @@ rec { git-crypt = callPackage ./git-crypt { }; - git-dit = callPackage ./git-dit { }; + git-dit = callPackage ./git-dit { + inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; + }; git-extras = callPackage ./git-extras { }; diff --git a/pkgs/applications/version-management/git-and-tools/git-dit/default.nix b/pkgs/applications/version-management/git-and-tools/git-dit/default.nix index 41096441b8e7..654576a29e80 100644 --- a/pkgs/applications/version-management/git-and-tools/git-dit/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-dit/default.nix @@ -8,6 +8,10 @@ , perl , pkgconfig , rustPlatform +, curl +, libiconv +, CoreFoundation +, Security }: with rustPlatform; @@ -35,6 +39,11 @@ buildRustPackage rec { openssl libssh zlib + ] ++ stdenv.lib.optionals (stdenv.isDarwin) [ + curl + libiconv + CoreFoundation + Security ]; meta = with stdenv.lib; {