chore: add nix subpackage with shasum of plugin

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-02-22 09:56:55 +01:00
parent cef9c48359
commit 6fb44c0183
Signed by: harald
GPG key ID: F519A1143B3FBE32
2 changed files with 9 additions and 1 deletions

View file

@ -10,6 +10,8 @@ pkgs.buildGoModule {
nixsgx.sgx-dcap.quote_verify
];
outputs = [ "out" "sha" ];
name = "vault-auth-tee";
src = with lib.fileset; toSource {
root = ./../..;
@ -22,5 +24,10 @@ pkgs.buildGoModule {
];
};
postInstall = ''
mkdir -p $sha/share
sha256sum $out/bin/vault-auth-tee | (read a _; echo $a) > $sha/share/vault-auth-tee.sha256
'';
vendorHash = "sha256-t59C0yzJzFAXNXYOFbta2g5CYlkfvlukq42cxCwLaGY=";
}