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

32 lines
760 B
Nix
Raw Normal View History

2019-09-21 11:23:00 +02:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
2019-09-21 11:23:00 +02:00
buildGoPackage rec {
2019-02-23 01:35:27 +01:00
pname = "rclone";
version = "1.49.3";
src = fetchFromGitHub {
2019-08-27 13:35:54 +02:00
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0dd5xrbf62n4y77zzaai1rc069ism1ikvcw43hzja3mzwfa0sqqa";
};
2019-09-21 11:23:00 +02:00
goPackagePath = "github.com/rclone/rclone";
subPackages = [ "." ];
2017-07-23 03:29:21 +02:00
2019-09-21 11:23:00 +02:00
outputs = [ "bin" "out" "man" ];
2019-02-23 01:35:27 +01:00
2017-07-23 03:29:21 +02:00
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; {
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;
};
}