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

fioctl: 0.25 -> 0.26

authored by superherointj and committed by GitHub f65b415f 334ec8b5

+22 -6
+22 -6
pkgs/tools/admin/fioctl/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 pname = "fioctl"; 5 - version = "0.25"; 6 7 src = fetchFromGitHub { 8 owner = "foundriesio"; 9 repo = "fioctl"; 10 rev = "v${version}"; 11 - sha256 = "sha256-wRjSg0jOXDfzF4kZboFawVvujCmAeB9xDOGE0tGYl4g="; 12 }; 13 14 - vendorSha256 = "sha256-B3VL2ZHPdx9iWK++ckzz2H8zV7ESQZCw39AEffXNu+w="; 15 16 ldflags = [ 17 - "-s" "-w" "-X github.com/foundriesio/fioctl/subcommands/version.Commit=${src.rev}" 18 ]; 19 20 meta = with lib; { 21 - description = "A simple CLI to manage your Foundries Factory "; 22 homepage = "https://github.com/foundriesio/fioctl"; 23 license = licenses.asl20; 24 maintainers = with maintainers; [ nixinator matthewcroughan ];
··· 1 + { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, fioctl }: 2 3 buildGoModule rec { 4 pname = "fioctl"; 5 + version = "0.26"; 6 7 src = fetchFromGitHub { 8 owner = "foundriesio"; 9 repo = "fioctl"; 10 rev = "v${version}"; 11 + sha256 = "sha256-IrbzWQEtCEG2UUkExWgs7A81RiJLXDAOrr8q4mPwcOI="; 12 }; 13 14 + vendorSha256 = "sha256-lstUcyxDVcUtgVY5y5EGgSFZgHbchQ9izf8sCq5vTVQ="; 15 16 ldflags = [ 17 + "-s" "-w" 18 + "-X github.com/foundriesio/fioctl/subcommands/version.Commit=${src.rev}" 19 ]; 20 21 + nativeBuildInputs = [ installShellFiles ]; 22 + 23 + postInstall = '' 24 + installShellCompletion --cmd fioctl \ 25 + --bash <($out/bin/fioctl completion bash) \ 26 + --fish <($out/bin/fioctl completion fish) \ 27 + --zsh <($out/bin/fioctl completion zsh) 28 + ''; 29 + 30 + passthru.tests.version = testers.testVersion { 31 + package = fioctl; 32 + command = "HOME=$(mktemp -d) fioctl version"; 33 + version = "v${version}"; 34 + }; 35 + 36 meta = with lib; { 37 + description = "A simple CLI to manage your Foundries Factory"; 38 homepage = "https://github.com/foundriesio/fioctl"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ nixinator matthewcroughan ];