Unverified Commit 711aab6d authored by seth's avatar seth
Browse files

containerd: add cross compilation tests

parent 3f48f68e
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  pkgsCross,
  btrfs-progs,
  buildGoModule,
  fetchFromGitHub,
@@ -69,9 +70,18 @@ buildGoModule rec {
  '';

  passthru = {
    tests = {
    tests = lib.optionalAttrs stdenv.hostPlatform.isLinux (
      {
        cross =
          let
            systemString = if stdenv.buildPlatform.isAarch64 then "gnu64" else "aarch64-multiplatform";
          in
          pkgsCross.${systemString}.containerd;

        inherit (nixosTests) docker;
    } // kubernetes.tests;
      }
      // kubernetes.tests
    );

    updateScript = nix-update-script { };
  };