1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00
nixpkgs/pkgs/development/tools/backblaze-b2/default.nix

32 lines
820 B
Nix
Raw Normal View History

2016-02-03 23:45:01 +00:00
{ stdenv, lib, fetchFromGitHub, pkgs }:
stdenv.mkDerivation rec {
name = "backblaze-b2-0.3.10";
src = fetchFromGitHub {
owner = "Backblaze";
repo = "B2_Command_Line_Tool";
rev = "b097f0f04d3f88d7a372b50ee6db1f89a5249028";
sha256 = "1rcy8180476cpmrbls4424qbq8nyq7mxkfikd52a8skz7rd5ljc6";
};
buildInputs = with pkgs; [ python2 ];
doCheck = true;
checkPhase = ''
python test_b2_command_line.py test
'';
installPhase = ''
install -Dm755 b2 "$out/bin/backblaze-b2"
'';
meta = with stdenv.lib; {
description = "Command-line tool for accessing the Backblaze B2 storage service";
2016-02-03 23:45:01 +00:00
homepage = https://github.com/Backblaze/B2_Command_Line_Tool;
license = licenses.mit;
maintainers = with maintainers; [ kevincox ];
platforms = platforms.unix;
};
}