vault-auth-tee/flake.nix
Harald Hoyer c301e57b63
chore: Update nix workflow and flake.lock
- Update the version of `cachix/install-nix-action` to v27 in Nix workflow
- Add setup for Attic cache and enable magic Nix cache in the workflow
- Update `flake.lock`
- Remove container build and push

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-07-01 12:58:24 +02:00

41 lines
1.1 KiB
Nix

{
description = "vault auth plugin for remote attestation of TEEs";
inputs = {
nixsgx-flake.url = "github:matter-labs/nixsgx";
nixpkgs.follows = "nixsgx-flake/nixpkgs";
flake-utils.url = "github:numtide/flake-utils?tag=v1.0.0";
};
outputs = { self, nixpkgs, flake-utils, nixsgx-flake }:
flake-utils.lib.eachSystem [ "x86_64-linux" ]
(system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
nixsgx-flake.overlays.default
self.overlays.default
];
config.allowUnfree = true;
};
vault-auth-tee = pkgs.callPackage ./packages/vault-auth-tee.nix { };
in
{
formatter = pkgs.nixpkgs-fmt;
packages = {
inherit vault-auth-tee;
default = vault-auth-tee;
};
devShells = {
default = pkgs.mkShell {
inputsFrom = [ vault-auth-tee ];
};
};
}) // {
overlays.default = final: prev: { vat = { inherit (self.packages.${prev.system}) vault-auth-tee; }; };
};
}