2022-11-27 09:42:12 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, rclone, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "git-annex-remote-rclone";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DanielDent";
|
|
|
|
repo = "git-annex-remote-rclone";
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-H2C4zjM+kbC9qPl1F+bSnepuqANjZd1sz6XxOTkVVkU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-11-27 09:42:12 +00:00
|
|
|
install -Dm755 -t $out/bin git-annex-remote-rclone
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapProgram "$out/bin/git-annex-remote-rclone" \
|
2021-01-17 00:15:33 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ rclone ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/DanielDent/git-annex-remote-rclone";
|
|
|
|
description = "Use rclone supported cloud storage providers with git-annex";
|
2022-11-27 09:42:12 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.montag451 ];
|
|
|
|
};
|
|
|
|
}
|