14 src = fetchFromGitHub {
18 hash = "sha256-AsTDbeRMb6QJE89Z0NGooyTY3xZpWFoWkT7dofsu0DI=";
21 vendorHash = "sha256-d4dwhZYzEuyh1zJQ2xU0WkygHjoVLoCBrDKuAHUzu1w=";
23 nativeBuildInputs = [ installShellFiles ];
26 installShellCompletion --cmd yq \
27 --bash <($out/bin/yq shell-completion bash) \
28 --fish <($out/bin/yq shell-completion fish) \
29 --zsh <($out/bin/yq shell-completion zsh)
33 simple = runCommand "${pname}-test" { } ''
34 echo "test: 1" | ${yq-go}/bin/yq eval -j > $out
35 [ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ]
40 description = "Portable command-line YAML processor";
41 homepage = "https://mikefarah.gitbook.io/yq/";
42 changelog = "https://github.com/mikefarah/yq/raw/v${version}/release_notes.txt";
44 license = [ licenses.mit ];
45 maintainers = with maintainers; [