mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 06:10:03 +00:00
linuxPackages.evdi: 1.14.15 -> 1.15.0
This commit is contained in:
@@ -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"
|
||||
|
||||
10
pkgs/os-specific/linux/evdi/fix-conftest-probes.patch
Normal file
10
pkgs/os-specific/linux/evdi/fix-conftest-probes.patch
Normal 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
|
||||
Reference in New Issue
Block a user