nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 versionCheckHook,
6}:
7
8buildGoModule rec {
9 pname = "ecspresso";
10 version = "2.6.0";
11
12 src = fetchFromGitHub {
13 owner = "kayac";
14 repo = "ecspresso";
15 tag = "v${version}";
16 hash = "sha256-t7XToo/OFrczwF24k51Ae1gFI3/C2HIP5mAJVN8BzLk=";
17 };
18
19 subPackages = [
20 "cmd/ecspresso"
21 ];
22
23 vendorHash = "sha256-tL/AjGU/Pi5ypcv9jqUukg6sGJqpPlHhwxzve7/KgDo=";
24
25 ldflags = [
26 "-s"
27 "-w"
28 "-X main.buildDate=none"
29 "-X main.Version=${version}"
30 ];
31
32 doInstallCheck = true;
33
34 nativeInstallCheckInputs = [
35 versionCheckHook
36 ];
37
38 versionCheckProgramArg = "version";
39
40 meta = {
41 description = "Deployment tool for ECS";
42 mainProgram = "ecspresso";
43 license = lib.licenses.mit;
44 homepage = "https://github.com/kayac/ecspresso/";
45 maintainers = with lib.maintainers; [
46 FKouhai
47 ];
48 };
49}