linuxPackages.evdi: Fix flags

Since #402198 kernel modules are no longer built with wrapped compilers.

Firstly, NIX_CFLAGS_COMPILE is no longer effective, so we change that to
CFLAGS, which is used in the Makefile for evdi.

Secondly, we still need to use the wrapped compiler for userspace stuff,
so separate that out in postBuild.

Fixes #437311

authored by dramforever and committed by Alyssa Ross 3cecdee8 46d84a2b

+7 -1
+7 -1
pkgs/os-specific/linux/evdi/default.nix
··· 26 26 hash = "sha256-xB3AHg9t/X8vw5p7ohFQ+WuMjb1P8DAP3pROiwWkVPs="; 27 27 }; 28 28 29 - env.NIX_CFLAGS_COMPILE = toString [ 29 + env.CFLAGS = toString [ 30 30 "-Wno-error" 31 31 "-Wno-error=discarded-qualifiers" # for Linux 4.19 compatibility 32 32 "-Wno-error=sign-compare" 33 33 ]; 34 + 35 + postBuild = '' 36 + # Don't use makeFlags for userspace stuff 37 + make library pyevdi 38 + ''; 34 39 35 40 nativeBuildInputs = kernel.moduleBuildDependencies; 36 41 ··· 43 48 makeFlags = kernelModuleMakeFlags ++ [ 44 49 "KVER=${kernel.modDirVersion}" 45 50 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" 51 + "module" 46 52 ]; 47 53 48 54 hardeningDisable = [