fioctl: 0.25 -> 0.26
This commit is contained in:
parent
1014f00cff
commit
f2311c50f7
@ -1,24 +1,40 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, fioctl }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "fioctl";
|
pname = "fioctl";
|
||||||
version = "0.25";
|
version = "0.26";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "foundriesio";
|
owner = "foundriesio";
|
||||||
repo = "fioctl";
|
repo = "fioctl";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-wRjSg0jOXDfzF4kZboFawVvujCmAeB9xDOGE0tGYl4g=";
|
sha256 = "sha256-IrbzWQEtCEG2UUkExWgs7A81RiJLXDAOrr8q4mPwcOI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-B3VL2ZHPdx9iWK++ckzz2H8zV7ESQZCw39AEffXNu+w=";
|
vendorSha256 = "sha256-lstUcyxDVcUtgVY5y5EGgSFZgHbchQ9izf8sCq5vTVQ=";
|
||||||
|
|
||||||
ldflags = [
|
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; {
|
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";
|
homepage = "https://github.com/foundriesio/fioctl";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ nixinator matthewcroughan ];
|
maintainers = with maintainers; [ nixinator matthewcroughan ];
|
||||||
|
Loading…
Reference in New Issue
Block a user