nixpkgs/pkgs/applications/networking/sync/rclone/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

2019-02-23 00:35:27 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
buildGoPackage rec {
2019-02-23 00:35:27 +00:00
pname = "rclone";
version = "1.46";
goPackagePath = "github.com/ncw/rclone";
2018-11-28 20:17:25 +00:00
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "ncw";
repo = "rclone";
rev = "v${version}";
2019-02-23 00:35:27 +00:00
sha256 = "1fl52dl41n76r678nzkxa2kgk9khn1fxraxgk8jd3ayc787qs9ia";
};
2017-07-23 01:29:21 +00:00
outputs = [ "bin" "out" "man" ];
2019-02-23 00:35:27 +00:00
# https://github.com/ncw/rclone/issues/2964
patches = [
(fetchpatch {
url = "https://github.com/ncw/rclone/commit/1c1a8ef24bea9332c6c450379ed3c5d953e07508.patch";
sha256 = "0mq74z78lc3dhama303k712xkzz9q6p7zqlbwbl04bndqlkny03k";
})
];
2017-07-23 01:29:21 +00:00
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; {
description = "Command line program to sync files and directories to and from major cloud storage";
2018-06-27 20:12:57 +00:00
homepage = https://rclone.org;
2017-01-02 22:43:07 +00:00
license = licenses.mit;
maintainers = with maintainers; [ danielfullmer ];
platforms = platforms.all;
};
}