mirror of
https://github.com/matter-labs/vault-auth-tee.git
synced 2025-07-21 15:53:55 +02:00
chore: add nix subpackage with shasum of plugin (#40)
This commit is contained in:
commit
0f9a672c99
2 changed files with 9 additions and 1 deletions
|
@ -14,12 +14,13 @@ pkgs.dockerTools.buildLayeredImage {
|
||||||
|
|
||||||
paths = with pkgs.dockerTools; [
|
paths = with pkgs.dockerTools; [
|
||||||
vat.vault-auth-tee
|
vat.vault-auth-tee
|
||||||
|
vat.vault-auth-tee.sha
|
||||||
vault
|
vault
|
||||||
usrBinEnv
|
usrBinEnv
|
||||||
binSh
|
binSh
|
||||||
caCertificates
|
caCertificates
|
||||||
fakeNss
|
fakeNss
|
||||||
];
|
];
|
||||||
pathsToLink = [ "/bin" "/etc" ];
|
pathsToLink = [ "/bin" "/etc" "/share" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,8 @@ pkgs.buildGoModule {
|
||||||
nixsgx.sgx-dcap.quote_verify
|
nixsgx.sgx-dcap.quote_verify
|
||||||
];
|
];
|
||||||
|
|
||||||
|
outputs = [ "out" "sha" ];
|
||||||
|
|
||||||
name = "vault-auth-tee";
|
name = "vault-auth-tee";
|
||||||
src = with lib.fileset; toSource {
|
src = with lib.fileset; toSource {
|
||||||
root = ./../..;
|
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=";
|
vendorHash = "sha256-t59C0yzJzFAXNXYOFbta2g5CYlkfvlukq42cxCwLaGY=";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue