nix/pkgs/pomerium: move envoy zip appending to postFixup phase

This ensures that we don't immediately remove it (because strip will otherwise
just strip it because it's trailing content).
This commit is contained in:
Luke Granger-Brown 2020-12-27 19:49:02 +00:00
parent a991f3dca9
commit d4b439c523

View file

@ -52,8 +52,11 @@ buildGoModule rec {
'';
installPhase = ''
mkdir -p $out/bin
cat $GOPATH/bin/pomerium $NIX_BUILD_TOP/envoy/envoy.zip >$out/bin/pomerium
install -Dm0755 $GOPATH/bin/pomerium $out/bin/pomerium
'';
postFixup = ''
cat $out/bin/pomerium $NIX_BUILD_TOP/envoy/envoy.zip >$out/bin/pomerium.new
mv $out/bin/pomerium.new $out/bin/pomerium
chmod +x $out/bin/pomerium
zip --adjust-sfx $out/bin/pomerium
'';