mirror of
https://github.com/matter-labs/vault-auth-tee.git
synced 2025-07-21 15:53:55 +02:00
chore: use snowfall lib for nix flake
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
1cd15d46d0
commit
a43f83d834
6 changed files with 165 additions and 64 deletions
25
packages/container-vault-auth-tee/default.nix
Normal file
25
packages/container-vault-auth-tee/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs
|
||||
, vat
|
||||
, vault
|
||||
, ...
|
||||
}:
|
||||
pkgs.dockerTools.buildLayeredImage {
|
||||
name = "vault-auth-tee";
|
||||
tag = "test";
|
||||
|
||||
config.Entrypoint = [ "/bin/sh" ];
|
||||
|
||||
contents = pkgs.buildEnv {
|
||||
name = "image-root";
|
||||
|
||||
paths = with pkgs.dockerTools; [
|
||||
vat.vault-auth-tee
|
||||
vault
|
||||
usrBinEnv
|
||||
binSh
|
||||
caCertificates
|
||||
fakeNss
|
||||
];
|
||||
pathsToLink = [ "/bin" "/etc" ];
|
||||
};
|
||||
}
|
26
packages/vault-auth-tee/default.nix
Normal file
26
packages/vault-auth-tee/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
|
||||
pkgs.buildGoModule {
|
||||
buildInputs = with pkgs; [
|
||||
nixsgx.sgx-sdk
|
||||
nixsgx.sgx-dcap
|
||||
nixsgx.sgx-dcap.quote_verify
|
||||
];
|
||||
|
||||
name = "vault-auth-tee";
|
||||
src = with lib.fileset; toSource {
|
||||
root = ./../..;
|
||||
fileset = unions [
|
||||
../../go.mod
|
||||
../../go.sum
|
||||
../../cmd
|
||||
../../test-fixtures
|
||||
(fileFilter (file: file.hasExt "go") ./../..)
|
||||
];
|
||||
};
|
||||
|
||||
vendorHash = "sha256-t59C0yzJzFAXNXYOFbta2g5CYlkfvlukq42cxCwLaGY=";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue