10 rustPlatform.buildRustPackage rec {
11 pname = "lanzaboote-tool";
14 src = fetchFromGitHub {
15 owner = "nix-community";
18 hash = "sha256-Fb5TeRTdvUlo/5Yi2d+FC8a6KoRLk2h1VE0/peMhWPs=";
21 sourceRoot = "source/rust/tool";
22 cargoHash = "sha256-g4WzqfH6DZVUuNb0jV3MFdm3h7zy2bQ6d3agrXesWgc=";
24 env.TEST_SYSTEMD = systemd;
25 doCheck = lib.meta.availableOn stdenv.hostPlatform systemd;
32 # Clean PATH to only contain what we need to do objcopy.
33 # This is still an unwrapped lanzaboote tool lacking of the
35 mv $out/bin/lzbt $out/bin/lzbt-unwrapped
36 wrapProgram $out/bin/lzbt-unwrapped \
37 --set PATH ${lib.makeBinPath [ binutils-unwrapped sbsigntool ]}
46 description = "Lanzaboote UEFI tooling for SecureBoot enablement on NixOS systems";
47 homepage = "https://github.com/nix-community/lanzaboote";
48 license = licenses.gpl3Only;
50 maintainers = with maintainers; [ raitobezarius nikstur ];
51 # Broken on aarch64-linux and any other architecture for now.
53 platforms = [ "x86_64-linux" "i686-linux" ];