mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
30 lines
741 B
Nix
30 lines
741 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "rclone-${version}";
|
|
version = "1.40";
|
|
|
|
goPackagePath = "github.com/ncw/rclone";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ncw";
|
|
repo = "rclone";
|
|
rev = "v${version}";
|
|
sha256 = "01q9g5g4va1s91xzvxpq8lj9jcrbl66cik383cpxwmcv04qcqgw9";
|
|
};
|
|
|
|
outputs = [ "bin" "out" "man" ];
|
|
|
|
postInstall = ''
|
|
install -D -m644 $src/rclone.1 $man/share/man/man1/rclone.1
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Command line program to sync files and directories to and from major cloud storage";
|
|
homepage = http://rclone.org;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ danielfullmer ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|