nixpkgs-suyu/pkgs/development/web/flyctl/default.nix

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

33 lines
932 B
Nix
Raw Normal View History

{ 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
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
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;
maintainers = with maintainers; [ aaronjanse jsierles ];
2020-03-08 23:30:29 +01:00
};
}