2020-03-21 11:10:00 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
|
2020-03-08 22:30:29 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "flyctl";
|
|
|
|
version = "0.0.102";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "superfly";
|
|
|
|
repo = "flyctl";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "181j248i8j9g7kz5krg0bkbxkvmcwpz2vlknii5q3dy7yhgg19h3";
|
|
|
|
};
|
|
|
|
|
2020-03-21 11:10:00 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2020-03-08 22:30:29 +00:00
|
|
|
preBuild = ''
|
|
|
|
go generate ./...
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
rm $out/bin/doc
|
|
|
|
rm $out/bin/helpgen
|
|
|
|
'';
|
|
|
|
|
|
|
|
modSha256 = "1mqkc7hnavvpbqar9f1d2vnm47p4car9abnk2ikyf27jr5glwmsd";
|
|
|
|
|
2020-03-21 11:10:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-08 22:30:29 +00:00
|
|
|
description = "Command line tools for fly.io services";
|
|
|
|
homepage = "https://fly.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ aaronjanse ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|