26e6a9d869
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
28 lines
739 B
Nix
28 lines
739 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fioctl";
|
|
version = "0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "foundriesio";
|
|
repo = "fioctl";
|
|
rev = "v${version}";
|
|
sha256 = "1mm62piih7x2886wpgqd8ks22vpmrjgxs4alskiqz61bgshks9vw";
|
|
};
|
|
|
|
vendorSha256 = "170z5a1iwwcpz890nficqnz7rr7yzdxr5jx9pa7s31z17lr8kbz9";
|
|
|
|
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 ];
|
|
};
|
|
}
|