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

32 lines
760 B
Nix
Raw Normal View History

2019-09-21 02:23:00 -07:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
2019-09-21 02:23:00 -07:00
buildGoPackage rec {
2019-02-22 16:35:27 -08:00
pname = "rclone";
2019-11-19 15:00:00 -08:00
version = "1.50.2";
src = fetchFromGitHub {
2019-08-27 04:35:54 -07:00
owner = pname;
repo = pname;
rev = "v${version}";
2019-11-19 15:00:00 -08:00
sha256 = "0yaspkh88q8i58i8g8mm6sqb75hczavz2lvzdd1iif1bqgi6b5fz";
};
2019-09-21 02:23:00 -07:00
goPackagePath = "github.com/rclone/rclone";
subPackages = [ "." ];
2017-07-22 18:29:21 -07:00
2019-09-21 02:23:00 -07:00
outputs = [ "bin" "out" "man" ];
2019-02-22 16:35:27 -08:00
2017-07-22 18:29:21 -07:00
postInstall = ''
install -D -m644 $src/rclone.1 $man/share/man/man1/rclone.1
'';
2017-01-02 14:43:07 -08:00
meta = with stdenv.lib; {
description = "Command line program to sync files and directories to and from major cloud storage";
2018-06-27 13:12:57 -07:00
homepage = https://rclone.org;
2017-01-02 14:43:07 -08:00
license = licenses.mit;
maintainers = with maintainers; [ danielfullmer ];
platforms = platforms.all;
};
}