···2020 nativeBuildInputs = [ installShellFiles ];21212222 postInstall =2323- let stern = if isCrossBuild then buildPackages.stern else "$bin"; in2323+ let stern = if isCrossBuild then buildPackages.stern else "$out"; in2424 ''2525 for shell in bash zsh; do2626 ${stern}/bin/stern --completion $shell > stern.$shell
···26262727 postInstall = ''2828 # remove all plugins, they are part of the main binary now2929- for i in $bin/bin/*; do2929+ for i in $out/bin/*; do3030 if [[ $(basename $i) != terraform ]]; then3131 rm "$i"3232 fi···88888989 buildCommand = ''9090 mkdir -p $out/bin/9191- makeWrapper "${terraform.bin}/bin/terraform" "$out/bin/terraform" \9191+ makeWrapper "${terraform}/bin/terraform" "$out/bin/terraform" \9292 --set NIX_TERRAFORM_PLUGIN_DIR "${9393 buildEnv {9494 name = "tf-plugin-env";
···3333 # docker-slim tries to create its state dir next to the binary (inside the nix3434 # store), so we set it to use the working directory at the time of invocation3535 postInstall = ''3636- wrapProgram "$bin/bin/docker-slim" --add-flags '--state-path "$(pwd)"'3636+ wrapProgram "$out/bin/docker-slim" --add-flags '--state-path "$(pwd)"'3737 '';38383939 meta = with stdenv.lib; {
···4242 installPhase = ''4343 runHook preInstall44444545- install -D cockroachoss $bin/bin/cockroach4545+ install -D cockroachoss $out/bin/cockroach4646 installShellCompletion cockroach.bash47474848 mkdir -p $man/share/man···5151 runHook postInstall5252 '';53535454- # Unfortunately we have to keep an empty reference to $out, because it seems5555- # buildGoPackages only nukes references to the go compiler under $bin, effectively5656- # making all binary output under $bin mandatory. Ideally, we would just use5757- # $out and $man and remove $bin since there's no point in an empty path. :(5858- outputs = [ "bin" "man" "out" ];5454+ outputs = [ "out" "man" ];59556056 meta = with stdenv.lib; {6157 homepage = "https://www.cockroachlabs.com";
···14141515 buildPhase = ''1616 pushd go/src/${goPackagePath}1717- make all install BINDIR=$bin/bin1717+ make all install BINDIR=$out/bin1818 '';19192020 meta = with lib; {