diff options
author | Arseniy Seroka | 2016-01-28 00:01:05 +0300 |
---|---|---|
committer | Arseniy Seroka | 2016-01-28 00:01:05 +0300 |
commit | 189693327bf8373ebc436f318aa56099b5180fbb (patch) | |
tree | 3b65bb03d387a92f29fb89b10b969bde92490fa7 | |
parent | 71a4d369832e54cb8bb732c97d1773eb14ed4bd6 (diff) | |
parent | 7bec7136c0759be8f1f6f9b556a6ccacd08359d4 (diff) |
Merge pull request #12630 from hrdinka/add/b2
b2: init at git-26.01.2016
-rw-r--r-- | pkgs/tools/backup/b2/default.nix | 30 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/backup/b2/default.nix b/pkgs/tools/backup/b2/default.nix new file mode 100644 index 000000000000..15a48b765798 --- /dev/null +++ b/pkgs/tools/backup/b2/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2028d2ff14c5..c294f8be31c8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |