3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/hasura/cli.nix
Timothy Stott ba7c0893d4
treewide: remove obsolete attribute goPackagePath in buildGoModule derivations (#95092)
The buildGoModule infrastructure does not make use of goPackagePath it is a residue from buildGoPackage.
2020-08-11 21:04:55 +00:00

35 lines
870 B
Nix

{ buildGoModule, hasura-graphql-engine }:
buildGoModule rec {
name = "hasura-${version}";
version = hasura-graphql-engine.version;
src = hasura-graphql-engine.src;
modRoot = "./cli";
subPackages = [ "cmd/hasura" ];
vendorSha256 = "0a3mlkl00r680v8x3hy24ykggq5qm7k3101krlyfrb5y4karp75a";
doCheck = false;
buildFlagsArray = [''-ldflags=
-X github.com/hasura/graphql-engine/cli/version.BuildVersion=${version}
-s
-w
''];
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";
};
}