summary refs log tree commit diff
path: root/pkgs/tools/archivers/cpio
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-07-04 21:10:36 +0000
committerLudovic Courtès <ludo@gnu.org>2010-07-04 21:10:36 +0000
commitcfae38d9f92e3e6e259e6ed9bd2f0aef5944815d (patch)
tree207233686aa6d1184e82c5083878f41ac070a409 /pkgs/tools/archivers/cpio
parent730d4c82f2b99157c2b8d4d60016fe0756069f7b (diff)
downloadnixpkgs-cfae38d9f92e3e6e259e6ed9bd2f0aef5944815d.tar
nixpkgs-cfae38d9f92e3e6e259e6ed9bd2f0aef5944815d.tar.gz
nixpkgs-cfae38d9f92e3e6e259e6ed9bd2f0aef5944815d.tar.bz2
nixpkgs-cfae38d9f92e3e6e259e6ed9bd2f0aef5944815d.tar.lz
nixpkgs-cfae38d9f92e3e6e259e6ed9bd2f0aef5944815d.tar.xz
nixpkgs-cfae38d9f92e3e6e259e6ed9bd2f0aef5944815d.tar.zst
nixpkgs-cfae38d9f92e3e6e259e6ed9bd2f0aef5944815d.zip
GNU cpio 2.11.
svn path=/nixpkgs/trunk/; revision=22458
Diffstat (limited to 'pkgs/tools/archivers/cpio')
-rw-r--r--pkgs/tools/archivers/cpio/default.nix38
1 files changed, 25 insertions, 13 deletions
diff --git a/pkgs/tools/archivers/cpio/default.nix b/pkgs/tools/archivers/cpio/default.nix
index 1700f03d7bd..25777e84311 100644
--- a/pkgs/tools/archivers/cpio/default.nix
+++ b/pkgs/tools/archivers/cpio/default.nix
@@ -1,24 +1,36 @@
 {stdenv, fetchurl}:
 
 stdenv.mkDerivation {
-  name = "cpio-2.9";
-  
+  name = "cpio-2.11";
+
   src = fetchurl {
-    url = mirror://gnu/cpio/cpio-2.9.tar.bz2;
-    sha256 = "01s7f9hg8kgpis96j99hgkiqgdy53pm7qi7bhm3fzx58jfk5z6mv";
+    url = mirror://gnu/cpio/cpio-2.11.tar.bz2;
+    sha256 = "1gavgpzqwgkpagjxw72xgxz52y1ifgz0ckqh8g7cckz7jvyhp0mv";
   };
 
-  patches = [
-    # Make it compile on GCC 4.3.
-    (fetchurl {
-      name = "cpio-2.9-gnu-inline.patch";
-      url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/app-arch/cpio/files/cpio-2.9-gnu-inline.patch?rev=1.1";
-      sha256 = "1167hrq64h9lh3qhgasm2rivfzkkgx6fik92b017qfa0q61ff8c3";
-    })
-  ];
+  doCheck = true;
 
   meta = {
     homepage = http://www.gnu.org/software/cpio/;
-    description = "A program to create or extract from cpio archives";
+    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;
   };
 }