Merge pull request #286985 from skver0/libvirt-fix

libvirt: fix hardcoded modules path
This commit is contained in:
Bernardo Meurer 2024-02-09 12:31:52 -05:00 committed by GitHub
commit 4e9726b24e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,6 +250,9 @@ stdenv.mkDerivation rec {
substituteInPlace src/util/virpolkit.h \
--replace '"/usr/bin/pkttyagent"' '"${if isLinux then polkit.bin else "/usr"}/bin/pkttyagent"'
substituteInPlace src/util/virpci.c \
--replace '/lib/modules' '${if isLinux then "/run/current-system/kernel-modules" else ""}/lib/modules'
patchShebangs .
''
+ (lib.concatStringsSep "\n" (lib.mapAttrsToList patchBuilder overrides));