mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
GNU cpio: Add fix for Darwin.
svn path=/nixpkgs/trunk/; revision=22705
This commit is contained in:
parent
ed3640e9de
commit
8115040c08
15
pkgs/tools/archivers/cpio/darwin-fix.patch
Normal file
15
pkgs/tools/archivers/cpio/darwin-fix.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
Fix Darwin builds.
|
||||
|
||||
From <http://git.savannah.gnu.org/cgit/cpio.git/commit/?id=3a7a1820d4cecbd77c7b74c785af5942510bf080>.
|
||||
See also <http://lists.gnu.org/archive/html/bug-cpio/2010-07/msg00001.html>.
|
||||
|
||||
diff --git a/src/filetypes.h b/src/filetypes.h
|
||||
index f80faab..81f0c32 100644
|
||||
--- a/src/filetypes.h
|
||||
+++ b/src/filetypes.h
|
||||
@@ -81,5 +81,3 @@
|
||||
#ifndef S_ISLNK
|
||||
#define lstat stat
|
||||
#endif
|
||||
-int lstat ();
|
||||
-int stat ();
|
|
@ -1,6 +1,6 @@
|
|||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation ({
|
||||
name = "cpio-2.11";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -34,3 +34,9 @@ stdenv.mkDerivation {
|
|||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
(if stdenv.isLinux
|
||||
then {}
|
||||
else { patches = [ ./darwin-fix.patch ]; }))
|
||||
|
|
Loading…
Reference in a new issue