libvirt: Fix incorrect path to pkttyagent

This commit is contained in:
Andrew Marshall 2022-04-22 09:02:01 -04:00 committed by Bjørn Forsman
parent d030ffdeb6
commit 99c5e10c0b

View file

@ -26,6 +26,7 @@
, ninja
, perl
, perlPackages
, polkit
, pkg-config
, pmutils
, python3
@ -227,6 +228,9 @@ stdenv.mkDerivation rec {
--replace "gmake" "make" \
--replace "ggrep" "grep"
substituteInPlace src/util/virpolkit.h \
--replace '"/usr/bin/pkttyagent"' '"${polkit.bin}/bin/pkttyagent"'
patchShebangs .
''
+ (lib.concatStringsSep "\n" (lib.mapAttrsToList patchBuilder overrides));