nixpkgs/pkgs/tools/archivers/cpio/default.nix

28 lines
694 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
let
version = "2.13";
name = "cpio-${version}";
in stdenv.mkDerivation {
inherit name;
2013-03-20 22:01:36 +00:00
src = fetchurl {
url = "mirror://gnu/cpio/${name}.tar.bz2";
sha256 = "0vbgnhkawdllgnkdn6zn1f56fczwk0518krakz2qbwhxmv2vvdga";
};
2014-10-23 18:10:12 +00:00
preConfigure = if stdenv.isCygwin then ''
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
'' else null;
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://www.gnu.org/software/cpio/";
description = "A program to create or extract from cpio archives";
2018-08-15 18:20:08 +00:00
license = licenses.gpl3;
platforms = platforms.all;
priority = 6; # resolves collision with gnutar's "libexec/rmt"
};
}