1 { buildGoModule, hasura-graphql-engine }:
5 version = hasura-graphql-engine.version;
7 src = hasura-graphql-engine.src;
10 subPackages = [ "cmd/hasura" ];
12 vendorHash = "sha256-S6xyevC/7dpn2Ana5mkROwIOvtQVPThoNEVKkXQmUGY=";
17 "-X github.com/hasura/graphql-engine/cli/version.BuildVersion=${version}"
23 mkdir -p $out/share/{bash-completion/completions,zsh/site-functions}
26 $out/bin/hasura completion bash > $out/share/bash-completion/completions/hasura
27 $out/bin/hasura completion zsh > $out/share/zsh/site-functions/_hasura
31 inherit (hasura-graphql-engine.meta) license homepage maintainers;
32 description = "Hasura GraphQL Engine CLI";
33 mainProgram = "hasura";