diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2021-04-19 18:16:41 +0200 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2021-04-19 21:54:34 +0200 |
commit | 7aecbba1789d1569c80fad4756112a2ed330237e (patch) | |
tree | 5805b74c585782259f3645fb933c66837ef97c60 /pkgs/tools/networking/qrcp | |
parent | 29058f9a43064ab0fbd2222420ddc1f3339e2a69 (diff) |
qrcp: 0.7.0 -> 0.8.1
Diffstat (limited to 'pkgs/tools/networking/qrcp')
-rw-r--r-- | pkgs/tools/networking/qrcp/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/tools/networking/qrcp/default.nix b/pkgs/tools/networking/qrcp/default.nix index bf3b3936edd3c..fd6b79ecb216a 100644 --- a/pkgs/tools/networking/qrcp/default.nix +++ b/pkgs/tools/networking/qrcp/default.nix @@ -1,23 +1,34 @@ { lib , buildGoModule , fetchFromGitHub +, installShellFiles }: buildGoModule rec { pname = "qrcp"; - version = "0.7.0"; + version = "0.8.1"; src = fetchFromGitHub { owner = "claudiodangelis"; repo = "qrcp"; rev = version; - sha256 = "0rx0pzy7p3dklayr2lkmyfdc00x9v4pd5xnzydbjx12hncnkpw4l"; + sha256 = "001w15hj5xb7p9gpvw1216lp26g5018qdi8mq6i84akb7zfd2q01"; }; - vendorSha256 = "0iffy43x3njcahrxl99a71v8p7im102nzv8iqbvd5c6m14rsckqa"; + vendorSha256 = "1hn8c72fvih6ws1y2c4963pww3ld64m0yh3pmx62hwcy83bhb0v4"; subPackages = [ "." ]; + nativeBuildInputs = [ + installShellFiles + ]; + + postInstall = '' + installShellCompletion --bash --cmd qrcp <($out/bin/qrcp completion bash) + installShellCompletion --fish --cmd qrcp <($out/bin/qrcp completion fish) + installShellCompletion --zsh --cmd qrcp <($out/bin/qrcp completion zsh) + ''; + meta = with lib; { homepage = "https://claudiodangelis.com/qrcp/"; description = "Transfer files over wifi by scanning a QR code from your terminal"; |