From 47c863f9ef8918239c9b13986427069b434d92f7 Mon Sep 17 00:00:00 2001 From: Kevin Cox Date: Wed, 3 Feb 2016 18:45:01 -0500 Subject: [PATCH] backblaze-b2: init at version 0.3.10 --- lib/maintainers.nix | 1 + .../tools/backblaze-b2/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++-- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/tools/backblaze-b2/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 046624f10f4b..973745daf697 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -159,6 +159,7 @@ jzellner = "Jeff Zellner "; kamilchm = "Kamil Chmielewski "; kampfschlaefer = "Arnold Krille "; + kevincox = "Kevin Cox "; khumba = "Bryan Gardiner "; kkallio = "Karn Kallio "; koral = "Koral "; diff --git a/pkgs/development/tools/backblaze-b2/default.nix b/pkgs/development/tools/backblaze-b2/default.nix new file mode 100644 index 000000000000..433aadebb6ce --- /dev/null +++ b/pkgs/development/tools/backblaze-b2/default.nix @@ -0,0 +1,31 @@ +{ 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."; + homepage = https://github.com/Backblaze/B2_Command_Line_Tool; + license = licenses.mit; + maintainers = with maintainers; [ kevincox ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1a3c3d3baaa8..0c4d1ce46141 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -663,6 +663,8 @@ let azureus = callPackage ../tools/networking/p2p/azureus { }; + backblaze-b2 = callPackage ../development/tools/backblaze-b2 { }; + backup = callPackage ../tools/backup/backup { }; basex = callPackage ../tools/text/xml/basex { }; @@ -2327,8 +2329,8 @@ let miniupnpd = callPackage ../tools/networking/miniupnpd { }; - miniball = callPackage ../development/libraries/miniball { }; - + miniball = callPackage ../development/libraries/miniball { }; + minixml = callPackage ../development/libraries/minixml { }; mjpegtools = callPackage ../tools/video/mjpegtools { };