2019-12-11 20:41:31 +00:00
|
|
|
{ buildGoModule, hasura-graphql-engine }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-07-25 21:53:02 +00:00
|
|
|
pname = "hasura";
|
2019-12-11 20:41:31 +00:00
|
|
|
version = hasura-graphql-engine.version;
|
|
|
|
|
|
|
|
src = hasura-graphql-engine.src;
|
|
|
|
modRoot = "./cli";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/hasura" ];
|
|
|
|
|
2023-09-21 14:23:40 +00:00
|
|
|
vendorHash = "sha256-S6xyevC/7dpn2Ana5mkROwIOvtQVPThoNEVKkXQmUGY=";
|
2019-12-11 20:41:31 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/hasura/graphql-engine/cli/version.BuildVersion=${version}"
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
2019-12-11 20:41:31 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/{bash-completion/completions,zsh/site-functions}
|
|
|
|
|
|
|
|
export HOME=$PWD
|
|
|
|
$out/bin/hasura completion bash > $out/share/bash-completion/completions/hasura
|
|
|
|
$out/bin/hasura completion zsh > $out/share/zsh/site-functions/_hasura
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (hasura-graphql-engine.meta) license homepage maintainers;
|
|
|
|
description = "Hasura GraphQL Engine CLI";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "hasura";
|
2019-12-11 20:41:31 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|