flake: fix lanzaboote-tool → lzbt-systemd

As we moved to abstraction for backends, we have to update our flake code
This commit is contained in:
Raito Bezarius 2023-09-14 11:41:29 +02:00
parent eba963b6f1
commit f9cb4257c7
1 changed files with 4 additions and 2 deletions

View File

@ -165,8 +165,10 @@
stub = stubCrane.package; stub = stubCrane.package;
fatStub = fatStubCrane.package; fatStub = fatStubCrane.package;
# TODO: when we will have more backends
# let's generalize this properly.
toolCrane = buildRustApp { toolCrane = buildRustApp {
pname = "lanzaboote-tool"; pname = "lzbt-systemd";
src = ./rust/tool; src = ./rust/tool;
extraArgs = { extraArgs = {
TEST_SYSTEMD = pkgs.systemd; TEST_SYSTEMD = pkgs.systemd;
@ -187,7 +189,7 @@
# Clean PATH to only contain what we need to do objcopy. Also # Clean PATH to only contain what we need to do objcopy. Also
# tell lanzatool where to find our UEFI binaries. # tell lanzatool where to find our UEFI binaries.
makeWrapper ${tool}/bin/lzbt $out/bin/lzbt \ makeWrapper ${tool}/bin/lzbt-systemd $out/bin/lzbt \
--set PATH ${lib.makeBinPath [ pkgs.binutils-unwrapped pkgs.sbsigntool ]} \ --set PATH ${lib.makeBinPath [ pkgs.binutils-unwrapped pkgs.sbsigntool ]} \
--set LANZABOOTE_STUB ${stub}/bin/lanzaboote_stub.efi --set LANZABOOTE_STUB ${stub}/bin/lanzaboote_stub.efi
''; '';