Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / git-annex-remote-rclone / default.nix
blobe05bed928889d48ba4bdf64e21f8f76d36958199
1 { lib, stdenvNoCC, fetchFromGitHub, rclone, makeWrapper }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "git-annex-remote-rclone";
5   version = "0.7";
7   src = fetchFromGitHub {
8     owner = "DanielDent";
9     repo = "git-annex-remote-rclone";
10     rev = "v${version}";
11     sha256 = "sha256-H2C4zjM+kbC9qPl1F+bSnepuqANjZd1sz6XxOTkVVkU=";
12   };
14   nativeBuildInputs = [ makeWrapper ];
16   installPhase = ''
17     install -Dm755 -t $out/bin git-annex-remote-rclone
18     wrapProgram "$out/bin/git-annex-remote-rclone" \
19       --prefix PATH ":" "${lib.makeBinPath [ rclone ]}"
20   '';
22   meta = with lib; {
23     homepage = "https://github.com/DanielDent/git-annex-remote-rclone";
24     description = "Use rclone supported cloud storage providers with git-annex";
25     license = licenses.gpl3Only;
26     platforms = platforms.all;
27     maintainers = [ maintainers.montag451 ];
28   };