diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-05-29 03:17:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-29 03:17:01 +0200 |
commit | aeb4b895b4c6be2218bf68d2e155e139ce956e8c (patch) | |
tree | 0196a9679ac1062a86217c128c904cf01fa82666 /pkgs/applications | |
parent | 5b09565ffc3837ecbd0f15fd1efeb38f3daabdb3 (diff) | |
parent | 20bb6ae50695c4614492b16b62464fcc8eeb8107 (diff) |
Merge pull request #122315 from alex-eyre/add-scli
scli: init at 0.6.1
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/scli/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/scli/default.nix b/pkgs/applications/misc/scli/default.nix new file mode 100644 index 0000000000000..93fd5d41942bc --- /dev/null +++ b/pkgs/applications/misc/scli/default.nix @@ -0,0 +1,38 @@ +{ lib, buildPythonApplication, fetchFromGitHub, signal-cli, urwid +, urwid-readline, dbus }: + +buildPythonApplication rec { + pname = "scli"; + version = "0.6.1"; + + src = fetchFromGitHub { + owner = "isamert"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-hWzpqj/sxPq/doxdmytnj5rh2qKQE71WMB0ugomWhHg"; + }; + + propagatedBuildInputs = [ signal-cli urwid urwid-readline dbus ]; + dontBuild = true; + + checkPhase = '' + # scli attempts to write to these directories, make sure they're writeable + export XDG_DATA_HOME=$(mktemp -d) + export XDG_CONFIG_HOME=$(mktemp -d) + ./scli --help > /dev/null # don't spam nix-build log + test $? == 0 + ''; + + installPhase = '' + mkdir -p $out/bin + patchShebangs scli + install -m755 -D scli $out/bin/scli + ''; + + meta = with lib; { + description = "Simple terminal user interface for Signal"; + homepage = "https://github.com/isamert/scli"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ alex-eyre ]; + }; +} |