about summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorChristoph Hrdinka <c.github@hrdinka.at>2016-01-26 19:17:10 +0100
committerChristoph Hrdinka <c.github@hrdinka.at>2016-01-26 19:17:10 +0100
commit7bec7136c0759be8f1f6f9b556a6ccacd08359d4 (patch)
treeb5226c0988702febecc74e11878380280ec28700 /pkgs/tools/backup
parent42e53ba62c46d3f48440a5859f3530ba54fe25d8 (diff)
downloadnixlib-7bec7136c0759be8f1f6f9b556a6ccacd08359d4.tar
nixlib-7bec7136c0759be8f1f6f9b556a6ccacd08359d4.tar.gz
nixlib-7bec7136c0759be8f1f6f9b556a6ccacd08359d4.tar.bz2
nixlib-7bec7136c0759be8f1f6f9b556a6ccacd08359d4.tar.lz
nixlib-7bec7136c0759be8f1f6f9b556a6ccacd08359d4.tar.xz
nixlib-7bec7136c0759be8f1f6f9b556a6ccacd08359d4.tar.zst
nixlib-7bec7136c0759be8f1f6f9b556a6ccacd08359d4.zip
b2: init at git-26.01.2016
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/b2/default.nix30
1 files changed, 30 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 ];
+  };
+}