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

30 lines
741 B
Nix
Raw Normal View History

2017-01-02 14:43:07 -08:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "rclone-${version}";
2017-09-30 15:13:24 -07:00
version = "1.38";
goPackagePath = "github.com/ncw/rclone";
src = fetchFromGitHub {
owner = "ncw";
repo = "rclone";
rev = "v${version}";
2017-09-30 15:13:24 -07:00
sha256 = "0f56qm4lz55anzqf6dmjfywmvqy10zi5cl69zz8lda8lmvrpjm1d";
};
2017-07-22 18:29:21 -07:00
outputs = [ "bin" "out" "man" ];
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";
homepage = http://rclone.org;
2017-01-02 14:43:07 -08:00
license = licenses.mit;
maintainers = with maintainers; [ danielfullmer ];
platforms = platforms.all;
};
}