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