1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/archivers/cpio/default.nix

28 lines
694 B
Nix
Raw Normal View History

{ 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 19:10:12 +01:00
preConfigure = if stdenv.isCygwin then ''
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
'' else null;
enableParallelBuilding = true;
2018-08-15 19:20:08 +01:00
meta = with stdenv.lib; {
homepage = https://www.gnu.org/software/cpio/;
description = "A program to create or extract from cpio archives";
2018-08-15 19:20:08 +01:00
license = licenses.gpl3;
platforms = platforms.all;
priority = 6; # resolves collision with gnutar's "libexec/rmt"
};
}