summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-12-16 07:39:32 -0500
committerBen Sima <ben@bsima.me>2021-12-16 07:39:56 -0500
commitea3a0482e45b938c2c08058f2c64055cce2607ee (patch)
tree3569473d2b2b7661fbfeaaab484594bc45ea4e5e
parent2ccc9adbbbcab4e4aa39c9f9b76a734fb2189781 (diff)
add zulip-term
-rw-r--r--lib/packages.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/packages.nix b/lib/packages.nix
index da23868..a805e2d 100644
--- a/lib/packages.nix
+++ b/lib/packages.nix
@@ -5,6 +5,41 @@
with pkgs;
let
+ urwid-readline = python3.pkgs.buildPythonPackage rec {
+ pname = "urwid_readline";
+ version = "0.13";
+ src = python3.pkgs.fetchPypi {
+ inherit pname version;
+ sha256 = "1x7s3vnvvhxad72skwr9rdajgbly0rmw4zg1ggc5xfv4r35j1001";
+ };
+ propagatedBuildInputs = [ python3Packages.urwid ];
+ doCheck = false;
+ };
+ zulip-terminal = python3.pkgs.buildPythonApplication rec {
+ pname = "zulip-terminal";
+ version = "0.6.0";
+ src = pkgs.fetchFromGitHub {
+ owner = "zulip";
+ repo = pname;
+ rev = "${version}";
+ sha256 = "0nah8dxgzv2q2gnkzlbc2sm68b1mlgsw8izny2p10i8mcdldjnwy";
+ };
+ propagatedBuildInputs = with python3Packages; [
+ urwid
+ zulip
+ urwid-readline
+ beautifulsoup4
+ lxml
+ pygments
+ typing-extensions
+ dateutil
+ pytz
+ tzlocal
+ pyperclip
+ ];
+ doCheck = false;
+ };
+
zebra = pkgs.stdenv.mkDerivation {
name = "zebra";
src = fetchGit {
@@ -82,5 +117,6 @@ in {
w3m
zebra
zip
+ zulip-terminal
];
}