Merge pull request #180714 from superherointj/package-fioctl-0.26

fioctl: 0.25 -> 0.26
This commit is contained in:
superherointj 2022-07-08 13:05:25 -03:00 committed by GitHub
commit f65b415ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,40 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, fioctl }:
buildGoModule rec {
pname = "fioctl";
version = "0.25";
version = "0.26";
src = fetchFromGitHub {
owner = "foundriesio";
repo = "fioctl";
rev = "v${version}";
sha256 = "sha256-wRjSg0jOXDfzF4kZboFawVvujCmAeB9xDOGE0tGYl4g=";
sha256 = "sha256-IrbzWQEtCEG2UUkExWgs7A81RiJLXDAOrr8q4mPwcOI=";
};
vendorSha256 = "sha256-B3VL2ZHPdx9iWK++ckzz2H8zV7ESQZCw39AEffXNu+w=";
vendorSha256 = "sha256-lstUcyxDVcUtgVY5y5EGgSFZgHbchQ9izf8sCq5vTVQ=";
ldflags = [
"-s" "-w" "-X github.com/foundriesio/fioctl/subcommands/version.Commit=${src.rev}"
"-s" "-w"
"-X github.com/foundriesio/fioctl/subcommands/version.Commit=${src.rev}"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd fioctl \
--bash <($out/bin/fioctl completion bash) \
--fish <($out/bin/fioctl completion fish) \
--zsh <($out/bin/fioctl completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = fioctl;
command = "HOME=$(mktemp -d) fioctl version";
version = "v${version}";
};
meta = with lib; {
description = "A simple CLI to manage your Foundries Factory ";
description = "A simple CLI to manage your Foundries Factory";
homepage = "https://github.com/foundriesio/fioctl";
license = licenses.asl20;
maintainers = with maintainers; [ nixinator matthewcroughan ];