mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
Merge pull request #286985 from skver0/libvirt-fix
libvirt: fix hardcoded modules path
This commit is contained in:
commit
4e9726b24e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user