From 7bf6d9cbdf98902c0f5dbb724e36a924e53d3b37 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 12 Feb 2009 19:04:44 +0000 Subject: [PATCH] * cpio: apply a patch from Gentoo to make it build on GCC 4.3. svn path=/nixpkgs/branches/stdenv-updates/; revision=14046 --- pkgs/tools/archivers/cpio/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/tools/archivers/cpio/default.nix b/pkgs/tools/archivers/cpio/default.nix index cb9ee9e7f067..cc00857f33dd 100644 --- a/pkgs/tools/archivers/cpio/default.nix +++ b/pkgs/tools/archivers/cpio/default.nix @@ -2,8 +2,22 @@ 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 { + 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"; + }; }