Loading pkgs/development/tools/yq-go/default.nix +8 −1 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub, installShellFiles }: { lib, buildGoModule, fetchFromGitHub, installShellFiles, runCommand, yq-go }: buildGoModule rec { pname = "yq-go"; Loading @@ -24,6 +24,13 @@ buildGoModule rec { done ''; passthru.tests = { simple = runCommand "${pname}-test" {} '' echo "test: 1" | ${yq-go}/bin/yq eval -j > $out [ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ] ''; }; meta = with lib; { description = "Portable command-line YAML processor"; homepage = "https://mikefarah.gitbook.io/yq/"; Loading Loading
pkgs/development/tools/yq-go/default.nix +8 −1 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub, installShellFiles }: { lib, buildGoModule, fetchFromGitHub, installShellFiles, runCommand, yq-go }: buildGoModule rec { pname = "yq-go"; Loading @@ -24,6 +24,13 @@ buildGoModule rec { done ''; passthru.tests = { simple = runCommand "${pname}-test" {} '' echo "test: 1" | ${yq-go}/bin/yq eval -j > $out [ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ] ''; }; meta = with lib; { description = "Portable command-line YAML processor"; homepage = "https://mikefarah.gitbook.io/yq/"; Loading