From 01086d4c7eb6388caac596635ea5d0a658a9bccc Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Tue, 13 Jan 2026 04:43:41 +0100 Subject: [PATCH] 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. --- pkgs/by-name/dg/dgoss/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/dg/dgoss/package.nix b/pkgs/by-name/dg/dgoss/package.nix index e267ed5cf799..83d112538346 100644 --- a/pkgs/by-name/dg/dgoss/package.nix +++ b/pkgs/by-name/dg/dgoss/package.nix @@ -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 ''; -- knotmirror 0.0.1