yq-go: use finalAttrs.finalPackage
This commit is contained in:
parent
82fca8f336
commit
a3932b626d
@ -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}' ]
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user