libcbor: add some key reverse dependencies to passthru.tests

This commit is contained in:
Robert Scott 2022-12-31 19:51:35 +00:00
parent eaa0e34921
commit 5732c263b7

View File

@ -1,4 +1,15 @@
{ lib, stdenv, fetchFromGitHub, cmake, cmocka }:
{ lib
, stdenv
, fetchFromGitHub
, cmake
, cmocka
# for passthru.tests
, libfido2
, mysql80
, openssh
, systemd
}:
stdenv.mkDerivation rec {
pname = "libcbor";
@ -18,6 +29,15 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" "-DBUILD_SHARED_LIBS=on" ];
passthru.tests = {
inherit libfido2 mysql80;
openssh = (openssh.override { withFIDO = true; });
systemd = (systemd.override {
withFido2 = true;
withCryptsetup = true;
});
};
meta = with lib; {
description = "CBOR protocol implementation for C and others";
homepage = "https://github.com/PJK/libcbor";