From 3349cfc4dfd02fbb58d3219da0b41f1d6c70721c Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 6 May 2023 17:03:46 +0100 Subject: [PATCH] cpio: add some key reverse dependencies to passthru.tests --- pkgs/tools/archivers/cpio/default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/archivers/cpio/default.nix b/pkgs/tools/archivers/cpio/default.nix index da3a4a2114c9..0fe726f09977 100644 --- a/pkgs/tools/archivers/cpio/default.nix +++ b/pkgs/tools/archivers/cpio/default.nix @@ -1,4 +1,13 @@ -{ lib, stdenv, fetchurl }: +{ lib +, stdenv +, fetchurl + +# for passthru.tests +, git +, libguestfs +, nixosTests +, rpm +}: stdenv.mkDerivation rec { pname = "cpio"; @@ -17,6 +26,12 @@ stdenv.mkDerivation rec { 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";