1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

b2: init at git-26.01.2016

This commit is contained in:
Christoph Hrdinka 2016-01-26 19:17:10 +01:00
parent 42e53ba62c
commit 7bec7136c0
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ fetchFromGitHub, pythonPackages, stdenv }:
stdenv.mkDerivation rec {
name = "b2-${version}";
version = "git-26.01.2016";
src = fetchFromGitHub {
owner = "Backblaze";
repo = "B2_Command_Line_Tool";
rev = "b3f06fd53eb1c9a07740b962284753cba413a7b8";
sha256 = "0kn2lkh8hp6g8q88glyz03z1r8a47pqm91dc5w083i334swqkjp2";
};
buildInputs = [ pythonPackages.wrapPython ];
installPhase = ''
mkdir -p $out/bin
cp b2 $out/bin
'';
postInstall = "wrapPythonPrograms";
meta = with stdenv.lib; {
homepage = https://github.com/Backblaze/B2_Command_Line_Tool;
description = "CLI for accessing Backblaze's B2 Cloud Storage";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ hrdinka ];
};
}

View file

@ -972,6 +972,8 @@ let
asynk = callPackage ../tools/networking/asynk { };
b2 = callPackage ../tools/backup/b2 { };
bacula = callPackage ../tools/backup/bacula { };
bareos = callPackage ../tools/backup/bareos { };