chore(deps): update nixsgx dependency

Get rid of the snowfall lib, because it makes life harder
for this very small project.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-06-07 16:49:28 +02:00
parent 752cdb65bd
commit 3c72d34e02
Signed by: harald
GPG key ID: F519A1143B3FBE32
5 changed files with 97 additions and 66 deletions

View file

@ -0,0 +1,33 @@
{ lib
, pkgs
, ...
}:
pkgs.buildGoModule {
buildInputs = with pkgs; [
nixsgx.sgx-sdk
nixsgx.sgx-dcap
nixsgx.sgx-dcap.quote_verify
];
outputs = [ "out" "sha" ];
name = "vault-auth-tee";
src = with lib.fileset; toSource {
root = ./..;
fileset = unions [
../go.mod
../go.sum
../cmd
../test-fixtures
(fileFilter (file: file.hasExt "go") ./..)
];
};
postFixup = ''
mkdir -p $sha/share
sha256sum $out/bin/vault-auth-tee | (read a _; echo $a) > $sha/share/vault-auth-tee.sha256
'';
vendorHash = "sha256-3jjtMSs1u4o+6hu+gk8zuzKNhqjHQtZ4DEfYlW3AJrA=";
}