bazel: add tool dependencies for image upload

This commit is contained in:
Malte Poll 2024-01-04 16:34:15 +01:00
parent 711dff37a4
commit f7b22f3705
2 changed files with 33 additions and 0 deletions

View File

@ -56,6 +56,13 @@ nixpkgs_flake_package(
package = "mkosi",
)
nixpkgs_flake_package(
name = "uplosi",
nix_flake_file = "//:flake.nix",
nix_flake_lock_file = "//:flake.lock",
package = "uplosi",
)
nixpkgs_package(
name = "diffutils",
repository = "@nixpkgs",
@ -96,6 +103,21 @@ nixpkgs_package(
repository = "@nixpkgs",
)
nixpkgs_package(
name = "parallel",
repository = "@nixpkgs",
)
nixpkgs_package(
name = "cosign",
repository = "@nixpkgs",
)
nixpkgs_package(
name = "rekor-cli",
repository = "@nixpkgs",
)
load("//nix/cc:nixpkgs_cc_libraries.bzl", "nixpkgs_cc_library_deps")
nixpkgs_cc_library_deps()

View File

@ -47,12 +47,23 @@
]);
}));
uplosiDev = (pkgsUnstable.uplosi.overrideAttrs (oldAttrs: rec {
src = pkgsUnstable.fetchFromGitHub {
owner = "edgelesssys";
repo = "uplosi";
rev = "0190e8c548b5811066b7e2d9db5e3167f51c005f";
hash = "sha256-AHj3XTX+vd8QP4hWGPAt2iJnrIGoiH61UgQMK7vlYU0=";
};
}));
openssl-static = pkgsUnstable.openssl.override { static = true; };
in
{
packages.mkosi = mkosiDev;
packages.uplosi = uplosiDev;
packages.openssl = callPackage ./nix/cc/openssl.nix { pkgs = pkgsUnstable; };
packages.cryptsetup = callPackage ./nix/cc/cryptsetup.nix { pkgs = pkgsUnstable; pkgsLinux = import nixpkgsUnstable { system = "x86_64-linux"; }; };