1 { lib, buildGo121Module, fetchFromGitHub, installShellFiles, testers, sq }:
7 src = fetchFromGitHub {
11 hash = "sha256-3Hu0vMulGWyNWgNlekYuTRxxxBbRkWj2RE0MWZzNXFk=";
14 vendorHash = "sha256-qEwK40BcUetsQOIefdjM/dgjTNuHO1EZgVk53/dfOlc=";
18 nativeBuildInputs = [ installShellFiles ];
20 # Some tests violates sandbox constraints.
26 "-X=github.com/neilotoole/sq/cli/buildinfo.Version=v${version}"
30 installShellCompletion --cmd sq \
31 --bash <($out/bin/sq completion bash) \
32 --fish <($out/bin/sq completion fish) \
33 --zsh <($out/bin/sq completion zsh)
37 version = testers.testVersion {
39 version = "v${version}";
44 description = "Swiss army knife for data";
45 homepage = "https://sq.io/";
46 license = licenses.mit;
47 platforms = platforms.all;
48 maintainers = with maintainers; [ raitobezarius ];