2021-03-20 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fioctl";
|
2021-06-01 10:57:12 +00:00
|
|
|
version = "0.17";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foundriesio";
|
|
|
|
repo = "fioctl";
|
|
|
|
rev = "v${version}";
|
2021-06-01 10:57:12 +00:00
|
|
|
sha256 = "sha256-u23BQ/sRAfUO36uqv7xY+DkseDnlVesgamsgne8N8kU=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
vendorSha256 = "sha256-6a+JMj3hh6GPuqnLknv7/uR8vsUsOgsS+pdxHoMqH5w=";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
runVend = true;
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-s -w -X github.com/foundriesio/fioctl/subcommands/version.Commit=${src.rev}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple CLI to manage your Foundries Factory ";
|
|
|
|
homepage = "https://github.com/foundriesio/fioctl";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ nixinator matthewcroughan ];
|
|
|
|
};
|
|
|
|
}
|