11 rustPlatform.buildRustPackage rec {
12 pname = "lanzaboote-tool";
15 src = fetchFromGitHub {
16 owner = "nix-community";
19 hash = "sha256-Fb5TeRTdvUlo/5Yi2d+FC8a6KoRLk2h1VE0/peMhWPs=";
22 sourceRoot = "${src.name}/rust/tool";
23 cargoHash = "sha256-g4WzqfH6DZVUuNb0jV3MFdm3h7zy2bQ6d3agrXesWgc=";
25 env.TEST_SYSTEMD = systemd;
26 doCheck = lib.meta.availableOn stdenv.hostPlatform systemd;
33 # Clean PATH to only contain what we need to do objcopy.
34 # This is still an unwrapped lanzaboote tool lacking of the
36 mv $out/bin/lzbt $out/bin/lzbt-unwrapped
37 wrapProgram $out/bin/lzbt-unwrapped \
52 description = "Lanzaboote UEFI tooling for SecureBoot enablement on NixOS systems";
53 homepage = "https://github.com/nix-community/lanzaboote";
54 license = licenses.gpl3Only;
56 maintainers = with maintainers; [
60 # Broken on aarch64-linux and any other architecture for now.