2021-03-11 04:23:52 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fioctl";
|
2021-12-06 22:47:44 +01:00
|
|
|
version = "0.22";
|
2021-03-11 04:23:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foundriesio";
|
|
|
|
repo = "fioctl";
|
|
|
|
rev = "v${version}";
|
2021-12-06 22:47:44 +01:00
|
|
|
sha256 = "sha256-8YIboaLFc1nliNQJPyTd/JseTbvk2aBTjVEpW3mTkZg=";
|
2021-03-11 04:23:52 +01:00
|
|
|
};
|
|
|
|
|
2022-01-01 04:40:41 +01:00
|
|
|
vendorSha256 = "sha256-oA8/9LjMRM1RXKKDWhcbt2qr/4T7YgOq92U2mF9E+sw=";
|
2021-03-11 04:23:52 +01:00
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X github.com/foundriesio/fioctl/subcommands/version.Commit=${src.rev}"
|
|
|
|
];
|
2021-03-11 04:23:52 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|