nixpkgs/pkgs/development/tools/ent/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
935 B
Nix
Raw Normal View History

2022-02-01 17:38:43 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "ent-go";
2023-06-04 06:38:24 +00:00
version = "0.12.3";
2022-02-01 17:38:43 +00:00
src = fetchFromGitHub {
owner = "ent";
repo = "ent";
rev = "v${version}";
2023-06-04 06:38:24 +00:00
sha256 = "sha256-ryOpaRQi30NPDNe9rUmW+fEqWSKWEsvHl/Bd1+i88y4=";
2022-02-01 17:38:43 +00:00
};
2023-06-04 06:38:24 +00:00
vendorSha256 = "sha256-67+4r4ByVS0LgfL7eUOdEoQ+CMRzqNjPgkq3dNfNwBY=";
2022-02-01 17:38:43 +00:00
subPackages = [ "cmd/ent" ];
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd ent \
--bash <($out/bin/ent completion bash) \
--fish <($out/bin/ent completion fish) \
--zsh <($out/bin/ent completion zsh)
'';
meta = with lib; {
description = "An entity framework for Go";
homepage = "https://entgo.io/";
2022-02-01 17:38:43 +00:00
downloadPage = "https://github.com/ent/ent";
license = licenses.asl20;
2022-10-04 17:06:48 +00:00
maintainers = with maintainers; [ ];
mainProgram = "ent";
2022-02-01 17:38:43 +00:00
};
}