ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / nh / nhost-cli / package.nix
blob213a22828c826e67e3ce2bbe2291c2961dcab930
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "nhost-cli";
9   version = "1.27.1";
11   src = fetchFromGitHub {
12     owner = "nhost";
13     repo = "cli";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-31YkO0zvAp470pQQKapkwXnk6uDmzIZlLMQVsPhGaZ4=";
16   };
18   vendorHash = null;
20   ldflags = [
21     "-s"
22     "-w"
23     "-X=main.Version=v${version}"
24   ];
26   postInstall = ''
27     mv $out/bin/cli $out/bin/nhost
28   '';
30   # require network access
31   checkFlags = [ "-skip=^TestMakeJSONRequest$" ];
33   meta = {
34     description = "Tool for setting up a local development environment for Nhost";
35     homepage = "https://github.com/nhost/cli";
36     changelog = "https://github.com/nhost/cli/releases/tag/v${version}";
37     license = lib.licenses.mit;
38     maintainers = with lib.maintainers; [ moraxyc ];
39     mainProgram = "nhost";
40   };