Skip to content

Commit

Permalink
Merge pull request #89844 from r-ryantm/auto-update/libgen-cli
Browse files Browse the repository at this point in the history
libgen-cli: 1.0.5 -> 1.0.6
  • Loading branch information
marsam committed Jun 9, 2020
2 parents 51c0d14 + 0700b31 commit 7f5bf01
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions pkgs/tools/misc/libgen-cli/default.nix
@@ -1,19 +1,28 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "libgen-cli";
version = "1.0.5";
version = "1.0.6";

src = fetchFromGitHub {
owner = "ciehanski";
repo = pname;
rev = "v${version}";
sha256 = "1lfsnyzin2dqhwhz6phms6yipli88sqiw55ls18dfv7bvx30sqlp";
sha256 = "1ahqwrlsvgiig73dwlbjgkarf3a0z3xaihj8psd2ci5i0i07nm5v";
};

vendorSha256 = "1j45h8p13xfz0qy1nrddlx1xzbr5vqxd3q76hbb0v60636izfk0r";
vendorSha256 = "15ch0zfl4a7qvwszsfkfgw5v9492wjk4l4i324iq9b50g70lgyhd";

subPackages = [ "." ];

nativeBuildInputs = [ installShellFiles ];

postInstall = ''
for shell in bash zsh; do
$out/bin/libgen-cli completion $shell > libgen-cli.$shell || :
installShellCompletion libgen-cli.$shell
done
'';

meta = with lib; {
homepage = "https://github.com/ciehanski/libgen-cli";
description =
Expand Down

0 comments on commit 7f5bf01

Please sign in to comment.