2017-01-02 23:43:07 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-30 06:47:43 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "rclone-${version}";
|
2018-06-27 20:03:11 +02:00
|
|
|
version = "1.42";
|
2016-06-30 06:47:43 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/ncw/rclone";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ncw";
|
|
|
|
repo = "rclone";
|
|
|
|
rev = "v${version}";
|
2018-06-27 20:03:11 +02:00
|
|
|
sha256 = "0r85d45q0jdfwcrblq1rd698cw3h6mc9h4dmlhzl982zpkncijqj";
|
2016-06-30 06:47:43 +02:00
|
|
|
};
|
|
|
|
|
2017-07-23 03:29:21 +02:00
|
|
|
outputs = [ "bin" "out" "man" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -D -m644 $src/rclone.1 $man/share/man/man1/rclone.1
|
|
|
|
'';
|
|
|
|
|
2017-01-02 23:43:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-30 06:47:43 +02:00
|
|
|
description = "Command line program to sync files and directories to and from major cloud storage";
|
2018-06-27 22:12:57 +02:00
|
|
|
homepage = https://rclone.org;
|
2017-01-02 23:43:07 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danielfullmer ];
|
|
|
|
platforms = platforms.all;
|
2016-06-30 06:47:43 +02:00
|
|
|
};
|
|
|
|
}
|