lanzaboote-tool: init at 0.3.0

This commit is contained in:
Raito Bezarius
2023-05-15 01:12:35 +02:00
parent e68bb9dc1e
commit 05d0125368
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{ rustPlatform, fetchFromGitHub, stdenv, lib }:
rustPlatform.buildRustPackage {
pname = "lanzaboote-stub";
version = "0.3.0";
src = fetchFromGitHub {
owner = "nix-community";
repo = "lanzaboote";
rev = "v0.3.0";
hash = "sha256-Fb5TeRTdvUlo/5Yi2d+FC8a6KoRLk2h1VE0/peMhWPs=";
};
sourceRoot = "source/rust/stub";
cargoHash = "sha256-FlnheCgowYsEHcFMn6k8ESxDuggbO4tNdQlOjUIj7oE=";
# `cc-wrapper`/our clang doesn't understand MSVC link opts (hack):
RUSTFLAGS = "-Clinker=${stdenv.cc.bintools}/bin/${stdenv.cc.targetPrefix}ld.lld -Clinker-flavor=lld-link";
NIX_ENFORCE_PURITY = "0";
# TODO: limit supported platforms to UEFI
meta.platforms = lib.platforms.all;
}

View File

@@ -0,0 +1,28 @@
{ rustPlatform, fetchFromGitHub, systemd, binutils-unwrapped, sbsigntool }:
rustPlatform.buildRustPackage {
pname = "lanzaboote-tool";
version = "0.3.0";
src = fetchFromGitHub {
owner = "nix-community";
repo = "lanzaboote";
rev = "v0.3.0";
hash = "sha256-Fb5TeRTdvUlo/5Yi2d+FC8a6KoRLk2h1VE0/peMhWPs=";
};
checkInputs = [
binutils-unwrapped
sbsigntool
];
sourceRoot = "source/rust/tool";
cargoHash = "sha256-g4WzqfH6DZVUuNb0jV3MFdm3h7zy2bQ6d3agrXesWgc=";
TEST_SYSTEMD = systemd;
RUST_BACKTRACE = "full";
# TODO: limit supported platforms to UEFI
meta.platforms = [ "x86_64-linux" "aarch64-linux" ]; # lib.platforms.uefi;
}

View File

@@ -9511,6 +9511,8 @@ with pkgs;
jump = callPackage ../tools/system/jump { };
lanzaboote-tool = callPackage ../tools/system/lanzaboote/tool.nix { };
larynx = callPackage ../tools/audio/larynx { };
larynx-train = with python3Packages; toPythonApplication larynx-train;