2005-08-30 15:56:15 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2010-07-22 14:20:11 +02:00
|
|
|
stdenv.mkDerivation ({
|
2010-07-04 23:10:36 +02:00
|
|
|
name = "cpio-2.11";
|
|
|
|
|
2005-08-30 15:56:15 +02:00
|
|
|
src = fetchurl {
|
2010-07-04 23:10:36 +02:00
|
|
|
url = mirror://gnu/cpio/cpio-2.11.tar.bz2;
|
|
|
|
sha256 = "1gavgpzqwgkpagjxw72xgxz52y1ifgz0ckqh8g7cckz7jvyhp0mv";
|
2005-08-30 15:56:15 +02:00
|
|
|
};
|
2009-02-12 20:04:44 +01:00
|
|
|
|
2010-07-04 23:10:36 +02:00
|
|
|
doCheck = true;
|
2009-02-12 20:04:44 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.gnu.org/software/cpio/;
|
2010-07-04 23:10:36 +02:00
|
|
|
description = "GNU cpio, a program to create or extract from cpio archives";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' GNU cpio copies files into or out of a cpio or tar archive. The
|
|
|
|
archive can be another file on the disk, a magnetic tape, or a pipe.
|
|
|
|
|
|
|
|
GNU cpio supports the following archive formats: binary, old ASCII,
|
|
|
|
new ASCII, crc, HPUX binary, HPUX old ASCII, old tar, and POSIX.1
|
|
|
|
tar. The tar format is provided for compatability with the tar
|
|
|
|
program. By default, cpio creates binary format archives, for
|
|
|
|
compatibility with older cpio programs. When extracting from
|
|
|
|
archives, cpio automatically recognizes which kind of archive it is
|
|
|
|
reading and can read archives created on machines with a different
|
|
|
|
byte-order.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2009-02-12 20:04:44 +01:00
|
|
|
};
|
2005-08-30 15:56:15 +02:00
|
|
|
}
|
2010-07-22 14:20:11 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
(if stdenv.isLinux
|
|
|
|
then {}
|
|
|
|
else { patches = [ ./darwin-fix.patch ]; }))
|