10 python3WithLibs = python3.withPackages (ps: with ps; [
14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
19 owner = "DisplayLink";
21 rev = "refs/tags/v${finalAttrs.version}";
22 hash = "sha256-/XIWacrsB7qBqlLUwIGuDdahvt2dAwiK7dauFaYh7lU=";
25 env.NIX_CFLAGS_COMPILE = toString [
27 "-Wno-error=discarded-qualifiers" # for Linux 4.19 compatibility
28 "-Wno-error=sign-compare"
31 nativeBuildInputs = kernel.moduleBuildDependencies;
39 makeFlags = kernel.makeFlags ++ [
40 "KVER=${kernel.modDirVersion}"
41 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
44 hardeningDisable = [ "format" "pic" "fortify" ];
48 install -Dm755 module/evdi.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/gpu/drm/evdi/evdi.ko
49 install -Dm755 library/libevdi.so $out/lib/libevdi.so
53 enableParallelBuilding = true;
56 broken = kernel.kernelOlder "4.19";
57 changelog = "https://github.com/DisplayLink/evdi/releases/tag/v${finalAttrs.version}";
58 description = "Extensible Virtual Display Interface";
59 homepage = "https://www.displaylink.com/";
60 license = with licenses; [ lgpl21Only gpl2Only ];
62 platforms = platforms.linux;