yq-go: use finalAttrs.finalPackage

This commit is contained in:
Sizhe Zhao 2025-07-10 11:42:32 +08:00
parent 82fca8f336
commit a3932b626d
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F

View File

@ -5,7 +5,6 @@
fetchFromGitHub,
installShellFiles,
runCommand,
yq-go,
nix-update-script,
}:
@ -33,8 +32,8 @@ buildGoModule (finalAttrs: {
passthru = {
tests = {
simple = runCommand "${finalAttrs.pname}-test" { } ''
echo "test: 1" | ${yq-go}/bin/yq eval -j > $out
simple = runCommand "yq-go-test" { } ''
echo "test: 1" | ${finalAttrs.finalPackage}/bin/yq eval -j > $out
[ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ]
'';
};