nixpkgs/pkgs/tools/archivers/cpio/default.nix
Peter Simons 6cffff9de1 pkgs/tools/archivers/cpio: revert to version 2.9
The latest version, 2.11, doesn't compile on Darwin. The build
expression for 2.11 is still still available in "latest.nix".

svn path=/nixpkgs/trunk/; revision=22923
2010-08-03 10:55:58 +00:00

25 lines
664 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "cpio-2.9";
src = fetchurl {
url = mirror://gnu/cpio/cpio-2.9.tar.bz2;
sha256 = "01s7f9hg8kgpis96j99hgkiqgdy53pm7qi7bhm3fzx58jfk5z6mv";
};
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";
})
];
meta = {
homepage = http://www.gnu.org/software/cpio/;
description = "A program to create or extract from cpio archives";
};
}