at 24.05-pre 34 lines 758 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, rustPlatform 5, installShellFiles 6, Security 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "awsbck"; 11 version = "0.3.5"; 12 13 src = fetchFromGitHub { 14 owner = "beeb"; 15 repo = "awsbck"; 16 rev = "v${version}"; 17 hash = "sha256-BitR4f1VzYs5L7hT5OCbBbe4JvPIOPDQ9byKEkfBDBY="; 18 }; 19 20 cargoHash = "sha256-J5BI6Gv20iAe2XCt1riLATCnlOg+pcj7q2Gzo2ZN0ms="; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 buildInputs = lib.optionals stdenv.isDarwin [ Security ]; 25 26 doCheck = false; 27 28 meta = with lib; { 29 description = "Backup a folder to AWS S3, once or periodically"; 30 homepage = "https://github.com/beeb/awsbck"; 31 license = with licenses; [ mit asl20 ]; 32 maintainers = with maintainers; [ beeb ]; 33 }; 34}