From a78d164b1e6c10f39c87b8907685a711a6de338c Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Tue, 17 Feb 2015 22:30:59 -0500 Subject: [PATCH] Minor fixes for git on darwin (libiconv and Security dependencies) --- .../version-management/git-and-tools/default.nix | 3 ++- .../version-management/git-and-tools/git/default.nix | 4 ++-- .../version-management/git-and-tools/hub/default.nix | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 523e121b4711..a313a566c4e8 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -8,7 +8,7 @@ let gitBase = lib.makeOverridable (import ./git) { inherit fetchurl stdenv curl openssl zlib expat perl python gettext gnugrep asciidoc xmlto docbook2x docbook_xsl docbook_xml_dtd_45 libxslt cpio tcl - tk makeWrapper subversionClient gzip; + tk makeWrapper subversionClient gzip libiconv; texinfo = texinfo5; svnSupport = false; # for git-svn support guiSupport = false; # requires tcl/tk @@ -73,6 +73,7 @@ rec { hub = import ./hub { inherit go; inherit stdenv fetchgit; + inherit (darwin) Security; }; gitFastExport = import ./fast-export { diff --git a/pkgs/applications/version-management/git-and-tools/git/default.nix b/pkgs/applications/version-management/git-and-tools/git/default.nix index 809a369d09eb..d31edb04bbe3 100644 --- a/pkgs/applications/version-management/git-and-tools/git/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git/default.nix @@ -1,6 +1,6 @@ { fetchurl, stdenv, curl, openssl, zlib, expat, perl, python, gettext, cpio, gnugrep, gzip , asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45 -, libxslt, tcl, tk, makeWrapper +, libxslt, tcl, tk, makeWrapper, libiconv , svnSupport, subversionClient, perlLibs, smtpPerlLibs , guiSupport , withManual ? true @@ -31,7 +31,7 @@ stdenv.mkDerivation { ./ssl-cert-file.patch ]; - buildInputs = [curl openssl zlib expat gettext cpio makeWrapper] + buildInputs = [curl openssl zlib expat gettext cpio makeWrapper libiconv] ++ stdenv.lib.optionals withManual [ asciidoc texinfo xmlto docbook2x docbook_xsl docbook_xml_dtd_45 libxslt ] ++ stdenv.lib.optionals guiSupport [tcl tk]; diff --git a/pkgs/applications/version-management/git-and-tools/hub/default.nix b/pkgs/applications/version-management/git-and-tools/hub/default.nix index be53a429e7b9..158749227254 100644 --- a/pkgs/applications/version-management/git-and-tools/hub/default.nix +++ b/pkgs/applications/version-management/git-and-tools/hub/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, go }: +{ stdenv, fetchgit, go, Security }: stdenv.mkDerivation rec { name = "hub-${version}"; @@ -10,11 +10,13 @@ stdenv.mkDerivation rec { sha256 = "1f6r8vlwnmqmr85drfv24vhqx1aacz6s83c2i804v9997n0wrwfm"; }; - buildInputs = [ go ]; + + buildInputs = [ go ] ++ stdenv.lib.optional stdenv.isDarwin Security; phases = [ "unpackPhase" "buildPhase" "installPhase" ]; buildPhase = '' + patchShebangs . sh script/build '';