mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-08-17 11:10:57 +03:00
linuxPackages.evdi: fix build for Linux 4.19
The build fails with: ```console module/evdi_fb.c: In function 'evdifb_create': module/evdi_fb.c:427:21: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 427 | info->fbops = efbdev->fb_ops; | ^ ```` A resolution is to treat discard-qualifiers warnings as non-error. See https://hydra.nixos.org/build/239848621
This commit is contained in:
parent
43fbdc751b
commit
408ed815c6
@ -16,7 +16,11 @@ stdenv.mkDerivation rec {
|
|||||||
hash = "sha256-em3Y56saB7K3Wr31Y0boc38xGb57gdveN0Cstgy8y20=";
|
hash = "sha256-em3Y56saB7K3Wr31Y0boc38xGb57gdveN0Cstgy8y20=";
|
||||||
};
|
};
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = "-Wno-error -Wno-error=sign-compare";
|
env.NIX_CFLAGS_COMPILE = toString [
|
||||||
|
"-Wno-error"
|
||||||
|
"-Wno-error=discarded-qualifiers" # for Linux 4.19 compatibility
|
||||||
|
"-Wno-error=sign-compare"
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user