ent-go: init 0.10.0
This commit is contained in:
parent
58e445a1b5
commit
baca640798
40
pkgs/development/tools/ent/default.nix
Normal file
40
pkgs/development/tools/ent/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ent-go";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ent";
|
||||
repo = "ent";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-TG08GRo1gNxC5iHt/Md5WVWaEQ1m2mUDGqpuxw8Pavg=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-n5dS78SSBAEgE4/9jMZZhbOQZ3IGi9n3ErA0ioP9Tsg=";
|
||||
|
||||
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";
|
||||
downloadPage = "https://github.com/ent/ent";
|
||||
license = licenses.asl20;
|
||||
homepage = "https://entgo.io/";
|
||||
maintainers = with maintainers; [ superherointj ];
|
||||
};
|
||||
}
|
||||
|
@ -14869,6 +14869,8 @@ with pkgs;
|
||||
|
||||
emma = callPackage ../development/tools/analysis/emma { };
|
||||
|
||||
ent-go = callPackage ../development/tools/ent { };
|
||||
|
||||
epm = callPackage ../development/tools/misc/epm { };
|
||||
|
||||
eresi = callPackage ../development/tools/analysis/eresi { };
|
||||
|
Loading…
Reference in New Issue
Block a user