gnutar: patch to build on darwin

This commit is contained in:
Eric Seidel
2015-04-06 20:56:50 -07:00
parent 6c9b529dd3
commit e29bf6e26e
2 changed files with 118 additions and 1 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "gnutar-${version}";
@@ -9,6 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "0qkm2k9w8z91hwj8rffpjj9v1vhpiriwz4cdj36k9vrgc3hbzr30";
};
patches = stdenv.lib.optional stdenv.isDarwin ./gnutar-1.28-darwin.patch;
buildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
# May have some issues with root compilation because the bootstrap tool
# cannot be used as a login shell for now.
FORCE_UNSAFE_CONFIGURE = stdenv.lib.optionalString (stdenv.system == "armv7l-linux" || stdenv.isSunOS) "1";