2021-04-30 09:24:49 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cacert, python3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "matrix-commander";
|
2021-11-12 13:47:23 +00:00
|
|
|
version = "unstable-2021-08-05";
|
2021-04-30 09:24:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "8go";
|
|
|
|
repo = "matrix-commander";
|
2021-11-12 13:47:23 +00:00
|
|
|
rev = "7ab3fd9a0ef4eb19d882cb3701d2025b4d41b63a";
|
|
|
|
sha256 = "sha256-WWf7GbJxGlqIdsS1d0T1DO0WN2RBepHGgJrl/nt7UIg=";
|
2021-04-30 09:24:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cacert
|
|
|
|
(python3.withPackages(ps: with ps; [
|
|
|
|
matrix-nio
|
|
|
|
magic
|
|
|
|
markdown
|
|
|
|
pillow
|
|
|
|
urllib3
|
|
|
|
aiofiles
|
2021-11-09 21:31:15 +00:00
|
|
|
notify2
|
2021-04-30 09:24:49 +01:00
|
|
|
]))];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp $src/matrix-commander.py $out/bin/matrix-commander
|
|
|
|
chmod +x $out/bin/matrix-commander
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple but convenient CLI-based Matrix client app for sending and receiving";
|
|
|
|
homepage = "https://github.com/8go/matrix-commander";
|
2021-06-05 18:40:16 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2021-04-30 09:24:49 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.seb314 ];
|
|
|
|
};
|
|
|
|
}
|