chore: use snowfall lib for nix flake

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-02-15 10:57:05 +01:00
parent 1cd15d46d0
commit a43f83d834
Signed by: harald
GPG key ID: F519A1143B3FBE32
6 changed files with 165 additions and 64 deletions

View 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" ];
};
}

View 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=";
}