Commit 01086d4c authored by Miroslav Vadkerti's avatar Miroslav Vadkerti
Browse files

dgoss: allow overriding GOSS_PATH

Allow users to override GOSS_PATH environment variable while
defaulting to the nix-provided goss binary. This is useful in
environments where the real goss binary needs to be volume mounted
into containers instead of the bash wrapper that the goss nix
package provides.

This aligns with upstream dgoss behavior where GOSS_PATH can be set
to specify the goss binary location.
parent e40ac75f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ resholve.mkDerivation rec {
  dontBuild = true;

  installPhase = ''
    sed -i '2i GOSS_PATH=${goss}/bin/goss' extras/dgoss/dgoss
    sed -i '2i GOSS_PATH=\$\{GOSS_PATH:-${goss}/bin/goss\}' extras/dgoss/dgoss
    install -D extras/dgoss/dgoss $out/bin/dgoss
  '';