Minor fixes for git on darwin (libiconv and Security dependencies)

This commit is contained in:
Dan Peebles
2015-02-17 22:30:59 -05:00
parent a68484a0ac
commit a78d164b1e
3 changed files with 8 additions and 5 deletions
@@ -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
'';