Merge pull request #96989 from marsam/update-rclone

rclone: 1.52.3 -> 1.53.0
This commit is contained in:
Mario Rodas 2020-09-03 22:09:26 -05:00 committed by GitHub
commit 1dcf64b8fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,17 @@
{ stdenv, buildGoPackage, fetchFromGitHub, buildPackages, installShellFiles }: { stdenv, buildGoModule, fetchFromGitHub, buildPackages, installShellFiles }:
buildGoPackage rec { buildGoModule rec {
pname = "rclone"; pname = "rclone";
version = "1.52.3"; version = "1.53.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1bf3rhs4dcb8vkzs4a6pk5xrhnkhqsrbf4xrhcqf407r668gdav1"; sha256 = "1736np95di9ksy6i8glzmvzc7qp4d06354gvrnxbzimgf0mm11wn";
}; };
goPackagePath = "github.com/rclone/rclone"; vendorSha256 = "1l4iz31k1pylvf0zrp4nhxna70s1ma4981x6q1s3dhszjxil5c88";
subPackages = [ "." ]; subPackages = [ "." ];
@ -19,6 +19,8 @@ buildGoPackage rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/rclone/rclone/fs.Version=${version}" ];
postInstall = postInstall =
let let
rcloneBin = rcloneBin =
@ -26,13 +28,13 @@ buildGoPackage rec {
then "$out" then "$out"
else stdenv.lib.getBin buildPackages.rclone; else stdenv.lib.getBin buildPackages.rclone;
in in
'' ''
installManPage $src/rclone.1 installManPage rclone.1
for shell in bash zsh fish; do for shell in bash zsh fish; do
${rcloneBin}/bin/rclone genautocomplete $shell rclone.$shell ${rcloneBin}/bin/rclone genautocomplete $shell rclone.$shell
installShellCompletion rclone.$shell installShellCompletion rclone.$shell
done done
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Command line program to sync files and directories to and from major cloud storage"; description = "Command line program to sync files and directories to and from major cloud storage";