mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
mesa: fix libudev path
This commit is contained in:
parent
3c793aca79
commit
92b968863a
@ -50,7 +50,7 @@ stdenv.mkDerivation {
|
||||
] ++ optional stdenv.isLinux
|
||||
(substituteAll {
|
||||
src = ./dlopen-absolute-paths.diff;
|
||||
inherit udev;
|
||||
inherit (udev) libudev;
|
||||
});
|
||||
|
||||
postPatch = ''
|
||||
|
@ -7,7 +7,7 @@ index 666d015..4d7a9be 100644
|
||||
{
|
||||
if (!udev_handle) {
|
||||
- udev_handle = dlopen("libudev.so.1", RTLD_LOCAL | RTLD_LAZY);
|
||||
+ udev_handle = dlopen("@udev@/lib/libudev.so.1", RTLD_LOCAL | RTLD_LAZY);
|
||||
+ udev_handle = dlopen("@libudev@/lib/libudev.so.1", RTLD_LOCAL | RTLD_LAZY);
|
||||
|
||||
if (!udev_handle) {
|
||||
/* libudev.so.1 changed the return types of the two unref functions
|
||||
|
Loading…
Reference in New Issue
Block a user