depot/third_party/nixpkgs/pkgs/by-name/nh/nhost-cli/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

37 lines
694 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "nhost-cli";
version = "1.24.0";
src = fetchFromGitHub {
owner = "nhost";
repo = "cli";
rev = "v${version}";
hash = "sha256-8kul3tiwEJF6Pu1os29MteeYP+85X9hH12MojMpW9bY=";
};
vendorHash = null;
ldflags = [
"-s"
"-w"
"-X=main.Version=v${version}"
];
postInstall = ''
mv $out/bin/cli $out/bin/nhost
'';
meta = {
description = "A tool for setting up a local development environment for Nhost";
homepage = "https://github.com/nhost/cli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "nhost";
};
}