1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00

scli: init at 0.6.1

scli: add license

scli: add basic checkPhase

scli: apply formatting changes from @SuperSandro2000

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

scli: update src sha256

scli: remove chmod from checkPhase

scli: add pathShebangs
This commit is contained in:
Alex Eyre 2021-05-09 09:43:10 +01:00
parent 17f0612267
commit 20bb6ae506
No known key found for this signature in database
GPG key ID: 2CB89CB06891BB9D
2 changed files with 40 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -26244,6 +26244,8 @@ in
scite = callPackage ../applications/editors/scite { };
scli = with python3Packages; callPackage ../applications/misc/scli { };
scribus = callPackage ../applications/office/scribus {
inherit (gnome2) libart_lgpl;
};