mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
parent
a8bfec031b
commit
a5caaecfae
37
pkgs/by-name/nh/nhost-cli/package.nix
Normal file
37
pkgs/by-name/nh/nhost-cli/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user