2020-03-27 08:33:21 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2020-03-08 23:30:29 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "flyctl";
|
2022-04-11 10:52:41 +02:00
|
|
|
version = "0.0.316";
|
2020-03-08 23:30:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "superfly";
|
|
|
|
repo = "flyctl";
|
|
|
|
rev = "v${version}";
|
2022-04-11 10:52:41 +02:00
|
|
|
sha256 = "sha256-ZIVb4k/KCiHXoEv45lQ2bYAHOXIADCDZOQPeIoMJ8RM=";
|
2020-03-08 23:30:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
go generate ./...
|
|
|
|
'';
|
|
|
|
|
2020-05-19 11:20:00 +02:00
|
|
|
subPackages = [ "." ];
|
2020-03-08 23:30:29 +01:00
|
|
|
|
2022-04-11 10:52:41 +02:00
|
|
|
vendorSha256 = "sha256-D3eYFEib+PoAOfrkDKXEzq9Ivh6ukZcT+eA10z5LHGE=";
|
2020-03-08 23:30:29 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/superfly/flyctl/flyctl.Version=${version}" "-X github.com/superfly/flyctl/flyctl.Commit=${src.rev}" "-X github.com/superfly/flyctl/flyctl.BuildDate=1970-01-01T00:00:00+0000" "-X github.com/superfly/flyctl/flyctl.Environment=production" ];
|
2020-05-19 11:20:00 +02:00
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2020-03-08 23:30:29 +01:00
|
|
|
description = "Command line tools for fly.io services";
|
|
|
|
homepage = "https://fly.io/";
|
|
|
|
license = licenses.asl20;
|
2022-01-26 04:36:56 +01:00
|
|
|
maintainers = with maintainers; [ aaronjanse jsierles ];
|
2020-03-08 23:30:29 +01:00
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|