2021-03-20 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fioctl";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.16";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foundriesio";
|
|
|
|
repo = "fioctl";
|
|
|
|
rev = "v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "1mm62piih7x2886wpgqd8ks22vpmrjgxs4alskiqz61bgshks9vw";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
vendorSha256 = "170z5a1iwwcpz890nficqnz7rr7yzdxr5jx9pa7s31z17lr8kbz9";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|