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