lol
at 24.05-pre 42 lines 897 B view raw
1{ lib 2, stdenv 3, fetchurl 4 5# for passthru.tests 6, git 7, libguestfs 8, nixosTests 9, rpm 10}: 11 12stdenv.mkDerivation rec { 13 pname = "cpio"; 14 version = "2.14"; 15 16 src = fetchurl { 17 url = "mirror://gnu/cpio/cpio-${version}.tar.bz2"; 18 sha256 = "/NwV1g9yZ6b8fvzWudt7bIlmxPL7u5ZMJNQTNv0/LBI="; 19 }; 20 21 separateDebugInfo = true; 22 23 preConfigure = lib.optionalString stdenv.isCygwin '' 24 sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,' 25 ''; 26 27 enableParallelBuilding = true; 28 29 passthru.tests = { 30 inherit libguestfs rpm; 31 git = git.tests.withInstallCheck; 32 initrd = nixosTests.systemd-initrd-simple; 33 }; 34 35 meta = with lib; { 36 homepage = "https://www.gnu.org/software/cpio/"; 37 description = "A program to create or extract from cpio archives"; 38 license = licenses.gpl3; 39 platforms = platforms.all; 40 priority = 6; # resolves collision with gnutar's "libexec/rmt" 41 }; 42}