mkosi: fix ukify path

could also be passed by --tools-tree

Co-authored-by: Malte Poll <mp@edgeless.systems>
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-08-21 15:09:35 +02:00
parent 82233e8120
commit 49942168e2

View File

@ -39,6 +39,8 @@ buildPythonApplication rec {
patchPhase = lib.optionalString stdenv.isLinux ''
substituteInPlace mkosi/run.py --replace \
'ctypes.util.find_library("c")' "'${stdenv.cc.libc}/lib/libc.so.6'"
substituteInPlace mkosi/__init__.py --replace \
'/usr/lib/systemd/ukify' "${systemdForMkosi}/lib/systemd/ukify"
'';
nativeBuildInputs = [