33 lines
665 B
Nix
33 lines
665 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "flyctl";
|
|
version = "0.0.117";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "superfly";
|
|
repo = "flyctl";
|
|
rev = "v${version}";
|
|
sha256 = "0i9azvhlwp5g699yagfbd5rnsr5kdnbw6lsz28nz1dzvmrj9xp7w";
|
|
};
|
|
|
|
preBuild = ''
|
|
go generate ./...
|
|
'';
|
|
|
|
preFixup = ''
|
|
rm $out/bin/doc
|
|
rm $out/bin/helpgen
|
|
'';
|
|
|
|
modSha256 = "0d0hfmdk81apha3r7zspam8wqadpy6qmqkgbq0sbiwrji4155hrh";
|
|
|
|
meta = with lib; {
|
|
description = "Command line tools for fly.io services";
|
|
homepage = "https://fly.io/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ aaronjanse ];
|
|
};
|
|
}
|
|
|