-
Notifications
You must be signed in to change notification settings - Fork 10
/
flake.nix
41 lines (36 loc) · 1.12 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
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; }; };
};
}