nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 32 lines 932 B view raw
1{ buildGoModule, fetchFromGitHub, lib }: 2 3buildGoModule rec { 4 pname = "flyctl"; 5 version = "0.0.137"; 6 7 src = fetchFromGitHub { 8 owner = "superfly"; 9 repo = "flyctl"; 10 rev = "v${version}"; 11 sha256 = "0zlcfmraf5v1crfkgxjgdjshkasyngmq1jqh7kzy3csm0p1a4sxx"; 12 }; 13 14 preBuild = '' 15 go generate ./... 16 ''; 17 18 subPackages = [ "." ]; 19 20 vendorSha256 = "1gxz9pp4zl8q7pmwg9z261fjrjfr658k1sn5nq1xzz51wrlzg9ag"; 21 22 doCheck = false; 23 24 buildFlagsArray = [ "-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" ]; 25 26 meta = with lib; { 27 description = "Command line tools for fly.io services"; 28 homepage = "https://fly.io/"; 29 license = licenses.asl20; 30 maintainers = with maintainers; [ aaronjanse ]; 31 }; 32}