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