mirror of
https://github.com/matter-labs/vault-auth-tee.git
synced 2025-07-21 15:53:55 +02:00
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:
parent
752cdb65bd
commit
3c72d34e02
5 changed files with 97 additions and 66 deletions
33
packages/vault-auth-tee.nix
Normal file
33
packages/vault-auth-tee.nix
Normal 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=";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue