displaylink: fix tests eval

Before the change `tests` eval failed for non-existent `displaylink`
nixos test as:

    $ nix build --no-link -f. displaylink.tests
    error: attribute 'displaylink' missing
               72|   passthru = {
               73|     tests = {
                 |              ^
               74|       inherit (nixosTests) displaylink;

As far as I can see `displaylink` was never added to `nixos/tests/all-tests.nix`.
This commit is contained in:
Sergei Trofimovich 2023-12-28 21:43:57 +00:00
parent ae9397e83b
commit f6d6206843

View file

@ -8,7 +8,6 @@
, makeWrapper , makeWrapper
, requireFile , requireFile
, substituteAll , substituteAll
, nixosTests
}: }:
let let
@ -69,12 +68,6 @@ stdenv.mkDerivation rec {
dontStrip = true; dontStrip = true;
dontPatchELF = true; dontPatchELF = true;
passthru = {
tests = {
inherit (nixosTests) displaylink;
};
};
meta = with lib; { meta = with lib; {
description = "DisplayLink DL-5xxx, DL-41xx and DL-3x00 Driver for Linux"; description = "DisplayLink DL-5xxx, DL-41xx and DL-3x00 Driver for Linux";
homepage = "https://www.displaylink.com/"; homepage = "https://www.displaylink.com/";