nixpkgs/pkgs/tools/admin/fioctl/default.nix
MatthewCroughan 26e6a9d869
fioctl: 0.15 -> 0.16 (#121971)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-05-07 17:29:23 +02:00

29 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 ];
};
}