nhost-cli: init at 1.18.1

Closes NixOS/nixpkgs#245798
This commit is contained in:
Moraxyc 2024-05-28 22:17:20 +08:00
parent a8bfec031b
commit a5caaecfae
No known key found for this signature in database

View File

@ -0,0 +1,37 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "nhost-cli";
version = "1.18.1";
src = fetchFromGitHub {
owner = "nhost";
repo = "cli";
rev = "v${version}";
hash = "sha256-B0kkbRwL808+p6WwvitxY+6FvnjkNN7NFSSYpNJNOrk=";
};
vendorHash = null;
ldflags = [
"-s"
"-w"
"-X=main.Version=v${version}"
];
postInstall = ''
mv $out/bin/cli $out/bin/${meta.mainProgram}
'';
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";
};
}