fix: use postFixup phase for sha256

Stripping the plugin binary in the fixup phase of course changes the hash.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-03-19 09:50:47 +01:00
parent aec55a2ef1
commit 398a95314d
Signed by: harald
GPG key ID: F519A1143B3FBE32

View file

@ -24,7 +24,7 @@ pkgs.buildGoModule {
]; ];
}; };
postInstall = '' postFixup = ''
mkdir -p $sha/share mkdir -p $sha/share
sha256sum $out/bin/vault-auth-tee | (read a _; echo $a) > $sha/share/vault-auth-tee.sha256 sha256sum $out/bin/vault-auth-tee | (read a _; echo $a) > $sha/share/vault-auth-tee.sha256
''; '';