@@ -0,0 +1,42 @@
1+{ stdenv, lib, fetchFromGitHub, cacert, python3 }:
2+
3+stdenv.mkDerivation {
4+ pname = "matrix-commander";
5+ version = "unstable-2021-04-18";
6+
7+ src = fetchFromGitHub {
8+ owner = "8go";
9+ repo = "matrix-commander";
10+ rev = "3e89a5f4c98dd191880ae371cc63eb9282d7d91f";
11+ sha256 = "08nwwszp1kv5b7bgf6mmfn42slxkyhy98x18xbn4pglc4bj32iql";
12+ };
13+
14+ buildInputs = [
15+ cacert
16+ (python3.withPackages(ps: with ps; [
17+ matrix-nio
18+ magic
19+ markdown
20+ pillow
21+ urllib3
22+ aiofiles
23+ ]))];
24+
25+ installPhase = ''
26+ runHook preInstall
27+
28+ mkdir -p $out/bin
29+ cp $src/matrix-commander.py $out/bin/matrix-commander
30+ chmod +x $out/bin/matrix-commander
31+
32+ runHook postInstall
33+ '';
34+
35+ meta = with lib; {
36+ description = "Simple but convenient CLI-based Matrix client app for sending and receiving";
37+ homepage = "https://github.com/8go/matrix-commander";
38+ license = licenses.gpl3Only;
39+ platforms = platforms.linux;
40+ maintainers = [ maintainers.seb314 ];
41+ };
42+}