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
933 B
Nix
Raw Normal View History

2022-02-01 20:38:43 +03:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "ent-go";
2023-06-04 09:38:24 +03:00
version = "0.12.3";
2022-02-01 20:38:43 +03:00
src = fetchFromGitHub {
owner = "ent";
repo = "ent";
rev = "v${version}";
2023-06-04 09:38:24 +03:00
sha256 = "sha256-ryOpaRQi30NPDNe9rUmW+fEqWSKWEsvHl/Bd1+i88y4=";
2022-02-01 20:38:43 +03:00
};
vendorHash = "sha256-67+4r4ByVS0LgfL7eUOdEoQ+CMRzqNjPgkq3dNfNwBY=";
2022-02-01 20:38:43 +03: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 20:38:43 +03:00
downloadPage = "https://github.com/ent/ent";
license = licenses.asl20;
2022-10-04 20:06:48 +03:00
maintainers = with maintainers; [ ];
mainProgram = "ent";
2022-02-01 20:38:43 +03:00
};
}