2024-05-13 21:24:10 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
# , git
|
|
|
|
# , libguestfs
|
|
|
|
# , nixosTests
|
|
|
|
# , rpm
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpio";
|
|
|
|
version = "2.15";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/cpio/cpio-${version}.tar.bz2";
|
|
|
|
hash = "sha256-k3YQuXwymh7JJoVT+3gAN7z/8Nz/6XJevE/ZwaqQdds=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
separateDebugInfo = true;
|
|
|
|
|
|
|
|
preConfigure = lib.optionalString stdenv.isCygwin ''
|
|
|
|
sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,'
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
# passthru.tests = {
|
|
|
|
# inherit libguestfs rpm;
|
|
|
|
# git = git.tests.withInstallCheck;
|
|
|
|
# initrd = nixosTests.systemd-initrd-simple;
|
|
|
|
# };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.gnu.org/software/cpio/";
|
|
|
|
description = "A program to create or extract from cpio archives";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
priority = 6; # resolves collision with gnutar's "libexec/rmt"
|
|
|
|
mainProgram = "cpio";
|
|
|
|
};
|
|
|
|
}
|