linuxPackages.evdi: 1.14.15 -> 1.15.0

This commit is contained in:
Edoardo Signorini
2026-08-24 10:09:38 +02:00
parent e76c1f2e92
commit aaaed30940
2 changed files with 17 additions and 7 deletions

View File

@@ -7,7 +7,6 @@
libdrm,
python3,
}:
let
python3WithLibs = python3.withPackages (
ps: with ps; [
@@ -17,19 +16,20 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "evdi";
version = "1.14.15";
version = "1.15.0";
src = fetchFromGitHub {
owner = "DisplayLink";
repo = "evdi";
tag = "v${finalAttrs.version}";
hash = "sha256-tms+UNws+oBmwLvDFaDSIa/bUdSpK+CADodbsip3tRg=";
hash = "sha256-CXF7PvmrPjjNoWXbWxEkFE/Sw4bO6YqDplPwF/OxhB0=";
};
prePatch = ''
substituteInPlace module/Makefile \
--replace-fail '/etc/os-release' '/dev/null'
'';
patches = [
# Fix feature probes on kernels with allocation profiling enabled.
# Upstream: https://github.com/DisplayLink/evdi/pull/592
./fix-conftest-probes.patch
];
env.CFLAGS = toString [
"-Wno-error"

View File

@@ -0,0 +1,10 @@
--- a/module/conftest.sh
+++ b/module/conftest.sh
@@ -32,6 +32,7 @@
done
}
CFLAGS=$(requote "$@")
+CFLAGS="$CFLAGS '-DKBUILD_MODNAME=\"conftest\"' '-DKBUILD_BASENAME=\"conftest\"'"
WORKDIR="$(mktemp -d)"
trap 'rm -rf "$WORKDIR"' EXIT