From 51324da2e02964d9ed2fe24413d138f57abde1fb Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Wed, 17 Nov 2021 12:30:53 -0500 Subject: [PATCH] moz-phab: init at 0.1.99 The official Mozilla tool for code submissions. Needed to do anything useful on NixOS with Mozilla code. --- pkgs/applications/misc/moz-phab/default.nix | 38 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/applications/misc/moz-phab/default.nix diff --git a/pkgs/applications/misc/moz-phab/default.nix b/pkgs/applications/misc/moz-phab/default.nix new file mode 100644 index 000000000000..217bbe537083 --- /dev/null +++ b/pkgs/applications/misc/moz-phab/default.nix @@ -0,0 +1,38 @@ +{ lib, python3Packages, pkgs }: + +python3Packages.buildPythonApplication rec { + pname = "MozPhab"; + version = "0.1.99"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "sha256-uKoMMSp5AIvB1qTRYAh7n1+2dDLneFbssfkfTTshfcs="; + }; + + propagatedBuildInputs = with python3Packages; [ + distro + glean-sdk + python-hglib + sentry-sdk + setuptools + ]; + buildInputs = [ + pkgs.mercurial + ]; + + # https://bugzilla.mozilla.org/show_bug.cgi?id=1741683 + doCheck = false; + + meta = with lib; { + description = "Phabricator CLI from Mozilla to support submission of a series of commits"; + longDescription = '' + moz-phab is a custom command-line tool, which communicates to + Phabricator’s API, providing several conveniences, including support for + submitting series of commits. + ''; + homepage = "https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html"; + license = licenses.mpl20; + maintainers = [ maintainers.kvark ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 94c1272776df..184f3696834e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7047,6 +7047,8 @@ with pkgs; motion = callPackage ../applications/video/motion { }; + moz-phab = callPackage ../applications/misc/moz-phab { }; + mtail = callPackage ../servers/monitoring/mtail { }; multitail = callPackage ../tools/misc/multitail { };