nixpkgs/pkgs/by-name/nh/nhost-cli/package.nix
2024-07-10 06:09:54 +00:00

38 lines
694 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "nhost-cli";
version = "1.20.0";
src = fetchFromGitHub {
owner = "nhost";
repo = "cli";
rev = "v${version}";
hash = "sha256-FrAyK50D0EbGygg7R8KX2LxuS8y2B+6i3F6olLuAqDM=";
};
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";
};
}